hi i am developing a 3 ntier webform .. i have managed to create one of my class.vb as a dll. now i am trying to create a dll which has the previous dll in it put i keep on getting an error that the file of the previous dll can not be found.
my imports of my businesslogic class are as follows(this is the class that is giving me errors to create a dll)
VB Code:
Imports System
Imports Study.DataLayer1 'study is the name of my project and datalayer1 is the namespace of my previous dll
Imports System.Data
Imports System.Data.OleDb
Imports System.Reflection
in the vs.net command prompt i write as follows- well actually i tried so so many.. me really tired of this... can someone please please help
Why do you insist on using the commandline compiler? Get yourself a copy of the IDE and all these problems will vanish immediately. All the Compile Output paths are customaizable per project anyway.
hi.. what is the IDE? i do not want to use the compiler but it is the only thing i found that can create a dll for me.. could you tell me what is IDE and how i can get it..?? thanks for your reply...
hi.. what is the IDE? i do not want to use the compiler but it is the only thing i found that can create a dll for me.. could you tell me what is IDE and how i can get it..?? thanks for your reply...
OMG! I can't believe you don't know about this. Go to a computer shop and buy a copy of Visual Basic.Net. Install it and you will have the IDE (Integrated Development Environment). It looks like this screenshot...
It has the compiler built-in so you never need to mess about with commandlines (unless you have some special need to do so). DLLs are just an everyday option for the IDE. The standard Version of VB.Net is easily good enough to create high-end applications in windows.
Your productivity will improve 100x if you get this.
What have you been using to write your code with, Notepad?
The IDE has intellisense that completes your keywords, gives you a list of all the members of any object you use, on the fly syntax help, dynamic help as you type!! You cannot live as a .net coder without the IDE. Its that simple.
heya thanks for your reply .. i have visual studio.net installed.. i know this might sound strange that i asked what IDE is but i am doing the asp.net quickstart tutorials and it specifies that to create a dll you have to you the
VB Code:
/t:library /out: /r:
i have created one dll and it works fine.. now i have created another class which i want to create as a dll which in it imports another dll which i have created.. and i get the error that my imports is not defined.
wossname told me to use the IDE instead of the command line prompt.. i am using the command line prompt that comes with the vs.net tools, because the tutorial i am doing mentions that.. wossname is saying that there is a quicker way using IDE....
can you help me please cause me really getting confused... thanks for your reply really appreciated....
For starters, because you said this is an ASP.NET project, you should have posted it in the ASP.NET forum.
That said, when you compile an ASP.NET web application, it automatically creates the .dll file for you. All you then have to do is get the .dll file out of the bin directory on your web server, copy it to the destination server into the bin directory at the root of the site directory structure (unless it's been specified differently) and ensure your page has the Imports statement to bind it to the codebehind.
If you use Microsoft Visual Studio .NET to do all of this, it will automatically put your imports statement in the HTML for you.
I use Microsoft Visual Basic 2005. (Therefore, most code samples I provide will be based around the .NET Framework v2.0, unless otherwise specified)
heya thanks for your reply .. i have visual studio.net installed.. i know this might sound strange that i asked what IDE is but i am doing the asp.net quickstart tutorials and it specifies that to create a dll you have to you the
VB Code:
/t:library /out: /r:
i have created one dll and it works fine.. now i have created another class which i want to create as a dll which in it imports another dll which i have created.. and i get the error that my imports is not defined.
wossname told me to use the IDE instead of the command line prompt.. i am using the command line prompt that comes with the vs.net tools, because the tutorial i am doing mentions that.. wossname is saying that there is a quicker way using IDE....
can you help me please cause me really getting confused... thanks for your reply really appreciated....
Just forget commandlines. Open up visual studio and open your project with it (Or start a new Class Library project and add your code to it).
Then look at the Build menu, click Rebuild Solution COngratulations you now have a compiled DLL.
There are loads of options to play with and you can customize your compile paths if you need to send compiled files to specific locations.
You ned to spend some time playing with the IDE before you try to use it properly because it is a complex tool, but you should get intop it pretty fast.
Try doing a hello-world program to get your self into the swing of things.
hi thanks guys for your reply..
wossname i do have vs.net installed i just didnt know that called it IDE as well.. i have not been using notepad.. i have been using vs.net - asp.net,webforms and vb.net to create this dll.. i am using the asp.net quickstart tutorials...
thanks for your replies and sorry if i sounded stupied by asking about IDE but i am never shy to ask something i dont know id rather ask than pretend that i know it all.. thanks for your replies guys i really appreciate and for always teaching me more stuff...
hi wossname i have done as you have specified to me i added a class library to my project and added code to the class that comes with it.. i copied the dll which is in bin folder of the classlibraryProject and pasted it in the MyProject bin.
when i am trying to call the imports statement(to call the classlibraryProject dll which i have pasted) in my aspx.vbfile in myproject it doesnot allow me to add it..
i have rebuild the solution and both my project and classlibraryProject.