当前位置: 代码迷 >> ASP.NET >> .net有关问题. 发布后网页找不到.
  详细解决方案

.net有关问题. 发布后网页找不到.

热度:10141   发布时间:2013-02-26 00:00:00.0
.net问题. 发布后网页找不到...
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   11:   <system.web>
Line   12:           <compilation   defaultLanguage= "c# "   debug= "true "/>
Line   13:           <customErrors   mode= "Off "/> <authentication   mode= "Windows "/>  
Line   14:           <authorization> <allow   users= "* "/> </authorization>
Line   15:           <trace   enabled= "false "   requestLimit= "10 "
 

Source   File:   C:\Inetpub\ha\article\web.config         Line:   13  


Show   Additional   Configuration   Errors:


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.   (C:\Inetpub\ha\article\web.config   line   18)
                                           
 
我个人不太会,似乎是说13行有错误.?   但是我看不懂

--------------------------------------------------------------------------------
Version   Information:   Microsoft   .NET   Framework   Version:2.0.50727.42;   ASP.NET   Version:2.0.50727.42

------解决方案--------------------------------------------------------
在IIS里把这个虚拟目录设置成应用程序
  相关解决方案