Potential exceptions when executing HOL labs 3 & 4

Topics: CAB & Smart Client Software Factory
Aug 19, 2006 at 7:25 AM
originally posted by: marianoszklanny

You may encounter an exception for the following activities when you execute the solutions for labs 3 and 4:

1. When clicking on ‘Ship Order’ launch point. ( labs 3 and 4)
2. When clicking 'Go' on the Lookup Order view to perform a search ( lab 4 only)

An exception will occur when the url of generated proxy in the client code (Shipping Module or IndividualOrderStatusModule) does not match the url of the Web service. This can occur because the Web service project is configured to use dynamic ports, and the proxy was generated for a specific port number instance. If VS launches the service under a different port, you will encounter a problem.

To solve this, you can update the Web references in the two client modules:

1. In Solution Explorer, expand the Web References folder of the ShippingModule (or IndividualOrderStatusModule) project.
2. Right-click AdventureWorksService and click Update Web Reference.
3. Run the application.