Link to home
Create AccountLog in
Avatar of tommym121
tommym121Flag for Canada

asked on

namespace could not be found when compiling using Visual Studio 2010

Error      103      The type or namespace name 'log4netWrapper' could not be found (are you missing a using directive or an assembly reference?)      

I am trying to create a class library 'log4netWrapper'.  I have written another project 'log4netWrapperTest' to test the class library.

I run into a compilation problem with the log4netWrapperTest even I have compiled succesfully with log4netWrapper,  I both add reference and using directive.

But still get the error, anyone have any idea why?
 User generated image User generated image User generated image
ASKER CERTIFIED SOLUTION
Avatar of elimesika
elimesika
Flag of Israel image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of tommym121

ASKER

Sorry, I did not get what you mean,  Would you be able to show it to me?

SOLUTION
Avatar of nishant joshi
nishant joshi
Flag of India image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
nishantcomp2512:

Try it. Still same error

VijayBalkawade:

Not sure what you mean.

I have attached all the files  VS1-VS6 * is for the class library log4netWrapper
VST-VST2* is for the console application log4netWrapper.

I hope see my stupid mistake.  I just can't see the problem.  I have redo the same simple project for 3 times now.


vs1.JPG
VS2-invalidLogException.JPG
VS3-Logger.JPG
VS4-LoggingInitializationExcepti.JPG
VS5-LoggingLevel.JPG
VS6-AssemblyInfo.JPG
VST1-Program.jpeg
VST2-AssemblyInfo.JPG
Thanks for your assistance