I have created a sample application in SilverLight and have used WCF Service to access database. When I try to create setup and deployment package and run the application. It throws an error "An exception occurred during the operation, making the result
invalid. Check InnerException for exception details.". Can anyone help me to fix the issue?
I have made the following changes to fix the same but had no luck..
If your problem persists there, please paste your setting files here.
Best regards,
Jonathan
Please mark the replies as answers if they help or unmark if not.
If you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code Framework
sankarcse
Member
8 Points
25 Posts
Setup and Deployment of Silverlight application
Sep 23, 2008 08:50 AM | LINK
I have created a sample application in SilverLight and have used WCF Service to access database. When I try to create setup and deployment package and run the application. It throws an error "An exception occurred during the operation, making the result invalid. Check InnerException for exception details.". Can anyone help me to fix the issue?
I have made the following changes to fix the same but had no luck..
1. I have added clientaccesspolicy.xml.
2. web.config changes.
Thanks
Sankar
Jonathan She...
All-Star
50156 Points
4951 Posts
Microsoft
Re: Setup and Deployment of Silverlight application
Sep 25, 2008 09:58 AM | LINK
Hi Sankarcse,
Firstly, please make sure that your application and WebService are in the same domain. Otherwise, we'd better add a cross domain policy file. http://franksworld.com/blog/archive/2008/04/17/10907.aspx. http://msdn.microsoft.com/en-us/library/cc197955(VS.95).aspx
Secondly, we need to do some modifications(especially the urls) when we deploy your application.
http://msdn.microsoft.com/en-us/library/cc189008(VS.95).aspx
http://timheuer.com/blog/archive/2008/03/14/calling-web-services-with-silverlight-2.aspx
If your problem persists there, please paste your setting files here.
Best regards,
Jonathan
If you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code Framework