Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
|
.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
 
Old March 7th, 2004, 08:02 AM
Registered User
 
Join Date: Mar 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.

 
Old March 7th, 2004, 09:09 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

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.
 
Old March 7th, 2004, 09:21 AM
Registered User
 
Join Date: Mar 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.

 
Old March 7th, 2004, 09:28 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

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.
 
Old April 26th, 2004, 11:57 AM
Authorized User
 
Join Date: Dec 2003
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to DolphinBay
Default

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
 
Old May 13th, 2010, 12:55 PM
Registered User
 
Join Date: Aug 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
 
Old May 23rd, 2014, 04:35 AM
Registered User
 
Join Date: May 2014
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

DLL is library file that contains code and data that can be used by more than one program at the same time





Similar Threads
Thread Thread Starter Forum Replies Last Post
c dll in asp.net rkharikrishnan ASP.NET 1.0 and 1.1 Professional 2 June 13th, 2007 01:52 AM
.NET DLL --> ASP dparsons ASP.NET 1.0 and 1.1 Professional 0 September 22nd, 2006 07:37 PM
want to use the old Vc++ dll in asp.Net sjs950 ASP.NET 1.0 and 1.1 Basics 0 May 25th, 2006 05:30 AM
How to use a C#.NET DLL in ASP? vinugeorge ASP.NET 1.0 and 1.1 Professional 1 February 6th, 2006 03:32 AM
How to call VC++ DLL from ASP/ASP.net? leesoon Classic ASP Professional 0 December 9th, 2004 10:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.