Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics 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 28th, 2005, 05:32 PM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to update active X component in ASP

Hi, all,

I create a ActiveX Dll using VB, then call the DLL methods from ASP by using <OBJCET> to generate an object of the DLL. My problem is that everytime I update the DLL, I have to remove the old dll, is there any way that the dll will be updated automatically? I didn't change the version number of the dll when I compile it, is that the reason? if I change the version number and at the same time change the version number in the <OBJECT> tag, does the client machine will update the dll automatically?

Andraw

 
Old March 29th, 2005, 02:29 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi
Default

No it wont update automatically..

 
Old March 29th, 2005, 10:13 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi, Santhi,

Thanks for your reply. The DLL is created in the server side, when client run the program, the DLL will be installed in the client machine, so if the DLL cann't be updated automatically, how the client can get the latest version?

Andraw

 
Old March 29th, 2005, 11:42 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Quote:
quote:Originally posted by Andraw
 Hi, all,

I create a ActiveX Dll using VB, then call the DLL methods from ASP by using <OBJCET> to generate an object of the DLL. My problem is that everytime I update the DLL, I have to remove the old dll, is there any way that the dll will be updated automatically? I didn't change the version number of the dll when I compile it, is that the reason? if I change the version number and at the same time change the version number in the <OBJECT> tag, does the client machine will update the dll automatically?

Andraw

If you are using a dll on the server then you don't need to do anything special. Once the old dll is uninstalled and the new dll is installed and registered, provided it has the same prog id, then you will use it. In older versions of IIS you need to stop and start the web service though. If you are creating an object on the client then see this page regarding how to set the codebase attribute:

http://msdn.microsoft.com/library/de...s/codebase.asp


--

Joe (Microsoft MVP - XML)
 
Old March 29th, 2005, 01:57 PM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks, Joe,

Your information is very useful. The component I created will be installed in the client's computer. So whenever I modify the DLL, I should change its version number, at the same time change the #version in the CODEBASE property in <OBJECT> to match it, if the version number is higher than the installed one in the client's computer, the internet explorer will download the latest version to the client's computer.

Thanks for your help!!

Andraw

 
Old April 26th, 2006, 03:51 AM
Registered User
 
Join Date: Apr 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi


I registered the new Activex.Also I changed the version number in codebase in <object> tag.And i updated this new version dll to server.

but my problem is ,
Eventhough the Internet explorer is showing the dialog box to install new version,the new version is not installed and the player is using the older version.

Please help me ..
Thanks in advance

cheers
ramya







Similar Threads
Thread Thread Starter Forum Replies Last Post
Active x control Crystal Reports Component Problem jimh78 SQL Server ASP 2 July 11th, 2007 01:19 AM
How can i update my component anujrathi ASP.NET 1.0 and 1.1 Professional 0 June 15th, 2006 10:42 PM
ASP Mailer component ratheesh Classic ASP Components 0 November 26th, 2004 04:37 AM
active user privilege update problem dbae2000 Visual C++ 0 November 15th, 2004 09:42 PM
Active x control Crystal Reports Component Problem jimh78 Classic ASP Components 0 September 25th, 2003 03:10 AM





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