Skip to main content
Home Forums Silverlight Programming Programming with .NET - General Add service reference not able to add/discover solution web services
7 replies. Latest Post by brauliod on August 20, 2008.
(0)
brauliod
Participant
1169 points
472 Posts
07-26-2008 5:03 AM |
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?
ken tucker
All-Star
16276 points
2,479 Posts
07-26-2008 6:24 AM |
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
Member
323 points
87 Posts
07-26-2008 8:55 AM |
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.
complete...
374 points
217 Posts
07-26-2008 9:12 AM |
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
17441 points
3,172 Posts
07-26-2008 11:27 AM |
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?
07-26-2008 11:47 AM |
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
Merrill ...
21 points
16 Posts
08-20-2008 9:59 AM |
Did anything work ..
I am getting very upset because of all the time wasted trying to solve the problem ..
08-20-2008 10:42 AM |
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