Skip to main content

Microsoft Silverlight

Unanswered Question Add service reference not able to add/discover solution web servicesRSS Feed

(0)

brauliod
brauliod

Participant

Participant

1169 points

472 Posts

Silverlight MVP

Add service reference not able to add/discover solution web services

This is a bit odd,

 Everything has been working fine... til now, on existing projects calls to Web Services works perfectly, but on new projects I'm not able to add a reference to an existing web services on the same solution (web project).

  I have tried to reinstall the SDK but no luck... last chance reinstall everthing :-(

  Any ideas / miracles about how to solve this?

// ---------------------------------
    Braulio Diez

    http://www.dbschemaeditor.com
    Free Silverlight Based Database Schema Editor
/// ---------------------------------

ken tucker
ken tucker

All-Star

All-Star

16276 points

2,479 Posts

Re: Add service reference not able to add/discover solution web services

I usually have to run the website before I can add a service reference to a web service in my silverlight app.  Building does not seam to be enough

WiproSachin
WiproSachin

Member

Member

323 points

87 Posts

Re: Add service reference not able to add/discover solution web services

Hi,

 

Please check your Serviceconfig file . When you create service reference this file have the entry check whether it's marking to the right url of your web service. this can be problem.

Please Mark as Answer if your problem is solve with above solution

Regards

Sachin
Consultant

completetrader
complete...

Member

Member

374 points

217 Posts

Re: Add service reference not able to add/discover solution web services

Try setting the .svc file as your startup file and running the project. That will show you the web service calls that are available. Click on the link at the top link to make sure everything is working correctly. Then reset your startup page and try to make the reference again. Maybe that will work.

sladapter
sladapter

All-Star

All-Star

17441 points

3,172 Posts

Re: Add service reference not able to add/discover solution web services

 Is this your first try after you upgrate to beta2? When you say you are "not able to add a reference to an existing web services on the same solution" what error message did you get?

 

sladapter
Software Engineer
Aprimo, Inc

Please remember to mark the replies as answers if they answered your question

brauliod
brauliod

Participant

Participant

1169 points

472 Posts

Silverlight MVP

Re: Re: Add service reference not able to add/discover solution web services

That's the funny thing, I have been adding services without any problem until now.

 The issue comes, when I click on add service reference, then Visual Studio is not able to find any web service on the solution, if I just add a link to a service it doesn't recognize it as well.

  I have tried to create the project in another computer, and then port the project to my offending laptop, and then it works fine (I add the service reference in the other laptop).

  I will try the commented tricks before reinstallilng Visual Studio (I would have to reinstall a big bunch of stuff :-( ).

 

  Thanks for your help

    Braulio

// ---------------------------------
    Braulio Diez

    http://www.dbschemaeditor.com
    Free Silverlight Based Database Schema Editor
/// ---------------------------------

Merrill Marie
Merrill ...

Member

Member

21 points

16 Posts

Re: Re: Add service reference not able to add/discover solution web services

Did anything work ..

 

I am getting very upset because of all the time wasted trying to solve the problem ..

brauliod
brauliod

Participant

Participant

1169 points

472 Posts

Silverlight MVP

Re: Re: Re: Add service reference not able to add/discover solution web services

Yes there is a workaround !!!

   The problem is: you have to delete a file that has to do with web service discovery, if you don't delete it, the installable package of silverlight won't place it's version and things won't work. Why it happens on some machines ? It seems that we had installed something that update the component, not everybody has do it so.

   About the solution:

http://www.itwriting.com/blog/665-more-silverlight-visual-studio-setup-hassles.html 

  I have compiled more intersting info (bug solving, and features) about silverlight in:

http://www.tipsdotnet.com/ArticleBlog.aspx?KWID=24&Area=Silverlight&PageIndex=0

  HTH

    Braulio 

 

 

 

// ---------------------------------
    Braulio Diez

    http://www.dbschemaeditor.com
    Free Silverlight Based Database Schema Editor
/// ---------------------------------
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities