tommym121
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?
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?
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
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
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
ASKER
Thanks for your assistance
ASKER