问题描述
错误:无法从net.tcp://its.hongqilin.cn:4504/ITS.WCFService.RecordService.svc/mex获取元数据如果是您有权访问的Windows(R)CommunicationFoundation服务,请检查是否已启用在指定地址发布元数据。有关启用元数据发布的帮助,请参阅http://go.microsoft.com/fwlink/?LinkId=65455上的MSDN文档。WS-MetadataExchange错误URI:net.tcp://its.hongqilin.cn:4504/ITS.WCFService.RecordService.svc/mex元数据包含无法解析的引用:“net.tcp://its.hongqilin.cn:4504/ITS.WCFService.RecordService.svc/mex”。无法连接到net.tcp://its.hongqilin.cn:4504/ITS.WCFService.RecordService.svc/mex。连接尝试持续了00:00:21.0052014时间跨度。TCP错误代码10060:由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。220.194.56.123:4504。由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。220.194.56.123:4504下边贴上我的wcf配置文件<configuration><configSections><sectionGroupname="spring"><sectionname="context"type="Spring.Context.Support.ContextHandler,Spring.Core"/><sectionname="objects"type="Spring.Context.Support.DefaultSectionHandler,Spring.Core"/><!--<sectionname="parsers"type="Spring.Context.Support.NamespaceParsersSectionHandler,Spring.Core"/>--></sectionGroup></configSections><spring><!--<parsers><parsertype="Spring.Data.Config.DatabaseNamespaceParser,Spring.Data"/></parsers>--><context><resourceuri="assembly://ITS.ExternalLibs/ITS.ExternalLibs.SpingConfigs/CommonDao.xml"/><resourceuri="assembly://ITS.ExternalLibs/ITS.ExternalLibs.SpingConfigs/DataAccessObjects.xml"/><resourceuri="assembly://ITS.ExternalLibs/ITS.ExternalLibs.SpingConfigs/Business.xml"/><resourceuri="assembly://ITS.ExternalLibs/ITS.ExternalLibs.SpingConfigs/WCFService.xml"/></context></spring><system.serviceModel><serviceHostingEnvironmentmultipleSiteBindingsEnabled="true"><!--<baseAddressPrefixFilters><addprefix="net.tcp://its.wcf.hongqilin.cn:4504"/></baseAddressPrefixFilters>--></serviceHostingEnvironment><behaviors><serviceBehaviors><behaviorname="ITS.WCFService.RecordServiceBehavior"><serviceMetadata/><serviceDebugincludeExceptionDetailInFaults="true"/></behavior></serviceBehaviors></behaviors><services><servicebehaviorConfiguration="ITS.WCFService.RecordServiceBehavior"name="ITS.WCFService.RecordService"><endpointaddress=""binding="netTcpBinding"bindingConfiguration="ServerBinding"contract="ITS.WCFService.IRecordService"/><endpointaddress="mex"binding="mexTcpBinding"contract="IMetadataExchange"/><host><baseAddresses><addbaseAddress="net.tcp://localhost:4504/RecordService"/></baseAddresses></host></service></services><bindings><netTcpBinding><bindingname="ServerBinding"closeTimeout="00:01:00"openTimeout="00:01:00"receiveTimeout="00:10:00"sendTimeout="00:10:00"transactionFlow="false"transferMode="Buffered"transactionProtocol="OleTransactions"hostNameComparisonMode="StrongWildcard"listenBacklog="10"maxBufferPoolSize="2147483647"maxBufferSize="2147483647"maxReceivedMessageSize="2147483647"><readerQuotasmaxDepth="64"maxStringContentLength="2147483647"maxArrayLength="2147483647"maxBytesPerRead="2147483647"maxNameTableCharCount="2147483647"/><reliableSessionordered="true"inactivityTimeout="00:10:00"enabled="false"/><securitymode="None"><transportclientCredentialType="Windows"protectionLevel="EncryptAndSign"/><messageclientCredentialType="None"/></security></binding></netTcpBinding></bindings></system.serviceModel><startup><supportedRuntimeversion="v4.0"sku=".NETFramework,Version=v4.0"/></startup></configuration>
这是全部的配置文件http://its.hongqilin.cn/ITS.WCFService.RecordService.svc这个是访问路径,求解决方案,在wcf测试客户端添加这个服务会以上错误。
解决方案
解决方案二:
周末是很冷清啊,一个人没有,我已经解决上边的问题了,是因为端口的net.tcp监听服务没有打开现在是silverlight4录音怎么把文件保存为MP3格式呢?
解决方案三:
今天调用wcf出了新的问题未能调用服务。可能的原因:服务已脱机或无法访问;客户端配置与代理不匹配;现有的代理无效。有关详细信息,请参阅堆栈跟踪。可以尝试通过启动新的代理、还原到默认配置或刷新服务来恢复。不存在主机win-oig3se6tqta的DNS项。Serverstacktrace:在System.ServiceModel.Channels.DnsCache.Resolve(Uriuri)在System.ServiceModel.Channels.SocketConnectionInitiator.GetIPAddresses(Uriuri)在System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uriuri,TimeSpantimeout)在System.ServiceModel.Channels.BufferedConnectionInitiator.Connect(Uriuri,TimeSpantimeout)在System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpantimeout)在System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpantimeout)在System.ServiceModel.Channels.CommunicationObject.Open(TimeSpantimeout)在System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpantimeout)在System.ServiceModel.Channels.CommunicationObject.Open(TimeSpantimeout)在System.ServiceModel.Channels.ServiceChannel.CallOpenOnce.System.ServiceModel.Channels.ServiceChannel.ICallOnce.Call(ServiceChannelchannel,TimeSpantimeout)在System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(TimeSpantimeout,CallOnceManagercascade)在System.ServiceModel.Channels.ServiceChannel.Call(Stringaction,Booleanoneway,ProxyOperationRuntimeoperation,Object[]ins,Object[]outs,TimeSpantimeout)在System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessagemethodCall,ProxyOperationRuntimeoperation)在System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessagemessage)Exceptionrethrownat[0]:在System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessagereqMsg,IMessageretMsg)在System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&msgData,Int32type)在IRecordService.GetData(Int32value)在RecordServiceClient.GetData(Int32value)InnerException:不知道这样的主机。在System.Net.Dns.GetAddrInfo(Stringname)在System.Net.Dns.InternalGetHostByName(StringhostName,BooleanincludeIPv6)在System.Net.Dns.GetHostEntry(StringhostNameOrAddress)在System.ServiceModel.Channels.DnsCache.Resolve(Uriuri)以上是错误的详细信息。