Solved

fatal error

Posted on 2004-04-01
7
793 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
  • 2
7 Comments
 
LVL 15

Expert Comment

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

-Lakshman
0
 
LVL 11

Expert Comment

by:KurtVon
Comment Utility
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
Comment Utility
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
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

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…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

763 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now