当前位置: 代码迷 >> ASP.NET >> ASP.NET程序发布的有关问题
  详细解决方案

ASP.NET程序发布的有关问题

热度:9720   发布时间:2013-02-25 00:00:00.0
ASP.NET程序发布的问题
程序在发布时,遇到这个问题,不知怎么解决,哪位高手帮一下万分感谢!

Server   Error   in   '/ '   Application.
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   26:                           ASP.NET   to   identify   an   incoming   user.  
Line   27:                   -->
Line   28:   <authentication   mode= "Windows "/> //这里提示错误
Line   29:   <!--
Line   30:                           The   <customErrors>   section   enables   configuration  
  当我发布没有调用数据库的网页时就是正常,当连接了数据库之后就出这样的错误。我数据库设置的就是Windows验证模式IIS我设成了IIS无须密码验证,换成Windows验证后,需要连接到服务器的用户名和密码。


------解决方案--------------------------------------------------------
IIS配置的有问题。更改然后重起IIS。
------解决方案--------------------------------------------------------
那时数据库的问题和你本身的程序没有关系
我以前遇到过 重新配一般数据库就行了
  相关解决方案