troubleshooting Question

How I can add a web service reference in VS 2008?

Avatar of Sami
SamiFlag for Saudi Arabia asked on
.NET ProgrammingASP.NETWCF
9 Comments1 Solution2472 ViewsLast Modified:
I used to use web services in VS 2003, 2005 and I have no problem at all.

Now I'm using VS 2008, I created a web application and I added a web reference to an existing web service which was also created using VS 2008.

My problem is when I call the web service I'm getting the following error.
(Could not find default endpoint element that references contract 'AMSUsers.wsUsersSoap' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element).

I don't know what is the cause of the error message?


Web Service:
<System.Web.Services.WebService(Description:="Users Service.", _
 Name:="wsUsers", _
 Namespace:="http://AMServices/Users")> _
<System.Web.Services.WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<ToolboxItem(False)> _
Public Class Users
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 9 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros