本文介绍了Silverlight应用程序无法调用webservice方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我开发了一个Silverlight应用程序,webservice调用在我的开发环境中工作正常,但在构建我的SL应用程序后我使用的是.xap在单独的Web应用程序中归档如下。



Hi,

I have developed a Silverlight application, the webservice calling works fine in my development environment, but after building my SL application i am using the .xap file in a seperate Webapplication as follows.

<asp:Silverlight ID="Silverlight1" runat="server" Height="600" Width="880" Windowless="true"

        Source="~/ClientBin/TableLikeForm.xap">
    </asp:Silverlight>





现在,在SL应用程序中正常运行的Webservice Calling无法通过.xap文件工作。



i已经检查了端点URI它没关系。



我得到的不足之处如下:





Now the Webservice Calling which was running fine in SL application is not working through .xap file.

i have checked the Endpoint URI it is ok.

The innerexception i am getting is as follows.

Quote:

远程服务器返回错误:NotFound。



at System.ServiceModel.AsyncResult.End [TAsyncResult](IAsyncResult result)

at System.ServiceModel.Channels.ServiceChannel.EndCall(String action,Object [] outs,IAsyncResult result)

在System.ServiceModel.ClientBase`1.ChannelBase`1.EndInvoke(String methodName,Object [] args,IAsyncResult result)

在TableLikeForm.ServiceReference1.WebService2SoapClient.WebService2SoapClientChannel.EndGetAutoComplete_EV (IAsyncResult结果)

在TableLikeForm.ServiceReference1.WebService2SoapClient.ServiceReference1_WebService2Soap_EndGetAutoComplete_EV(IAsyncResult result)

at TableLikeForm.ServiceReference1.WebService2SoapClient.EndGetAutoComplete_EV(IAsyncResult result)

at TableLikeForm.ServiceReference1.WebService2SoapClient.OnEndGetAutoComplete_EV(IAsyncResult result)

at System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result)

The remote server returned an error: NotFound.

at System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)
at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)
at System.ServiceModel.ClientBase`1.ChannelBase`1.EndInvoke(String methodName, Object[] args, IAsyncResult result)
at TableLikeForm.ServiceReference1.WebService2SoapClient.WebService2SoapClientChannel.EndGetAutoComplete_EV(IAsyncResult result)
at TableLikeForm.ServiceReference1.WebService2SoapClient.ServiceReference1_WebService2Soap_EndGetAutoComplete_EV(IAsyncResult result)
at TableLikeForm.ServiceReference1.WebService2SoapClient.EndGetAutoComplete_EV(IAsyncResult result)
at TableLikeForm.ServiceReference1.WebService2SoapClient.OnEndGetAutoComplete_EV(IAsyncResult result)
at System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result)





可以任何人建议我如何调试并知道问题出在哪里和有什么问题。





can any one suggest me how to debug and know where and what is the problem.

引用:

注意:同样Silverlight项目的旧版本.xap正常运行。

Note: My older version of .xap of same Silverlight project running fine.





i think我错过了一些设置,我在3天内搜索解决方案,请帮我解决这个问题。



提前致谢。



i think i am missing some setting, i am search for the solution since 3 days please help me regarding this issue.

Thanks in advance.

推荐答案


这篇关于Silverlight应用程序无法调用webservice方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 01:32