上传aspx网站时出错
当我在 IIS 7 上的本地计算机上托管我的网站时,我的网站运行正常,但是当我将网站上传到我的在线托管空间时,出现错误:(
<sessionState mode="InProc" cookieless="false" timeout="20"/>
以红色显示)
说明:在处理所需的配置文件期间发生错误来满足此请求。请查看下面的具体错误详细信息并适当修改您的配置文件。
解析器错误消息:在应用程序级别之外使用注册为allowDefinition ='MachineToApplication'的部分是错误的。此错误可能是由于未将虚拟目录配置为 IIS 中的应用程序而导致的。
出现了。你们能帮我一下吗?
注释我使用多个 web.config 文件,但我无法删除它们
非常感谢
when i host my website on my local machine on IIS 7 my website runs correctly, but when i upload the website to my hosting space online the error:
<sessionState mode="InProc" cookieless="false" timeout="20"/>
(comes up in red)
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
comes up. could you guys please help me out?
Notes i use multiple web.config files and no i cannot delete them
Much appreciated
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
线索如下:“此错误可能是由于未将虚拟目录配置为 IIS 中的应用程序而导致的。”
根据您的托管提供商是谁,检查您的网站是否作为 Web 应用程序运行。
The clue is here: "This error can be caused by a virtual directory not being configured as an application in IIS."
Depending on who your hosting provider is, check that your website is running as a Web Application.
仅允许在根级别使用该标记。如果您使用多个 web.config,请确保您没有将此标记复制到任何其他配置文件中。
还要确保您的虚拟目录根标记为应用程序。
The tag is allowed only at the root level. If you are using multiple web.config's ensure that you haven't copied this tag into any other config file.
Also ensure that your virtual directory root is marked as an application.