简体   繁体   English

HTTP 错误 500.19 - 内部服务器错误 0x800700b7

[英]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.我已将 KWebService 文件夹保存在路径 C:\\inetpub\\wwwroot\\KWebService 中。 and my web.config is :我的 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>

My IIS manager has this screenshot:我的 IIS 管理器有这个截图:

在此处输入图片说明

My port number used is 80 and targetFramework="4.0" and in application pool i have this snapshot of version:我使用的端口号是 80 和 targetFramework="4.0" 并且在应用程序池中我有这个版本的快照:

在此处输入图片说明

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.尝试将以下内容放在web.config文件中的标记下方。

<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.如果您不想放置上述条目,那么您还可以尝试在更高级别的配置文件(如applicationhost.config找到重复的条目,如果不需要,则将其从那里删除。

Erreur HTTP 500.19 - Internal Server Error Erreur HTTP 500.19-内部服务器错误 在此处输入图片说明

You have to check if there is a version in ""Version du CLR .NET"" or ".NET Version" 您必须检查““ Version du CLR .NET”“或” .NET版本“中是否有版本

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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