Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
.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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old March 7th, 2004, 08:02 AM
Registered User
 
Join Date: Mar 2004
Location: shiyan, hubei, China.
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.

Reply With Quote
  #2 (permalink)  
Old March 7th, 2004, 09:09 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,413
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.
Reply With Quote
  #3 (permalink)  
Old March 7th, 2004, 09:21 AM
Registered User
 
Join Date: Mar 2004
Location: shiyan, hubei, China.
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.

Reply With Quote
  #4 (permalink)  
Old March 7th, 2004, 09:28 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,413
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.
Reply With Quote
  #5 (permalink)  
Old April 26th, 2004, 12:57 PM
Authorized User
 
Join Date: Dec 2003
Location: , , .
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
Reply With Quote
  #6 (permalink)  
Old May 13th, 2010, 01:55 PM
Registered User
 
Join Date: Aug 2003
Location: , WA, USA.
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
Reply With Quote
  #7 (permalink)  
Old May 23rd, 2014, 05:35 AM
Registered User
Points: 30, Level: 1
Points: 30, Level: 1 Points: 30, Level: 1 Points: 30, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2014
Posts: 8
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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 02:52 AM
.NET DLL --> ASP dparsons ASP.NET 1.0 and 1.1 Professional 0 September 22nd, 2006 08: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 06: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



All times are GMT -4. The time now is 12:36 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.