Configuration Error 急急

zgdhj95 2004-03-04 09:47:23
我运行Asp.net程序时出现以下的错误,请大家帮我看看。

Server Error in '/Web_Ceis_CJGL' Application.
--------------------------------------------------------------------------------

Configuration Error
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.

Source Error:

Line 18: <customErrors defaultRedirect="errorpage.aspx" mode="Off"/>
Line 19: <compilation debug="true"></compilation>
Line 20: <sessionState
Line 21: mode="InProc"
Line 22: stateConnectionString="tcpip=127.0.0.1:42424"

Source File: c:\inetpub\wwwroot\Web_ceis_CJGL\Web_ceis_CJGLWebUIProjects_WebUI_4\web.config Line: 20
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
...全文
117 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
tavor 2004-03-27
  • 打赏
  • 举报
回复
你把你的这个应用程序文件夹在IIS下设为虚拟文件夹,并应用到子文件夹中试试

从错误提示看是这个原因造成的
20040216 2004-03-27
  • 打赏
  • 举报
回复
在iis中将此目录创建为应用程序

62,026

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧