467,925 Members | 2,024 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,925 developers. It's quick & easy.

Error: The type or namespace name 'NLog' could not be found

Hello,

I am developing an application in C# using VS2003 for mobile device.
This application is using .Net compact framework.

I have added a reference to a third party library I am using for
logging messages [NLog]. I am getting a strange error with that
library. When I add the reference for the first time in the project,
the compilation completes without any error. The project will also
compile without any errors during that session of the VS2003. When I
save the project and restart the visual studio, the compilation gives
an error given below.

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

This is happening with the .Net smartdev application only. I have other
regular C# application for Windows XP platform and it never complains
about this library.

I am using proper version of the library for both the application types
[smartdev and regular].

I don't know if this is a NLog problem or C# problem or .Net problem.
If this is not an appropriate news group for this, please ignore.

Any help in resolving this will be appreciated.

Atul.

Dec 21 '06 #1
  • viewed: 8477
Share:
3 Replies

Atul Thombre wrote:
Hello,

I am developing an application in C# using VS2003 for mobile device.
This application is using .Net compact framework.
Forgot to mention one more point.

If I remove and add the reference for NLog again, it will compile
without error and will follow the same pattern if I close and start
visual studio.

Atul.

Dec 21 '06 #2
Hi,

Where is the library residing?

IF not in the GAC try to copy it to your local folder.
--
Ignacio Machin
machin AT laceupsolutions com

"Atul Thombre" <at******@gmail.comwrote in message
news:11*********************@73g2000cwn.googlegrou ps.com...
>
Atul Thombre wrote:
>Hello,

I am developing an application in C# using VS2003 for mobile device.
This application is using .Net compact framework.

Forgot to mention one more point.

If I remove and add the reference for NLog again, it will compile
without error and will follow the same pattern if I close and start
visual studio.

Atul.

Dec 21 '06 #3
Ignacio Machin ( .NET/ C# MVP ) wrote:
Hi,

Where is the library residing?

IF not in the GAC try to copy it to your local folder.
The library was not in GAC, so I copied it in the directory where the
project file is located. But, it has not solved the problem.

It happens even if I change the build configuration from 'debug' to
'release'.

Thanks for your help though.

Atul.
>

--
Ignacio Machin
machin AT laceupsolutions com

"Atul Thombre" <at******@gmail.comwrote in message
news:11*********************@73g2000cwn.googlegrou ps.com...

Atul Thombre wrote:
Hello,

I am developing an application in C# using VS2003 for mobile device.
This application is using .Net compact framework.
Forgot to mention one more point.

If I remove and add the reference for NLog again, it will compile
without error and will follow the same pattern if I close and start
visual studio.

Atul.
Dec 21 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Jorgen Haukland, Norway | last post: by
1 post views Thread by Paulustrious | last post: by
reply views Thread by mchuc7719 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.