473,396 Members | 2,036 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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
3 9839

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: AIM | last post by:
Error in msvc in building inheritance.obj to build hello.pyd Hello, I am trying to build the boost 1.31.0 sample extension hello.cpp. I can not compile the file inheritance.cpp because the two...
9
by: Ben Dewey | last post by:
Project: ---------------------------- I am creating a HTTPS File Transfer App using ASP.NET and C#. I am utilizing ActiveDirectory and windows security to manage the permissions. Why reinvent...
3
by: Joe DeAngelo | last post by:
When I try to compile a source code which should normally run I got this error message error CS0246: The type or namespace name 'XmlSchemaSet' could not be found (are you missing a using...
7
by: Jorgen Haukland, Norway | last post by:
Hi, I have created a Java webservice which runs in IBM WebSphere appserver. I take the WSDL-file and create a VS.NET WinForm application and calls the service running on my PC and everything...
7
by: John Grandy | last post by:
My ASP.NET Web Service project has a Web Method that returns an array filled with instances of a custom class. The custom class is defined in a Class Library that is included in the web-service...
1
by: Paulustrious | last post by:
Newbie using VC# Express..... Part the First ======== Can some one tell me why Example 1 compiles and Example 2 does not... Example 1 ------------ using System;
0
by: mchuc7719 | last post by:
Hello, I have a Vb.Net 2005 ClassLibrary, when I try to compile using MSBee, only get errors. Before I to run the command line, I open in notepad the .vbproj and I was add the next line: ...
0
by: WebDev2 | last post by:
I can't get AJAX.NET Pro to work. I keep getting a Compiler Error Message: CS0246: The type or namespace name 'AjaxPro' could not be found (are you missing a using directive or an assembly...
0
by: DC | last post by:
The problem I'm using the .NET GridView and FormView objects for the first time and im getting the error "An OleDbParameter with ParameterName '@ID' is not contained by this...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.