除非Silverlight项目托管在同一项目中,否则对Web服务的调用将失败

Med*_*Man 8 .net c# silverlight web-services

我打开一些较旧的演示代码,并在启动调试会话时收到以下消息:

"The Silverlight project you are about to debug uses web services.  Calls to the 
web service will fail unless the silverlight project is hosted in and launched 
from the same web project that contains the web services."
Run Code Online (Sandbox Code Playgroud)

我在Visual Studio 2010中工作,并且项目是针对.NET 4.0配置的.有一个托管xap文件的Web项目和一个构建xap的Silverlight项目.Silverlight项目具有对公开可用股票报价服务的服务引用.

我的问题:上述警告意味着什么(以外行人的话说),我该如何解决?

E.Z*_*art 18

如果您将托管Silverlight应用程序的Web项目设置为您的启动项目(在解决方案资源管理器中右键单击该项目并选择"设置为启动项目"),我认为这将消失.