Wrox Programmer Forums
|
Classic ASP Components Discussions specific to components in ASP 3.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Components 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 27th, 2004, 06:44 AM
Registered User
 
Join Date: Oct 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Using VB DLL in ASP for Visio2003 Automation

Hi Experts,

I have created one DLL to automate VISIO files. I am openinig Visio File using visual basic dll project. it works fine with VB. Means when i create object of that dll in vb it works, it runs the visio application opens the visio document and export it as a SVG file. This DLL works with vb well but when i try to use it with ASP it gives me an error "ActiveX Component can't create object". I am not able to resolve this error. Even i have given correct permissions to visio using dcomconfig. (I_USR permissions). Can anybody help me on this.

This is somewhat urgent.

Regards,
Deepak

 
Old November 10th, 2004, 05:22 PM
Authorized User
 
Join Date: Sep 2004
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i think you need to install the DLL in web server..

joseph


 
Old November 10th, 2004, 05:49 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Have you registered it? if not, yes you need to:

1..Copy the .dll into the 'inetsrv' dir (I never can remember if it needs to go in there or the 'system32' dir, chuck it in both for good measure)

2..Now in command line run (this asumes you are running XP Pro):
regsvr32 c:\windows\system32\inetsrv\fileName.dll

note: you will be prompted with a successful registration


Wind is your friend
Matt
 
Old January 26th, 2005, 11:13 PM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi, all,
I create an ActiveX DLL using VB to create a word object and display the word file in the client side, it has a subroutine called initialzedata(templatePath, oCnn), I will pass the word template file path and SQL server connection string to initialzedata(), in the DLL, it will accesss the sql server to retrieve data and generate the word report. I register the DLL, in the html file, I use <object ID = autoWord clsID=.....> to declare it,when I use autoWord., there is a dropdown list displaying all the subroutines, but when I use it: autoWord.initialzedata("path", "conn"), I got the error msg "autoWord doesn't support initialzedata property or method", can anybody tell me if I miss some step?????

Andraw



 
Old January 27th, 2005, 02:58 PM
Authorized User
 
Join Date: Jan 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes deepakkhopade, you will have to install the dll on the server.
Whereever all your webpages are kept in the server, just copy the dll there (makes it easier for maintenance) and register it using regsrv32 pathof dll, a dialogue box with success message returns.




 
Old January 27th, 2005, 06:21 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

;;;Whereever all your webpages are kept in the server, just copy the dll there

mmmm, I would put them in the inetsrv systen dir (I believe this is where they should be)

Wind is your friend
Matt
 
Old January 27th, 2005, 06:24 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

The location doesn't really matter; when you use regsvr32 an entry in the registry is made that links the ProgId, ClassId and the physical location of the DLL file.

It's important that the account used by IIS has enough permissions to read that file and instantiate the object(s)....

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Let's Get High by Dr. Dre (Track 12 from the album: Chronic 2001) What's This?
 
Old January 27th, 2005, 09:00 PM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi, all,

After I create a package inside it with activex dll created using VB,why is there no .cab file(I choose the internet version), in the package there are only a zip file and support folder, is the zip file the cab file?

Because I create the package in my local machine, if I want to put the package in the server, do I have to registry it again?

In the ASP file that will use the dll will declare a object like:
<OBJECT ID = AUTOWORD CLASSID:..>
where the classID will come from? URGENT!!!!!!!!!!

Andraw



 
Old May 1st, 2006, 08:13 AM
Registered User
 
Join Date: May 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello,
I have the same problem, and i have registried my dll, and give the permissions to read the file visio and instantiate the object, but the problem is also existed ("ActiveX Component can't create object". )
I have also tried with Word, Excel, PowerPoint. There isn't problem, worked fine.
Can anybody help on this. Thanks.






 
Old May 8th, 2006, 04:31 AM
Registered User
 
Join Date: May 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi, i have found the solution : the error appear because the server-side code (Page ASP) is running without a user profile. Somebady has the same problem, could read this : http://support.microsoft.com/kb/257757/en-us







Similar Threads
Thread Thread Starter Forum Replies Last Post
Create a DLL in ASP/VB?? ram.marella Classic ASP Basics 0 June 13th, 2007 01:20 AM
Problem while calling a VB COM DLL in ASP ranee Classic ASP Components 0 December 1st, 2005 09:44 AM
Create textbox in the VB Dll Using by ASP Andraw Classic ASP Components 0 February 22nd, 2005 01:52 PM
ASP VB and DLL!! sammichelle Pro VB 6 0 February 21st, 2005 07:54 AM
VB dll and asp!! sammichelle VB Components 0 February 21st, 2005 07:47 AM





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