2011-11-17 127 views
1

我在使用WCF服务时遇到了一些问题。当我在IIS中托管它时,它运行良好,但我认为在某处存在问题。WCF服务在WCF服务主机中抛出错误

当我在Visual Studio 2010中运行我的WCF服务时,它启动了WCF服务主机。

它命名主机,然后状态是'错误'。

它给了错误是这样的:

System.ServiceModel.AddressAlreadyInUseException: HTTP could not register URL http://+:8732/Design_Time_Addresses/EvalServiceLibrary/Service1/. Another application has already registered this URL with HTTP.SYS. ---> System.Net.HttpListenerException: Failed to listen on prefix 'http://+:8732/Design_Time_Addresses/EvalServiceLibrary/Service1/' because it conflicts with an existing registration on the machine. 

我不知道这影响了部署在IIS服务,因为这告诉我,我已经创建了一个服务,如果我浏览它通过IIS。

任何想法?

回答

4

这很清楚,地址已被使用。

IIS中的服务是否在同一个端口上运行?改变它,或者改变你的发展端口。