Click here to Skip to main content
16,019,876 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a Silverligth Application with a WCF service Reference.

When building it from the Visual Web developer Every thing works fine.It is able to retrive the Data from the SQL server and everything the Service is intended to do.

The problem is when i try to host the silverlight page using Apache server independently i getting this error:
--------------------------------->
An exception occurred during the operation, making the result invalid. Check InnerException for exception details.
at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary()
at SilverlightApplication11.ServiceReference1.DoWorkCompletedEventArgs.get_Result()
at SilverlightApplication11.About.client_DoWorkCompleted(Object sender, DoWorkCompletedEventArgs e)
at SilverlightApplication11.ServiceReference1.Service1Client.OnDoWorkCompleted(Object state)
-------------------------------->

Anybody have any idea on how to resolve this or how to get it working.
Thank in advance.

I have changed from apache server to the inbuild Windows Xp IIS ( Version 5.1 ) bu the problem remain the same ..

Any particular section of code you woulf like to see please comment i would paste the snippets that alot.
Posted
Updated 10-Mar-11 14:24pm
v2

1 solution

Make sure the URL to the web service is correct on the server.

You will need to keep the URL dynamic (as in load from a text file or database) so that you can change this as and when required - without compiling your code.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900