473,320 Members | 1,580 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,320 software developers and data experts.

error CS0246 what wrong?

Hello,
I try to debug a c# program using mono-debugger. But i need first to create .exe.mdb file, using the folowing command:
gmcs -debug program.cs

When doing this I get the following error:
error CS0246: The type or namespace name `MyNamespace' could not be found. Are you missing a using directive or an assembly reference?

I have "using MyNamespace;" in the souce code of program.cs, and I have "MyNamespace.dll" too in my lib directory.

I don't know what's wrong!! have you any suggestion?

Thanks;
Mar 18 '10 #1
2 3152
tlhintoq
3,525 Expert 2GB
A) Do you really think you're the first coder to want to use "MyNamespace"
Stop right now and make it something fairly unique before you build a dozen applications using that. What happens if you import someone else's code a year from now and they also have built their functions in "MyNamespace"
May I suggest your 'handle'? Its a reasonable guess that someone else is not using the namespace "doudou88". I use this same tactic. All of my shared functions are in the namespace 'tlhintoq' - I know of no other Klingons with that name.

B) Have you set a reference to that in your project?
In Visual Studio, right-click on the project and choose "Add reference..." from the context menu. Then navigate to the dll
Mar 18 '10 #2
In fact it isn't me how implement this code. I need just to use it.
But as the program don't work correctly, I need to debug it.

A) The namespace is different than "MyNamespace", I write it like this in the post just to be simple and clear for readers.

B) I don't know how to do that! I'm using command ligne.
Mar 18 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

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...
2
by: sean | last post by:
Hi there, I am trying to call a C# web service from an aspx page, I have the asmx file, a user control file ascx and the aspx file. I have verified that the web service is returning correct...
0
by: manfred | last post by:
Hello, I have this error with C# code Compiler Error CS0246: The Type or Namespace Name <XmlNavigator> Could Not be Found or Compiler Error CS0246: The Type or Namespace Name...
1
by: Leo | last post by:
Hi, The code below is working: Main.cs ------------- using System; namespace test3
1
by: Kumar Bhogaraju | last post by:
We developed an application in 2.0; but our new hosting provider supports only 1.1. Can anyone point me to a link where we can migrate the application easily without rewriting the code? When we...
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...
4
by: infinetinc | last post by:
I'm receiving the following error when this site is published to the production environment: Compiler Error Message: CS0246: The type or namespace name 'GridViewHelper' could not be found (are you...
5
by: Michael Bray | last post by:
I have some class files in App_Code (eg MyClass.cs) but if there is an error during compilation, the error list doesn't say what file the error is in. It just shows something like "(0,0): error...
3
by: Mariano | last post by:
Greetings, I'm developing a web site in asp.net 2.0. I have class files in App_Code and they are used in aspx. Example: * App_Code ( i have users.cs containing users class, data.cs is DAL) *...
1
by: rhea06car | last post by:
i got an error massage cs0246: The type or namespace name 'StringCollection' could not be found (are you missing a using directive or an assembly reference?) heres my code: public static...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.