Skip to main content
Home Forums Silverlight Programming Visual Studio & Silverlight Development Tools The remote server returned an unexpected response: (404) Not Found
6 replies. Latest Post by SteveWong on October 11, 2008.
(0)
denise_n...
Member
5 points
11 Posts
08-27-2008 4:30 PM |
I have created the projects as descibed in the on-line sIiverlight docs. CustomerService and CustomerClient but I get the above error. I have created a clientaccesspolicy.xml as described because I have a cross domain problem as the ports are different. But I do not know where to put this file the service is run from within Visual Studio. Do you know where the root of the local domain is?
ausi1
82 points
18 Posts
08-28-2008 5:38 AM |
404 error means exactly what is says. File Not Found. check some of your spelling.
Your clientaccesspolicy.xml goes in the root of the web server. eg: http://example.com/clientaccesspolicy.xml
If you do not have access to the root you will need to ask your server Administrator to install it for you. If Silverlight cannot find the access file then you would get a managed code error Security Exception.
08-28-2008 10:20 AM |
Where would the root of localhost be as I am running both client and server on the same machine
Thanks
HarshBar...
Star
9908 points
1,719 Posts
08-28-2008 10:29 AM |
You can put Client access policy in same folder in which your Wcf Service is there ..
Alexande...
436 points
189 Posts
08-28-2008 10:31 AM |
HarshBardhan it's not work. I have some problem. I put this crazy file in all folders i have :D It's not work >:-[~~~~~~
rajat.barik
14 points
10-06-2008 12:41 PM |
Hello, put your clientaccess policy file in the C:\Inetpub\wwwroot.
I wish this will help you to solve your problem.
Thanks for ur valuable time.
SteveWong
Contributor
6343 points
1,281 Posts
10-11-2008 12:10 PM |
What did you installed? Silverlight 2 Beta 2 right?
IF SO, first check your Silverlight Tools for VS 2008 install size on Add/Remove Programs window. If it is 1.14 MB, then you need to do the following:
1) Uninstall your Silverlight Tools for VS 2008,
2) Remove (delete) the following dll C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\Microsoft.VisualStudio.ServicesProxy.dll
3) Re-Install Silverlight Tools for VS 2008.
If your tool's install size is already 1.18 MB, then your problem is not install problem. See if it is the protocol Problem see if the endpoint address is correctly pointed, check carefully for the port number if you are running the apps in VS Debug Server.
Lastly, if the problem is caused in the function call part, it is another topic, I will explain that later. First to see if the above can solve your problem or not.