Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

Add web reference problem(silverlight 2.0) RSS

34 replies

Last post Sep 30, 2009 11:24 PM by kwells5750

(1)
  • Jim Mangaly

    Jim Mangaly

    Contributor

    2646 Points

    383 Posts

    Re: Add web reference problem(silverlight 2.0)

    May 10, 2008 04:19 PM | LINK

    I suppose your solution has 3 projects - the Silverlight application, the web app that hosts the Silverlight project and the Web service project, right? Your policy file should be added to the root of the third project. You can copy it next to the .svc file.

    However, if you are only consuming an external service over which you have no control over, you can only hope that the provider of the service has the policy file in place.

    Cross domain access without the policy file is forbidden in Silverlight to avoid cross site forgery. Read this MSDN article and three part article by Karen Corby starting here.

    Hope this helps,
    Jim (http://jimmangaly.blogspot.com/)

    Please MARK the replies as answers if they answered your question

    http://www.identitymine.com/
  • amurawat@hotmail.com

    amurawat@hot...

    Member

    8 Points

    6 Posts

    Re: Add web reference problem(silverlight 2.0)

    Jun 06, 2008 12:16 PM | LINK

    Please can u tell me how to add a refernce to the MSn Search lnk in a silverlight application

    I want to add a refernce to the following link: http://soap.search.msn.com/webservices.asmx?wsdl 

    its very urgent.

  • simbuaarumugam

    simbuaarumugam

    Participant

    1182 Points

    405 Posts

    Re: Re: Add web reference problem(silverlight 2.0)

    Dec 08, 2008 08:07 AM | LINK

     Hi amur

    You just download the file what you want to add the reference in to your project like (.dll) files . and the open your project in your project silvelright references is there .Just right click on that give add references .then click the Browse button and add the referece where you save the download file 

    SimbuAarumugam India
    http://simbusoftwareengineer.blogspot.com
    (Mark As Answer If its Satisfy your needs)
  • simbuaarumugam

    simbuaarumugam

    Participant

    1182 Points

    405 Posts

    Re: Re: Re: Re: Re: Re: Add web reference problem(silverlight 2.0)

    Dec 08, 2008 08:22 AM | LINK

     hi lakshmi

    Did you use LINQ in your project .. please update the service reference in your project or delete and re add your service references .. this is a problem for generating the error The remote server returned an unexpected response: (404) Not Found.   Check it correctly 

    SimbuAarumugam India
    http://simbusoftwareengineer.blogspot.com
    (Mark As Answer If its Satisfy your needs)
  • kwells5750

    kwells5750

    Member

    2 Points

    1 Post

    Re: Re: Add web reference problem(silverlight 2.0)

    Sep 30, 2009 11:24 PM | LINK

     Thank you Kostja.  Your code is very clear and helpful to newbee like me.

    silvelight 2 async web reference