我正在安装一个应用程序,我必须给我的app_code写入权限。编辑:错误味精包括
问题描述:
我正在共享托管公司(asp.net/c#)上开发网站。我在Windows 2012服务器上。我正在使用IIS7。我试图安装blogengine.net,它需要app_code文件夹具有写入权限。我正在安装一个应用程序,我必须给我的app_code写入权限。编辑:错误味精包括
我无法在我的控制面板中找到任何地方允许写入权限的地方。
同样,我在IIS7中看不到这个选项。
任何人都可以为我提供关于如何授予对app_code文件夹的写入权限的指导(如果我与共享的托管公司有关)吗?谢谢!
以下是我的共享主机控制面板的外观。不过,我以为会有通过IIS7授予写入权限的方式:
编辑:
这里是我的具体错误:
HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is
temporarily unavailable.
Most likely causes:
The directory or file specified does not exist on the Web server.
The URL contains a typographical error.
A custom filter or module, such as URLScan, restricts access to the file.
Things you can try:
Create the content on the Web server.
Review the browser URL.
Create a tracing rule to track failed requests for this HTTP status code and see which
module is calling SetStatus. For more information about creating a tracing rule for
failed requests, click here.
Detailed Error Information:
Module IIS Web Core
Notification MapRequestHandler
Handler StaticFile
Error Code 0x80070002
Requested URL http://domain.org:80/blog/account/login
Physical Path E:\web\controlpanelusername\htdocs\blog\account\login
Logon Method BlogEngine.NET Custom Identity
Logon User Anonymous
我刚刚得到一个答案回从托管公司,这里是他们所说的:
“默认情况下,您的IIS和aspnet用户将被授予站点根目录和所有后续目录的全部权限。您的和您的Web应用程序应该能够写入任何目录。这些用户的权限不能更改,这就是为什么他们没有在权限管理器中列出的原因。权限管理器仅用于您在用户/配额管理器中创建的其他用户。“
答
对于任何人谁也有类似的问题,这可能是一个解决方案:
我有被删除的.aspx扩展所以,如果我去了domain.org/about.aspx的IIS7重写规则,它会重写为domain.org/about
这搞糟了我正在尝试安装的应用程序,删除这个重写规则解决了我的问题