Solved

fatal error

Posted on 2004-04-01
7
797 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 20 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

Industry Leaders: 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

Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

726 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