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

namespace DLL problem

hello,
i compil my c# program into a DLL.
next i install it into my framework directory :
c:/windows/Microsoft.NET/myframework.../MyDll.dll
but... when i want use it with "unsing MyDll.dll" i obtain this error :
CS0246: The type or namespace name 'MyDll' could not be found (are you
missing a using directive or an assembly reference?)

Where must i install it ?
Mar 28 '06 #1
3 1674
Hello, Steph!

S> hello,
S> i compil my c# program into a DLL.
S> next i install it into my framework directory :
S> c:/windows/Microsoft.NET/myframework.../MyDll.dll
S> but... when i want use it with "unsing MyDll.dll" i obtain this error :
S> CS0246: The type or namespace name 'MyDll' could not be found (are you
S> missing a using directive or an assembly reference?)

S> Where must i install it ?

If you use Visual Studio IDE, you can select references forlder then select add reference and finally select the assembly you want to reference.

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Mar 28 '06 #2
Hi,

Why are you copying it into the framework directory?
I think it;s better to install it in the GAC.

You also need to add a reference to it in your project

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Steph" <pi**@pipo.com> wrote in message
news:44***********************@news.wanadoo.fr...
hello,
i compil my c# program into a DLL.
next i install it into my framework directory :
c:/windows/Microsoft.NET/myframework.../MyDll.dll
but... when i want use it with "unsing MyDll.dll" i obtain this error :
CS0246: The type or namespace name 'MyDll' could not be found (are you
missing a using directive or an assembly reference?)

Where must i install it ?

Mar 28 '06 #3
It doesn't "need" to be installed anywhere.

All that needs to be done is add a reference to the dll by right
clicking references, selecting add reference, and locating the dll on
your hard drive. VS will then make a local copy of this dll in its bin
folder.

You CAN install it in the gac if you WANT... but unless you have a
reason to (reasons being the dll will be shared among many
applications, and as it evolves it may break compatability), i dont see
a reason to bother.

This might be a good thing for you to read:
http://www.codeproject.com/dotnet/as...deployment.asp

Mar 28 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Marcin Kalicinski | last post by:
Is the code below ill formed (because operator >> is defined in different namespace than class B)? It fails with VS 2005 Beta. I don't know if I should redesign my code or if I should find a...
7
by: Kevin Newman | last post by:
I've been toying with a namespace manager, and wanted to get some input. So what do you think? if (typeof com == 'undefined') var com = {}; if (!com.unFocus) com.unFocus = {}; ...
5
by: Alexis | last post by:
Hello, I have a set of classes I created from schema files using the xsd.exe tool. I'm using namespaces in the clases ( I had to because I have some classes with the same name but not the same...
0
by: richwangler | last post by:
This problem should be easily reproducable if anybody has the time. I need to build the following XML programatically and decided to use the XMLSerializer. I simplified the XML (myExample.xml)...
5
by: Mike Oliszewski | last post by:
Given the following c# code: namespace Company2 { public class SomeFunctions { public void FunctionA() { // Do Something. }
10
by: anders | last post by:
I have 2 external assemblies A1 and A2 that both define class X in the global namespace. I need to use both assemblies in my VB project but the names X are ambiguous. How can I get around this...
4
by: Kevin Newman | last post by:
The primary problem I've had with php is the lack of namespaces, which makes OOP very difficult to organize, since you end up with large number of classes cluttering up the same namespace - which...
30
by: Pep | last post by:
Is it best to include the code "using namespace std;" in the source or should each keyword in the std namespace be qualified by the namespace tag, such as std::cout << "using std namespace" <<...
3
by: George | last post by:
I am currently developing an xbrl validation software that takes an xml instance file and a lot of schemas(xsd files) and validates it against the xsd files. I am using Visual basic in visual...
7
by: Armin Zingler | last post by:
Hi all, I have a Form called "Main": Public Class Main Private Sub Button1_Click( _ ByVal sender As System.Object, ByVal e As System.EventArgs) _ Handles Button1.Click
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.