Print Page | Close Window

"Error occurred while trying to make a request to URI ... localhost:9009/EntityService.svc ..."

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2009
Forum Discription: For .NET 3.5
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=1232
Printed Date: 23-Apr-2024 at 3:17am


Topic: "Error occurred while trying to make a request to URI ... localhost:9009/EntityService.svc ..."
Posted By: WardBell
Subject: "Error occurred while trying to make a request to URI ... localhost:9009/EntityService.svc ..."
Date Posted: 22-Apr-2009 at 11:24pm

Symptom:

 

Everything seems right. Maybe the application was working before and you don't remember making any changes.

 

You press F5, Cassini starts, the browser appears, the first application screen appears, it all looks good,  

 
… and you get the following error the moment the application tries to perform a service action (e.g., DevForce tries to log in):

 

An error occurred while trying to make a request to URI 'http://localhost:9009/EntityService.svc'. This could be due to attempting to access a service in a cross-domain way without a proper cross-domain policy in place, or a policy that is unsuitable for SOAP services. You may need to contact the owner of the service to publish a cross-domain policy file and to ensure it allows SOAP-related HTTP headers to be sent. Please see the inner exception for more details.

 

There is no inner exception.

 

The error message leads you on a wild goose chase.

 

Probable Cause:

 

The VS Start-up project has become the Silverlight project (e.g., ModelExplorer) instead of the Web project (e.g., ModelExplorerWeb).

 

Who notices that Visual Studio has lost track of the start-up project?

Who thinks of that when the app seems to launch perfectly?
Maddening.

 

Solution:

 

Make the Web Project the start-up project.




Print Page | Close Window