I had downloaded a C# project from the net.When I opened it in VS2010 and tried to run it it showed Error
"The type or namespace name 'Fireball' could not be found (are you
missing a using directive or an assembly reference?)"
When I checked the References Folder it showed a ! symbol on Fireball.Docking and fireball.Windows.Form
Can Somebody pls help me on how to get those dll files?
You don't have this current DLL included in your project. You could go back to where you downloaded the project and try to find the missing DLL. If you are sure that you have it with the project, go to the reference section where you have the ! and delete it. Then :
Right click References
Click Add Reference...
Browse to your Dll and add it.
Related
I am trying to work with GeoCoordinate which is meant to be supported by .Net Framework 4.5. I am working on winodws 8 and I have .Net Framework 4.5, but I keep getting The type or namespace name 'Device' does not exist in the namespace 'System' error.
Any solution?
The type or namespace name 'XXX' could not be found...
Always bear in mind, if you get this error there are three possibilities.
You missed the using directive.
You missed the Assembly reference
You have "using directive" as well as "Assembly reference" in place but the current project's target framework version is lower than the referenced assembly target framework version.
Almost all the cases above three steps should solve the problem.
Hope this helps.
Does not have added reference of System.Device dll in your project.
Steps to Add Reference.
1. Right click on the Reference folder on your project.
2. Select Add Reference.
3. Expand Assemblies option.
4. Search System.Device in the serach box at right corner side.
5. After searching, click on checkbox to select and click on ok.
If you are using VS.NET:
Right click on the References folder on your project.
Select Add Reference.
Select the .NET tab (or select the Browse button if it is not a .NET Framework assembly).
Double-click the assembly containing the namespace in the error message.
Press the OK button.
If you are using the command line, use the /r: or /reference: option. For Example:
csc.exe /reference:System.Drawing.dll MyFontDisplayApp.cs
When you recompile, this error will no longer appear.
It is also possible that your project uses x64 libraries and your machine has limited x64 libraries. I think this happened in my case.
Possible Solution: I copied library from x86 folder to bin folder of my project. Then added the new reference(discard the old reference to same library). AND IT WORKED.
Note: Please correct me if I am wrong here.
I did this thousand time but now it doesn't work.
I added a new project to my current solution. then I added a reference from the new project to the existing one. but I always get the error when I trying to build:
Error 2 The type or namespace name 'AccessClass' could not be found
(are you missing a using directive or an assembly reference?)
I tried different things, cleanup the solution, rebuild, etc. without success.
the solution is under source control (TFS). but this should not be a problem, isn't it??
any suggestions to solve this issue?
thanks,
tro
check on the configuration manager of the solution in vs2012. It might not be building your new project in which case there is no dll or exe to reference.
:( the testing project was on different client profile ...
Problem solved when change it.
I create some project that contain GUI - after compile this project i get dll and i can call the 'Show' method to see the dialog of the GUI.
I change the dll output path to the global bin of the project - and now my testing project that doing just the show dialog does not fine the namespace of the dll.
I deleted the reference of the dll and set it again with the location of the global bin directory - and i get again the error message
The type or namespace name 'XXXXXXX' could not be found (are you missing a using directive or an assembly
I see this message only when i try to run the testing project in the first time after i re-set the dll location ==> that mean that in the compile time the testing project sees the dll and his namespace with no problem.
How to solve this ??
Thanks.
:(
the testing project was on different client profile ...
Problem solved when change it.
I have added the reference TlGallioAddOn.dll to our sample c# application. I have using that reference like using TlGallioAddOn;. When using that reference of that dll it shows the following error.
The type or namespace name 'TlGallioAddOn' could not be found (are you missing a using directive or an assembly reference?)
Could u all please help me to resolve that.
Right click the project in your Solution Explorer. Click 'Add Reference' then find your DLL. It will import the DLL and resolve the error.
Check the framework target of both projects.
Project defaults are now .NET 4.0 Client. If you've compiled the addon project against .NET 4.0 (Full), you'll need to modify the project for which you're adding a reference to use .NET 4.0 (Full) also.
I have two projects in the current solution:
abc.Dashboard
abc.ThingyService
abc.ThingyService needs to be able to use a class from abc.Dashboard.
I've added a reference to abc.ThingyService pointing at abc.Dashboard (right click on project -> add reference -> projects -> abc.Dashboard) but it's not recognising that it has been added.
One of the files in the abc.ThingyService project contains:
using abc.Dashboard.Services
When I compile, I get the error:
The type or namespace name 'Dashboard' does not exist in the namespace 'abc' (are you missing an assembly reference?)
Am I missing something very obvious here? :/
Do you see the entry for Dashboard under the references section of ThingyService project in solution explorer ?
I would give a try to these steps.
1) Remove the reference and readd again and see.
2) Close Visual Studio and reopen it and see
3) Try to add the Project reference instead of selecting the dll while adding the reference.
4) Right click and build the Dashboard project and then build the ThingyService project. If that works, you probably need to check your build order.
I believe you also need to add the project as a dependency.
http://msdn.microsoft.com/en-us/library/et61xzb3(v=vs.80).aspx
This determines build order, making sure that the linked project has been compiled first.