问题描述
我正在使用简单的ASP MVC项目作为android应用程序的WebServer。 当使用IIS Express运行项目时,所有操作均有效,但是当使用本地IIS运行时,将出现此错误
Most likely causes:
A default document is not configured for the requested URL,and directory browsing is not enabled on the server.
Things you can try:
If you do not want to enable directory browsing,ensure that a default document is configured and that the file exists.
Enable directory browsing using IIS Manager.
Open IIS Manager.
In the Features view,double-click Directory Browsing.
On the Directory Browsing page,in the Actions pane,click Enable.
Verify that the configuration/system.webServer/directoryBrowse@enabled attribute is set to true in the site or application configuration file.
启用目录浏览后,将显示文件夹和文件列表。根据{{3}}链接,将<modules runAllManagedModulesForAllRequests="true" />
添加到web.config中的<system.webServer>
部分时,将出现以下错误:
Module IIS Web Core
Notification BeginRequest
Handler Not yet determined
Error Code 0x80070021
Config Error This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"),or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".
我的IIS版本:10 .Net:4.5.2
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)