 |
| 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
|
|
|
|

October 27th, 2004, 06:44 AM
|
|
Registered User
|
|
Join Date: Oct 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

November 10th, 2004, 05:22 PM
|
|
Authorized User
|
|
Join Date: Sep 2004
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
i think you need to install the DLL in web server..
joseph
|
|

November 10th, 2004, 05:49 PM
|
|
Friend of Wrox
|
|
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
|
|
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
|
|

January 26th, 2005, 11:13 PM
|
|
Friend of Wrox
|
|
Join Date: Jan 2005
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

January 27th, 2005, 02:58 PM
|
|
Authorized User
|
|
Join Date: Jan 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|
|

January 27th, 2005, 06:21 PM
|
|
Friend of Wrox
|
|
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
|
|
;;;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
|
|

January 27th, 2005, 06:24 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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?
|
|

January 27th, 2005, 09:00 PM
|
|
Friend of Wrox
|
|
Join Date: Jan 2005
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

May 1st, 2006, 08:13 AM
|
|
Registered User
|
|
Join Date: May 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|
|

May 8th, 2006, 04:31 AM
|
|
Registered User
|
|
Join Date: May 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|
 |