HTTP错误500.19 - 内部服务器错误0x800700b7
问题描述:
我想发布一个Web服务,我得到错误,说:HTTP错误500.19 - 内部服务器错误0x800700b7
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
我有以下细节:
Module DefaultDocumentModule
Notification ExecuteRequestHandler
Handler StaticFile
Error Code 0x800700b7
Config Error Cannot add duplicate collection entry of type 'add' with unique key attribute 'value' set to 'KWebService.asmx'
Config File \\?\C:\inetpub\wwwroot\KWebService\web.config
Requested URL http://localhost:80/KWebService/KWebService
Physical Path C:\inetpub\wwwroot\KWebService
Logon Method Anonymous
Logon User Anonymous
指向线:\的Inetpub \ wwwroot的\ KWebService:
13: <files>
14: <add value="KWebService.asmx" />
15: </files>
我在路径C保存在该文件夹KWebService。 和我的web.config是:
<?xml version="1.0" encoding="utf-8"?>
<!--
Pour plus d'informations sur la configuration de votre application ASP.NET, consultez
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0" />
<httpRuntime targetFramework="4.0" />
</system.web>
<system.webServer>
<defaultDocument>
<files>
<add value="KWebService.asmx" />
</files>
</defaultDocument>
<directoryBrowse enabled="true" />
</system.webServer>
</configuration>
我的IIS管理器有这个截图:
用我的端口号是80和targetFramework = “4.0”,并在应用程序池,我有这个版本快照:
可能有人请让我知道农大问题?
答
ERREUR HTTP 500.19 - 内部服务器错误
你必须检查是否存在 “” 杜版本.NET CLR “” 或 “.NET版本” 版本
尝试使用[了''指令](https://www.iis.net/configreference/system.webserver/defaultdocument)删除已添加的文档。 –
@UweKeim谢谢...请让我知道哪个地方可以添加此指令 –