开发者

Monotouch WCF reference wizard crashes

When trying to add a reference to a ASMX with WCF I get the following ewrror. Using the .NET 2.0 services option however works fine:

System.NullReferenceException: Object reference not set to an instance of an object
  at Mono.ServiceContractTool.MoonlightChannelBaseOperationExtension.FixupAsync () [0x00000] in <filename unknown>:0 
  at Mono.ServiceContractTool.MoonlightChannelBaseOperationExtension.Fixup () [0x00000] in <filename unknown>:0 
  at Mono.ServiceContractTool.MoonlightChannelBaseContext.Fixup () [0x00000] in <filename unknown>:0 
  at MonoDevelop.WebReferences.WCF.WebServiceDiscoveryResultWCF.CreateProxyFile (MonoDevelop.Projects.DotNetProject dotNetProject, Fil开发者_StackOverflow中文版ePath basePath, System.String proxyNamespace, System.String referenceName) [0x00000] in <filename unknown>:0 
  at MonoDevelop.WebReferences.WebServiceDiscoveryResult.GenerateFiles (MonoDevelop.Projects.DotNetProject project, System.String namspace, System.String referenceName) [0x00000] in <filename unknown>:0 
  at MonoDevelop.WebReferences.Commands.WebReferenceCommandHandler.NewWebReference () [0x00000] in <filename unknown>:0 


Mono does not have a compatible version of SlSvcUtil.exe, so you need to use the slsvcutil that Microsoft provides as part of the Silverlight 3.0 Tools to generate the client proxy.

http://wiki.monotouch.net/HowTo/WebServices/Using_WCF

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜