2015-08-19 77 views
1

我想發佈一個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管理器有這個截圖:

enter image description here

用我的端口號是80和targetFramework = 「4.0」,並在應用程序池,我有這個版本快照:

enter image description here

可能有人請讓我知道農大問題?

+0

嘗試使用[了' '指令](https://www.iis.net/configreference/system.webserver/defaultdocument)刪除已添加的文檔。 –

+0

@UweKeim謝謝...請讓我知道哪個地方可以添加此指令 –

回答

-1

ERREUR HTTP 500.19 - 內部服務器錯誤 enter image description here

你必須檢查是否存在 「」 杜版本.NET CLR 「」 或 「.NET版本」 版本

相關問題