?
Solved

fatal error

Posted on 2004-04-01
7
Medium Priority
?
799 Views
Last Modified: 2011-09-20
I get the following error when i build the project


SNMPSession.cpp(5) : fatal error C1107: could not find assembly 'System.Net.DLL': please specify the assembly search path using /AI or by setting the LIBPATH environment variable


What can be the problem??
0
Comment
Question by:Dizzyha
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
7 Comments
 
LVL 15

Expert Comment

by:lakshman_ce
ID: 10732707
Is this in Visual Studio.NET? I guess System.NET dll belongs to .NET..

-Lakshman
0
 
LVL 11

Expert Comment

by:KurtVon
ID: 10735353
Go to Tools|Options and open the Projects|VC++ Directories page.  Set the combo box to "Library Files" and make sure you have an entry "$(FrameworkSDKDir)lib".  On my system it was second from last, but that shouldn't matter.

If it isn't there you probably also need to add "$(FrameworkSDKDir)include" to "include files" and "$(FrameWorkDir)$(FrameWorkVersion)" to "reference files".

If it is there, or you can't find the dialog I am talking about, make sure you are making a managed C++ project since unmanaged projects will not link to .NET dlls.  If this is not VS.NET or VS.NET 2003 you cannot link to .NET dlls.

Hope this helps.
0
 

Author Comment

by:Dizzyha
ID: 10736057
well, i found the entry "$(FrameworkSDKDir)lib" from where you said i will find it but the error is still there. After finding that entry i highleted it and clicked OK.....was i suppossed to do that or what???
0
 
LVL 11

Accepted Solution

by:
KurtVon earned 80 total points
ID: 10736258
If it is there then a managed C++ project should find it.  Make sure your project really is a managed C++ project.  That would be any of the projects created using the C++/.NET section of the "new project" dialog.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question