Windows2003 + IIS 6 + .Net 3.5 sp1
在本地上测试一切OK。
已知虚拟空间绑定了两个域名。
移到虚拟空间服务器上出现如上错误提示。
在web.config上加了以下代码:
<serviceHostingEnvironment>
<baseAddressPrefixFilters>
<add prefix="http://www.xxx.com"/>
</baseAddressPrefixFilters>
</serviceHostingEnvironment>
刚上传web.config时,运行正常,过一会就不行,出现以下错误。重新上传web.config又正常,过会又不行。如此反复。
“/”应用程序中的服务器错误。
此集合已经包含方案 http 的地址。此集合中每个方案中最多只能包含一个地址。
参数名: item
堆栈跟踪:
[ArgumentException: 此集合已经包含方案 http 的地址。此集合中每个方案中最多只能包含一个地址。
参数名: item]
System.ServiceModel.UriSchemeKeyedCollection.InsertItem(Int32 index, Uri item) +4564833
System.Collections.Generic.SynchronizedCollection`1.Add(T item) +56
System.ServiceModel.UriSchemeKeyedCollection..ctor(Uri[] addresses) +120
System.ServiceModel.ServiceHost..ctor(Type serviceType, Uri[] baseAddresses) +145
System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(Type serviceType, Uri[] baseAddresses) +28
System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses) +323
System.ServiceModel.HostingManager.CreateService(String normalizedVirtualPath) +516
System.ServiceModel.HostingManager.Ac
|