Why, when adding a service link in VS2010, a client class is not created?

I will lose my mind, I believe.

That is, I never had the same problem as before, and no one (Google indexed) has the same problem.

Whenever I add a link to a specific ASMX service to the VS2010 project, all the code is generated, there is a ServiceSoap interface that represents all the functions of the service, but there is no concrete implementation of this interface anywhere in the solution!

What am I doing wrong? I just right click project , add service reference , paste url to .asmx , type 'Blah' in the namespace box , click OK .

Everything seems to be going fine. I think I'm just crazy.


Update:
If I go to Advanced... in the service service link dialog and select it as a .NET 2.0 service, everything will work, but I don’t really want to do it.
The actual namespace that I use is Remedy , and the Service.asmx service .asmx file.
+6
c # visual-studio-2010 asmx
source share
5 answers

Try the following:

  • Look in the "Exit" window to see if there are any errors when using the "Add Service Link".
  • Look in Reference.cs to see if there are any errors (generated as comments).
  • Finally, try using svcutil.exe to generate a proxy, as it will be easier to see error messages.
+5
source share

Try it...

right-click the service link. then go on to configure the help service. then uncheck the box for reuse in referenced assemblies. UPD

it solved mine, hope this helps someone else.

+9
source share

Have you tried clicking "Show all files"?

alt text

Using this function, the service link can be expanded to various "source" files.

+3
source share

By clicking on the "show all files" icon. There is another folder in which they have the same name. when deleting a folder. and clear the solution. Add new services with the same name. Now it works fine.

+1
source share

Right-click the link, then click View in Object Browser. Just double-click one of the methods / properties inside the object explorer.

0
source share

All Articles