Groups | Blog | Home
all groups > inetserver asp components > october 2003 >

inetserver asp components : Server.CreateObject



Tom Kaminski [MVP]
10/20/2003 2:57:59 PM
[quoted text, click to view]

http://www.aspfaq.com/show.asp?id=2327

--
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserver2003/community/centers/iis/


JohnWayne
10/20/2003 6:11:53 PM
Hello All,

I need some help with Server.CreateObject. I have developed some ActiveX
dlls in VB6 to be used on a Win2K machine to encapsulate business logic.
Anyways, when I am debugging the dll, I can create the object and the ASP
pages runs fine. However when I compile the component into the dll, and
then deploy to my web server (stop server, register dll, start server) it
fails, and I have to restart iis. Error:

set MedM= server.CreateObject("DyDLL.clsMyDll")

Error Type:
Microsoft VBScript runtime (0x800A01FB)
An exception occurred: 'MyDllFunction'

Where 'MyDllFunction' is the name of the function called. I believe that
all the permission are set correctly: myDll has Read + Execute And Read
security properties for IUSR_MACHINE + IWAM_MACHINE. Also, since it is a VB
6 component the dlls, MSVBVM60.DLL has Read + Execute and Read security
properties.

I have checked knowledge base articles such as: Q198432, Q255770, Q271071
and http://www.aspfaq.com/show.asp?id=2327

The key thing is that while running the DLL in VB 6 IDE, with "wait for
component to be created" it works !! Running Win2k Pro, Latest Service
Packs, VB6 Service Pack 5, with .NET Framework Installed for VS.NET 2003.

Argh ... anyone experience this??

Thanks in Advance,
Remove No Spam from email to respond.

JohnWayne
10/20/2003 7:37:00 PM
Nope, I am not trying to open a recordset ... as the dll works when I run it
in the VB IDE.


[quoted text, click to view]

Mert sakarya
10/23/2003 12:32:44 PM
Have you tried registering your component to "component services"?



[quoted text, click to view]

JohnWayne
10/23/2003 4:58:43 PM
It is not a Com+ control, so that fails with error message:

Event Type: Error
Event Source: COM+
Event Category: SVC
Event ID: 4194
Date: 10/20/2003
Time: 11:39:41 AM
User: N/A
Computer: VENUS
Description:
The system has called a custom component and that component has failed and
generated an exception. This indicates a problem with the custom component.
Notify the developer of this component that a failure has occurred and
provide them with the information below.
Component Prog ID:
Server Application ID: {ECC2B57A-931E-4AAD-9DD7-BBC55AD917E5}
Server Application Name: medmand
The serious nature of this error has caused the process to terminate.
Exception: C0000005
Address: 0x6AA083DC
Call Stack:
MSVBVM60!Zombie_QueryInterface + 0x9B0B
MSVBVM60!IID_IVbaHost + 0x2A933
MSVBVM60!rtcSendKeys + 0xEF9
MSVBVM60!__vbaAptOffset + 0x858
MSVBVM60!TipInvokeMethod + 0x310
MSVBVM60!__vbaResume + 0xFF
ntdll!RtlUnwind + 0x126
ntdll!NtDeviceIoControlFile + 0x8C
ntdll!KiUserExceptionDispatcher + 0xE
MSVBVM60!__vbaHresultCheckObj + 0x275
MSVBVM60!__vbaHresultCheckObj + 0x22A



[quoted text, click to view]

AddThis Social Bookmark Button