Wrox Programmer Forums
|
Pro VB.NET 2002/2003 For advanced Visual Basic coders working .NET version 2002/2003. Beginning-level questions will be redirected to other forums, including Beginning VB.NET.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB.NET 2002/2003 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 October 15th, 2003, 06:56 AM
Authorized User
 
Join Date: Jun 2003
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASP & Dll Components

Hi,

I am used to using vb dll components with asp pages. Can anyone answer the following:

1, Can you create dll components in vb.net that can be called by standard asp pages. (If so how!)

2, IF the above is possible, would you still need to restart IIS when a change was made to the dll.

Thanks in advance

Byron
 
Old October 15th, 2003, 10:02 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Yes:
When you create a class library (assembly) in VS.Net, you have the option of "Registering for COM Interop". This registers it so COM (and classic ASP) can see it. If you aren't using VS, you can do the same thing manually using
C:\WINNT\Microsoft.NET\Framework\v1...\regasm.exe. This will register the .Net DLL to com.

Rebuilding:
When you rebuild it, I'd advise that you unregister the dll (also with regasm) and restart IIS as, just like a regular COM dll, the DLL may be locked by IIS.
However, if you are only rebuilding internal logic (and not the public interfaces) you *might* not need to un/re-register. BUT, you may still need to restart IIS because there might be a lock on the DLL file. Probably best to just use the full unregister/iisreset/rebuild/register process and stick to it to minimize problems.

Peter
 
Old October 15th, 2003, 10:16 AM
Authorized User
 
Join Date: Jun 2003
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Peter,

Thanks for your advice, I created a quick assembly and your right,I need to restart IIS as it lock the dll as it does with VB6.

Cheers

Byron





Similar Threads
Thread Thread Starter Forum Replies Last Post
ActiveX Components in asp kishore.kumar Classic ASP Components 2 March 9th, 2007 07:53 AM
asp with ecommerce components elladi Classic ASP Components 0 May 11th, 2005 06:00 AM
DLL & Excel - keep having to reset DLL reference! James Diamond Pro VB 6 2 May 25th, 2004 03:37 AM
ASP with web components kathryne Classic ASP Basics 0 September 29th, 2003 08:39 AM
Creating Activex DLL components vbmo Classic ASP Components 11 June 30th, 2003 04:37 AM





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