I ve创建了一个LLQ,把一个银灯光灯光化的WCF服务,用于一个银星4.0解决方案Im。 I m正在向当地IIS7服务器出版,而不是在演练室视力临时网络服务器内运行。 每当我利用临时网络服务器的服务来建设项目时,该项目就会奏效,但一旦我转至我的国际空间法学会7网站服务器,就失败了以下错误:
Warning 1 Custom tool warning: Cannot import wsdl:portType
Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.DataContractSerializerMessageContractImporter
Error: Schema with target namespace could not be found.
XPath to Error Source: //wsdl:definitions[@targetNamespace= ]/wsdl:portType[@name= SpaceGameDBService ] C:UsersMindWorXdocumentsvisual studio 2010ProjectsMindWorX.SpacegameMindWorX.SpacegameService ReferencesDBServiceReferenceReference.svcmap 1 1 MindWorX.Spacegame
Warning 2 Custom tool warning: Cannot import wsdl:binding
Detail: There was an error importing a wsdl:portType that the wsdl:binding is dependent on.
XPath to wsdl:portType: //wsdl:definitions[@targetNamespace= ]/wsdl:portType[@name= SpaceGameDBService ]
XPath to Error Source: //wsdl:definitions[@targetNamespace= http://tempuri.org/ ]/wsdl:binding[@name= CustomBinding_SpaceGameDBService ] C:UsersMindWorXdocumentsvisual studio 2010ProjectsMindWorX.SpacegameMindWorX.SpacegameService ReferencesDBServiceReferenceReference.svcmap 1 1 MindWorX.Spacegame
Warning 3 Custom tool warning: Cannot import wsdl:port
Detail: There was an error importing a wsdl:binding that the wsdl:port is dependent on.
XPath to wsdl:binding: //wsdl:definitions[@targetNamespace= http://tempuri.org/ ]/wsdl:binding[@name= CustomBinding_SpaceGameDBService ]
XPath to Error Source: //wsdl:definitions[@targetNamespace= http://tempuri.org/ ]/wsdl:service[@name= SpaceGameDBService ]/wsdl:port[@name= CustomBinding_SpaceGameDBService ] C:UsersMindWorXdocumentsvisual studio 2010ProjectsMindWorX.SpacegameMindWorX.SpacegameService ReferencesDBServiceReferenceReference.svcmap 1 1 MindWorX.Spacegame
Warning 4 Custom tool warning: No endpoints compatible with Silverlight 4 were found. The generated client class will not be usable unless endpoint information is provided via the constructor. C:UsersMindWorXdocumentsvisual studio 2010ProjectsMindWorX.SpacegameMindWorX.SpacegameService ReferencesDBServiceReferenceReference.svcmap 1 1 MindWorX.Spacegame
Warning 5 Custom tool warning: Exception has been thrown by the target of an invocation. C:UsersMindWorXdocumentsvisual studio 2010ProjectsMindWorX.SpacegameMindWorX.SpacegameService ReferencesDBServiceReferenceReference.svcmap 1 1 MindWorX.Spacegame
Error 6 Custom tool error: Failed to generate code for the service reference DBServiceReference . Please check other error and warning messages for details. C:UsersMindWorXdocumentsvisual studio 2010ProjectsMindWorX.SpacegameMindWorX.SpacegameService ReferencesDBServiceReferenceReference.svcmap 1 1 MindWorX.Spacegame
现在,我认为,警告4和5以及错误6是警告1、2和3的结果,因此,我现在无视这些警告。 我ve忙,看到一些建议告诉我,在我提及主要银灯项目时,不要打上“参考组件中的重新使用类型”的检查箱,然而,这一节点根本就确定了我的问题。 我也尝试重新启用视觉演播室,但这只字不提。 我早就开始认为,这在IIS7网络服务器中有一定的设置,Im失踪,但现在我看一看几小时,我决定到这里去求助。 我发现了一个类似的问题:here,但“solution”不是解决问题,而是找到另一种方式。 我希望我们能找到解决办法。