다음을 통해 공유


Silverlight Project Dialog Box

Microsoft Silverlight will reach end of support after October 2021. Learn more.

The Silverlight Project dialog box is displayed when your Silverlight application is the startup project and it is consuming Web services. The Silverlight Project dialog box has the following text:

This Silverlight project you are about to debug is consuming web services. Calls to the web service will fail unless the project is executed in the context of the web which contains the web services.

Do you want to debug anyway?

This warning is displayed because it is very likely that the Web service calls will fail. For more information about Web services in Silverlight and cross-domain issues, see the HTTP Communication and Security with Silverlight topic.

To access the Silverlight Project dialog box

  1. Create a new Silverlight Application project in Visual Basic or Visual C#. For more information, see How to: Create a New Silverlight Project.

  2. In Solution Explorer, right-click the Silverlight project and click Add Service Reference.

    The Add Service Reference dialog box appears.

  3. Enter a Web service URL in the Address text box and click Go. If you want to browse for available services click Discover.

  4. Once the Web service appears in the Services list, click OK.

  5. In Solution Explorer, right-click the Silverlight project and click Set as StartUp Project.

  6. In the Debug menu, click Start Debugging.

    The Silverlight Project dialog box is displayed.