我已将asmx Web服务部署到生产服务器中,但是每当我尝试启动该服务时,都会说web.config文件中的配置错误
错误
描述:处理服务于此请求所需的配置文件时发生错误。请查看下面的特定错误详细信息,并适当地修改您的配置文件。
解析器错误消息:使用超出应用程序级别注册为allowDefinition ='MachineToApplication'的节是错误的。此错误可能是由于未在IIS中将虚拟目录配置为应用程序引起的。
源错误:
服务器上发生应用程序错误。该应用程序的当前自定义错误设置阻止应用程序错误的详细信息被远程查看(出于安全原因)。但是,可以由运行在本地服务器计算机上的浏览器查看它。
源文件:E:\ IIS \ websites \ www.xyzfiledirectory.com \ web.config行:34
WEB.CONFIG
<appSettings/>
<connectionStrings>
connection strings to mysql database
</connectionStrings>
<system.web>
<system.web>
<!--
Set compilation debug="true" to insert
debugging
symbols into the compiled page. Because
this
affects performance, set this value to
true only
during development.
-->
<compilation debug="true" />
<!--
The <authentication> section enables
configuration
of the security authentication mode
used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows" />
<!--
The <customErrors> section enables
configuration
of what to do if/when an unhandled
error occurs
during the execution of a request.
Specifically,
it enables developers to configure
html error pages
to be displayed in place of a error
stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors> -->
</system.web>
</configuration>
I'm getting error at this line <authentication mode="Windows" />
Anybody has any clue or idea about this? any link or documents regarding this?