Adding a Web Link in Visual Studio 2010 to Point to a Sharepoint 2007 Site

I am creating a console application that can load a content type and remove print on it through C #. When I try to add a web link to an application, I get an error that is strange because I use the same web link in another application and it works fine. I am pretty sure I hit this problem earlier and fixed it, but I donโ€™t remember how: (

My steps:

  • Right-click the project and click Add Service Link ...
  • Click Advanced ...
  • Click Add Web Link ... (I get the same error when trying to add this as a service link)
  • Paste the URL into the text box: http: // (domain) /videolibrary/_vti_bin/lists.asmx and press Enter
  • In the field on the left side all my service operations are displayed, but the field in which the name of the web link and the Add link button are unavailable, and the following error is shown above:

An error occurred while loading "HTTP: // (domain) /videolibrary/_vti_bin/lists.asmx. Unable to connect to the remote server Connection could not be completed because the target machine actively refused it 127.0.0.1:80 Metadata contains a link that does not may be allowed: "HTTP: // (domain) /videolibrary/_vti_bin/lists.asmx. There was no endpoint listening at http: // (domain) /videolibrary/_vti_bin/lists.asmx which could receive the message. This is often caused by an incorrect address or SOAP. See InnerException, if present, for more details. Unable to connect to the remote server. No connection can be made because the target machine actively refused it. 127.0.0.1:80 If the service is defined in the current solution, try building the solution and adding the link service again.

EDIT: Tried to change target structure from .NET Framework 4 Client Profile to .NET Framework 3.5 to no avail

+4
source share
3 answers

I tried it from a virtual machine and it worked fine. Go figure. There must be something with the settings of the outgoing proxy.

+1
source

Below was my problem solved:

http://social.msdn.microsoft.com/Forums/zh/wcf/thread/02ce9fb9-6f67-45ec-9668-2dcd2317aab0

If you are behind a firewall, you need to force Visual Studio to use the system proxy settings, which can be done by manipulating the devenv.exe.config file.

Open it in Visual Studio and change the section as shown below:

<system.net> <defaultProxy useDefaultCredentials="true" enabled="true"> <proxy usesystemdefault="True" proxyaddress="http://yourproxyserver:port" bypassonlocal="False"/> </defaultProxy> <settings> <servicePointManager expect100Continue="false" /> <ipv6 enabled="true"/> </settings> </system.net> 
+2
source

I used the target structure as 3.5, and I don't encounter any problem, adding a web link I would suggest repeating the steps that you followed

0
source

Source: https://habr.com/ru/post/1344991/


All Articles