尝试启动Azure模拟器时出现套接字异常10048

时间:2013-04-26 05:41:45

标签: c# azure emulation azure-deployment

当我尝试启动windows azure web解决方案时,它一直给我一个代码10048的套接字异常,然后停止部署到本地模拟器。

enter image description here

似乎端口冲突存在一些问题?

我试过了: - 重新启动计算机,看看是否有任何程序持有资源 - 重新安装Azure SDK和工具。

以下是VS的输出:

Windows Azure Tools: Warning: Remapping public port 80 to 81 to avoid conflict during emulation.
Windows Azure Tools: Warning: Remapping public port 3389 to 3390 to avoid conflict during emulation.
Windows Azure Tools: Warning: Remapping private port 80 to 82 in role 'CloudSearch.Master.Web' to avoid conflict during emulation.
Windows Azure Tools: Warning: Remapping private port 3389 to 3390 in role 'CloudSearch.Master.Web' to avoid conflict during emulation.
Windows Azure Tools: [Listener127.0.0.1:81] Socket Exception (10048) occured when initializing client listener 
Server stack trace: 
   at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at Microsoft.Windows.Azure.DevFabric.IManagement.UpdateTenant(String tenantName, ServiceModelDefinition serviceModel)
   at Microsoft.ServiceHosting.Tools.DevelopmentFabric.FabricClient.AddServiceDeployment(String tenantName, ServiceModelDefinition serviceModelDefinition, String instanceDescriptionPath, ServiceDeploymentOptions options)

希望你们中的任何人都有答案,因为我无法通过谷歌搜索找到太多。

1 个答案:

答案 0 :(得分:1)

检查.csdef项目并确保只有一个http / https端点。您可以通过右键单击云项目中的属性并选择端点来执行此操作。我发现同时使用http(80)和https(443)会抛出此错误。

此外,如果您使用的是IIS Express,则可能有助于停止完整的IIS服务(默认情况下,最新版本的SDK)。