472,960 Members | 2,174 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,960 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 9770

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: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...

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.