Cannot add link to System.Web.dll

I am trying to use the HTTP functions contained in the System.Web.dll assembly. However, while the dll seems to exist in the same directory as all the other links to the Visual Studio 2010 DLLs in my project, it cannot connect and generates a warning - "The specified component" System.Web "was not found." However, the dll is in the same folder as all the others referenced by the project, and selecting it in the "View Link" mode allows me to add it, after which it does not fill in the "Path" property. Am I doing something wrong? How can I make System.Web available in my project?

Any help is much appreciated!

Edit: I do not have a link to System.Web on the .Net tab of the Add Link window.

+42
c # visual-studio-2010 assemblies
Sep 18 '10 at 12:32
source share
6 answers

If you configured the target client profile for .NET 3.5 or 4, you will not see ASP.NET assemblies.

In addition, you should try using HTTP classes in System.Net.

+28
18 Sept '10 at 13:19
source share

For people who cannot find "System.Web" in .Net References, this may be the answer:

"you need to right-click the project -> properties -> and then change the" Target Structure ", which is likely to be the" .NET Framework 4 Client Profile "for" .NET Framework 4 "only.

The answer was given by Tinister (thanks) as an answer to the previous post. But I thought it was a little hidden in his original post. So I put it here to make it simpler. Hope it helps.

+74
Jul 15 '11 at 18:19
source share

System.Web should be referenced by the GAC. This assembly has nothing to do with your application folders.

alt text

+9
Sep 18 '10 at 12:35
source share

1 right-click on the links in Solution Explorer and click on the link ...

2 select the browse tab and go to the C: \ Windows \ assembly \ GAC_32 \ System.Web \ System.Web.dll page and add the dll file to your links.

+5
Jul 20 2018-11-11T00:
source share

You are trying to add a link to the System.Web.dll file ? System.Web is located in the GAC on any Windows system, so when you add a link in the Add Link dialog box, select System.Web from the .NET tab.

0
18 sept '10 at 12:36
source share

Joer

We have created a tool that will help you achieve your goal. Muse VSReferences will allow you to add a global assembly caching link to the project from Add GAC Link.

enter image description here

Hello

0
Jun 18 2018-11-18T00:
source share



All Articles