日期:2014-05-18  浏览次数:20462 次

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。
------解决方案--------------------
那时数据库的问题和你本身的程序没有关系
我以前遇到过 重新配一般数据库就行了