Click here to Skip to main content
15,899,475 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hey everyone.

I've finished setting up this silverlight web app that on button_click, calls a web service that saves a file to the server hard drive, and attaches it and sends the information to an email address. It works flawlessly on my dev machine.

I tried setting it up on the web in IIS, and you can get to the website just fine, but when button click occurs in your browser, no file gets saved and no email gets sent. I tried running it in VS2010 on our server, so the website ran under localhost:16801, but the web service was still referenced with the web url. I got a whole bunch of warnings about this webservice not working for some reason, and I've googled and tried everything to get them out of my way, to no avail, and I can't figure out what else I could be missing?

The warnings look like this:

https://skydrive.live.com/?cid=B7A005FD6D9E4A6F&id=B7A005FD6D9E4A6F%21107

If I run the web service under localhost settings, and then debug it on the server, it works just fine again, but otherwise, nothing happens.

What do I need to keep in mind when deploying apps like this? What could I be missing?
Before you ask I have already created corssdomainplicy.xml, and I'd get cross-domain warnings anyways. Its weird.
Posted
Comments
Mark Salsbery 2-Nov-11 12:44pm    
Do you really have a cross domain issue? If the Silverlight app is hosted on the same domain as the web service (for example https://skydrive.live.com) then you don't have a cross domain issue and the problem is probably just an incorrect service URI (for example, client is still trying to use a "localhost" URL).

1 solution

You need a cross-domain policy files in the root directory of the folder.
You can view this video[^] to understand more about this.

Here[^] is an article on this topic.
 
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