Published SilverLight app throws exception

  • Thread starter AliR \(VC++ MVP\)
  • Start date
A

AliR \(VC++ MVP\)

Hi Everyone,

I have written a silverlight application, which talks to a WCF service,
which was created within the website after watching this video:
http://silverlight.net/learn/learnvideo.aspx?video=47177

The service gathers some data using a class library.

This all works fine within Visual Studio, but when published to a web server
it throws an excpetion, in the first xxxxServiceComplete call back, which
says check InnerException for more details. I check the InnerException, and
it tells me to look in the InnerException for more details.

Any thoughts?

Thanks
AliR.
 
S

sloan

This doesn't really help you much, but here is my "keep checking
InnerException" code:


catch (Exception ex)

{

Exception nestedEx = ex;

while (nestedEx != null)

{

Console.WriteLine(nestedEx.Message);

nestedEx = nestedEx.InnerException;

}

Console.WriteLine("-----------------------------");

Console.WriteLine(ex.StackTrace);

}
 
A

AliR \(VC++ MVP\)

Thank you for letting me know that I need to keep going down the chain.

Here is the error:
"An error occurred while trying to make a request to URI
'http://localhost:1312/LSService.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...."

I'm starting to hate the fact that developers need to become system
administrators! I'm not even sure what all that means, hopefully google
will have something to say about this.

AliR.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top