- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我刚刚在 Windows XP 上安装了 IIS。
当我尝试执行应用程序时,出现错误:
Access to the path 'c:\inetpub\wwwroot\myapp\App_Data' is denied. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.UnauthorizedAccessException: Access to the path 'c:\inetpub\wwwroot\myapp\App_Data' is denied.
ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via , the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.
To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.
Source Error:
Line 70: Protected Sub cmbSettingFiles_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmbSettingFiles.SelectedIndexChanged
Line 71: Dim doc As XmlDocument = New XmlDocument()
Line 72: doc.Load(Path.Combine(basePath, cmbSettingFiles.SelectedValue)) Line 74: Dim settingsNode As XmlNode = doc.SelectSingleNode("/settings")Source File: C:\myapp\install\install.aspx.vb Line: 72
我尝试通过这样做来获得许可:
To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.
但错误仍然存在。
这和我的代码有什么关系吗?
我该如何解决这个问题?
编辑
我已经解决了我的开发机器上的问题,但我的网络服务器上仍然收到错误。
谢谢。
最佳答案
如果您收到此错误,您可能正在尝试写入 wwwroot
。默认情况下不允许这样做,for good reason .
相反,请考虑将文件存储在 wwwroot
之外的位置。如果您只需要提供文件,请将它们存储在 inetpub
的外部文件夹中,并使用 virtual directory使它们对 IIS 可见。
原答案:
<小时/>对于在 Windows Server 上运行 IIS 的用户:
默认情况下,IIS 用户没有 wwwroot
文件夹的写入权限。这可以通过向 IIS_IUSRS
用户授予 wwwroot
的完全权限来解决。
C:/inetpub/
IIS_IUSRS([服务器名称]\IIS_IUSRS)
。关于asp.net - 访问路径 'c:\inetpub\wwwroot\myapp\App_Data'被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10255790/
抱歉,如果不解释整个情况,我想不出更具描述性的标题。 我正在使用 IIS7 和 Tomcat7。我使用 GWT 创建了一个 Web 应用程序,将其打包成一个 war 文件并将其部署在 Tomcat 上
我知道有几个主题与此有关,但几天后我无法定位并解决这个问题。到目前为止我已经完成的步骤: 已安装tomcat 8.5.8 更改了/opt/tomcat/conf/server.xml 中的以下行
(顺便说一下,我正在使用 WebSphere 7) 我有一个带有基本身份验证和配置的安全约束的 Java 网络应用程序(如下所示)。 当我在 http://localhost:9080/myapp/
在 Windows 批处理文件或命令提示符中,调用 start mspaint 和 mspaint 之间有什么区别?它们似乎在做完全相同的事情。 另一个例子,所有 4 个案例似乎都在做同样的事情。如果
在构建我的 C# .NET 项目时,“MyApp.vshost.exe”文件与 Visual Studio 2010 下的“MyApp.exe”一起放置在发布站中。分发“MyApp.exe”时,我应该
我正在使用 Firebase Auth signInWithPopup(),这绝对很棒。但最初配置时,弹出窗口显示: Choose an account to continue to myApp-12
我将 war 文件放在共享驱动器上。我在我的 tomcat ...\conf\Catalina\localhost\myapp.xml 中设置了 docBase,如下所示: 当共享驱动器启动时,tom
身份验证后,asp.net 将我的用户重定向到 .../myapp/default.aspx 而不是 .../myapp/ 有什么办法可以解决这个问题吗?我认为在 url 上包含额外的 default
我知道这听起来可能很愚蠢,但我只是想知道如果我在我的已安装应用程序列表中输入“myapp”而不是“myapp.apps.myappConfig”有什么区别。它与模型有关还是什么? 问候 最佳答案 如果
来自 vshost(在 VS 版本中运行) array pure 00:00:02.9634819 1200000000 Basic: 00:00:04.1682663 来自独立程序(编译版本)
我有错误: BadRequestError: app "dev~myapp" cannot access app "s~myapp"'s data 这很相似,但是 the opposite way a
我已经为我的软件制作了安装程序(使用Inno Setup),最终安装在 C:\Program Files (x86)\MyApp\myapp.exe 像往常一样在 Windows 平台上运行,并且运行
我正在尝试运行 Ratchet 应用程序演示,但我无法执行该文件 这是我的文件结构 /var/www/src/MyApp/ /var/www/src/MyApp/chat.php /var/www/s
这是我的Flutter中凸起按钮的代码,如果我更换 void main()=> runApp(MaterialApp(home:MyApp())); 与 void main()=> runApp(My
就在几天前,我成功将 Ionic 应用程序上传到 Apple Store,而在这一天,我收到了验证警告: The app references non-public selectors in Payl
使用 Morph Labs 的 Appspace 部署站点意味着无法自动将“myapp.com”重定向到“www.myapp.com”(并且无法访问 .htacess)。 是否有 rails 内方式来
当我使用 Java 时,我需要输入类似java -?的命令如果用户在最后输入-?,为什么应用程序知道这个来回复输出?请告诉我识别-?的c代码 最佳答案 它们作为参数传递给 main(): #inclu
我试过使用 Environment.CommandLine 来检查可执行文件,但这没有用,它总是显示 dll 文件。关于如何知道 myapp.exe 文件是否用于运行应用程序或者是否使用 dotnet
我有一个问题,大约 2 天我无法解决。我分析了几乎所有关于这个错误的问题,但我无法处理它。 这是我的树: MyAppRoot -MyApp -libs -jar4.jar
最近我在 Linux Centos 上遇到 Apache Tomcat 6.0.35 的问题。我收到错误 - java.lang.UnsupportedClassVersionError: myApp
我是一名优秀的程序员,十分优秀!