Skip to main content

Microsoft Silverlight

The remote server returned an unexpected response: (404) Not FoundRSS Feed

(0)

denise_nexus
denise_n...

Member

Member

5 points

11 Posts

The remote server returned an unexpected response: (404) Not Found

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
ausi1

Member

Member

82 points

18 Posts

Re: The remote server returned an unexpected response: (404) Not Found

 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. 

 

Ausi with a lot of time on his hands

The Chriso

denise_nexus
denise_n...

Member

Member

5 points

11 Posts

Re: Re: The remote server returned an unexpected response: (404) Not Found

Where would the root of localhost be as I am running both client and server on the same machine

Thanks

HarshBardhan
HarshBar...

Star

Star

9908 points

1,719 Posts

Re: Re: The remote server returned an unexpected response: (404) Not Found

You can put Client access policy in same folder in which your Wcf Service is there ..

Mark as answer if this post answered your question.

Harsh Bardhan

Alexander Manenko
Alexande...

Member

Member

436 points

189 Posts

Re: Re: Re: The remote server returned an unexpected response: (404) Not Found

 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
rajat.barik

Member

Member

14 points

11 Posts

Re: Re: Re: Re: The remote server returned an unexpected response: (404) Not Found

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
SteveWong

Contributor

Contributor

6343 points

1,281 Posts

Re: Re: Re: Re: Re: The remote server returned an unexpected response: (404) Not Found

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.

Regards,
SteveWong (HongKong)
Please mark post as answer if they help you

Client App Dev
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities