简体   繁体   中英

HTTP Error 500.19 - Internal Server Error 0x800700b7

I am trying to publish a webservice and i am getting error which says :

HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.

I have the following details:

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

which points to line:

   13:             <files>
   14:                 <add value="KWebService.asmx" />
   15:             </files>

I have saved the the KWebService folder at path C:\\inetpub\\wwwroot\\KWebService. and my web.config is :

<?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>

My IIS manager has this screenshot:

在此处输入图片说明

My port number used is 80 and targetFramework="4.0" and in application pool i have this snapshot of version:

在此处输入图片说明

Could some one please let me know the cause of problem?

You get this error because you are having a similar entry at a higher level configuration file. It could be at server or website level. Try placing the following just below the tag in your web.config file.

<remove name="KWebService.asmx" />

If you don't want to place the above entry then you can also try to find the duplicate entry in the higher level config files like applicationhost.config and remove it from there if it's not needed.

Erreur HTTP 500.19 - Internal Server Error 在此处输入图片说明

You have to check if there is a version in ""Version du CLR .NET"" or ".NET Version"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM