C# 相对URI不支持此操作,浏览SVC服务时出错

C# 相对URI不支持此操作,浏览SVC服务时出错,c#,wcf,web-services,svc,C#,Wcf,Web Services,Svc,我在浏览网站的svc服务(在其所在的服务器上浏览)时遇到以下错误。该网站使用IIS7 This operation is not supported for a relative URI. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the

我在浏览网站的svc服务(在其所在的服务器上浏览)时遇到以下错误。该网站使用IIS7

This operation is not supported for a relative URI.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: This operation is not supported for a relative URI.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[InvalidOperationException: This operation is not supported for a relative URI.]
   System.Uri.get_Scheme() +8045854
   System.ServiceModel.HostingManager.FilterBaseAddressList(Uri[] baseAddresses, Uri[] prefixFilters) +142
   System.ServiceModel.HostingManager.CreateService(String normalizedVirtualPath) +598
   System.ServiceModel.HostingManager.ActivateService(String normalizedVirtualPath) +50
   System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +1172

[ServiceActivationException: The service '/Templates/eDemokrati/Services/eDemokratiService.svc' cannot be activated due to an exception during compilation.  The exception message is: This operation is not supported for a relative URI..]
   System.Runtime.AsyncResult.End(IAsyncResult result) +900192
   System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +192830
   System.Web.AsyncEventExecutionStep.OnAsyncEventCompletion(IAsyncResult ar) +107


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272 
链接到服务:

网站的一些web.config文件:

<system.serviceModel>
  <serviceHostingEnvironment>
        <baseAddressPrefixFilters>
            <add prefix="http://www.roros.kommune.no/"/>
            <add prefix="www.roros.kommune.no/"/>
            <add prefix="item"/>
            <add prefix="http://www.roros.kommune.no/templates/eDemokrati/Services/"/>
            <add prefix="www.roros.kommune.no/templates/eDemokrati/Services/"/>

        </baseAddressPrefixFilters>
    </serviceHostingEnvironment>


由什么引起的错误以及如何解决此问题?

如异常消息所示,不允许使用相对URI。尝试删除
prefix=“item”
,并将它们全部设置为绝对URI。

@Bala R,谢谢!请随意添加您的评论作为答案,我将选择它作为答案。