 |
| .NET Web Services Discussions about .NET XML Web Service technologies including ASMX files, WSDL and SOAP. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the .NET Web Services section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

March 7th, 2004, 08:02 AM
|
|
Registered User
|
|
Join Date: Mar 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Using .dll in asp.net!
how to use the file of .dll in asp.net, i put the files in the directory named bin,but it does not work ,and why.
|
|

March 7th, 2004, 09:09 AM
|
 |
Friend of Wrox
|
|
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
|
|
Can you describe more about the DLL you want use? Is it a .NET DLL or a COM DLL?
(And I would suggest moving this topic to the "General .NET" forum.)
Peter
------------------------------------------------------
Work smarter, not harder.
|
|

March 7th, 2004, 09:21 AM
|
|
Registered User
|
|
Join Date: Mar 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thanks, it is a very simple question, but i don't how to deal with it.
Use the .net .dll files in asp.net, in fact in the books it says that if i put the .dll in the directory name bin it can work correctly,but it don't work. very interesting.
|
|

March 7th, 2004, 09:28 AM
|
 |
Friend of Wrox
|
|
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
|
|
Ok, so it sounds like you are using a .NET assembly.
Simply putting in the directory won't let you use it. You need to have a reference to it when you compile the code.
If you are using Visual Studio, you can do the following:
Put the DLL into the root of your ASP.NET project, then make a regular .NET reference to it. Once you click "Add Reference..." you'll get to the .NET assemblies tab in the reference dialog. Then you click "Browse" which should open up the root directory of the project. In there you'll find the DLL you want to use, select it and ok out of everything. Visual Studio will then copy the DLL into the bin directory for you and the code that uses that assembly will then work.
Peter
------------------------------------------------------
Work smarter, not harder.
|
|

April 26th, 2004, 11:57 AM
|
|
Authorized User
|
|
Join Date: Dec 2003
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
If I am compiling a DLL on the fly using the ICodeCompiler, how would I go about using the methods/properties of the newly compiled DLL in the application? The DLL has been compiled and resides in the BIN directory though I am still not able to reference it.
Dolphin Bay, Inc. -- turning visions into eReality(tm) -- West Palm Beach, FL
Website Design, Internet Strategy, Search Engine Marketing
www.DolphinBay.biz
|
|

May 13th, 2010, 12:55 PM
|
|
Registered User
|
|
Join Date: Aug 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Very useful, thanks !
Thanks ! This helps me solve my problem. In addition, in aspx page, I added the line below to use control on the page.
<%@RegisterAssembly="(DLL Name)"Namespace="(Namespace from Object Browser)"TagPrefix="(Any Prefix)" %>
George
|
|

May 23rd, 2014, 04:35 AM
|
|
Registered User
|
|
Join Date: May 2014
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
DLL is library file that contains code and data that can be used by more than one program at the same time
|
|
 |