Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Calls to the web service will fail unless the Silverlight project is hosted in the same project

I am opening some older demo code and received the following message when I started a debugging session:

"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."

I am working in Visual Studio 2010, and the projects are configured for .NET 4.0. There is a web project which hosts the xap file and a Silverlight project which builds the xap. The Silverlight project has a service reference to a publicly available stock quote service.

My question: What does the above warning mean (in layman's terms) and how do I resolve it?

like image 506
MedicineMan Avatar asked May 20 '11 22:05

MedicineMan


1 Answers

I think this will go away if you set the web project which hosts the Silverlight application to be your startup project (right-click on the project in the Solution Explorer and select "Set as Startup Project").

like image 108
E.Z. Hart Avatar answered Oct 01 '22 10:10

E.Z. Hart