CreateObject Exception in ASP - Win2003 & IIS6

CreateObject Exception in ASP - Win2003 & IIS6

am 23.01.2008 16:45:13 von shall

I copied ASP( Classic) pages from NT4 to Server2003.
One asp page calls a Foxpro DLL.

Active Server Pages error 'ASP 0241'

CreateObject Exception

/mypage.asp

The CreateObject of '(null)' caused exception C0000005

Microsoft Active Server Pages error '80020009'

An external object raised an error. No Error Description Available.

/mypage.asp, line 123

'''''''''''''''''''''''''' Below is the line of code that bombs ==

set oDLL = Server.CreateObject("PgmPow.fcsPow")

This exception happens sporadically.
I have registered the DLL. It works a few days or over a week before I
get the above error.

Comments?
TIA
Steve

Re: CreateObject Exception in ASP - Win2003 & IIS6

am 23.01.2008 19:52:23 von Anthony Jones

wrote in message
news:41d97375-90a5-4a18-962d-20dd9232591f@d4g2000prg.googleg roups.com...
> I copied ASP( Classic) pages from NT4 to Server2003.
> One asp page calls a Foxpro DLL.
>
> Active Server Pages error 'ASP 0241'
>
> CreateObject Exception
>
> /mypage.asp
>
> The CreateObject of '(null)' caused exception C0000005
>
> Microsoft Active Server Pages error '80020009'
>
> An external object raised an error. No Error Description Available.
>
> /mypage.asp, line 123
>
> '''''''''''''''''''''''''' Below is the line of code that bombs ==
>
> set oDLL = Server.CreateObject("PgmPow.fcsPow")
>
> This exception happens sporadically.
> I have registered the DLL. It works a few days or over a week before I
> get the above error.
>


There is a fault in the DLL. C0000005 is an Access Violation. Is this DLL
expecting to be use in a multithreaded server environment?


--
Anthony Jones - MVP ASP/ASP.NET

Re: CreateObject Exception in ASP - Win2003 & IIS6

am 24.01.2008 17:03:09 von shall

On Jan 23, 12:52=A0pm, "Anthony Jones" wrote:
> wrote in message
>
> news:41d97375-90a5-4a18-962d-20dd9232591f@d4g2000prg.googleg roups.com...
>
>
>
>
>
> > I copied ASP( Classic) =A0pages from NT4 to Server2003.
> > One asp page calls a Foxpro DLL.
>
> > Active Server Pages error 'ASP 0241'
>
> > CreateObject Exception
>
> > /mypage.asp
>
> > The CreateObject of '(null)' caused exception =A0C0000005
>
> > Microsoft Active Server Pages error '80020009'
>
> > An external object raised an error. No Error Description Available.
>
> > /mypage.asp, line 123
>
> > '''''''''''''''''''''''''' =A0Below is the line of code that bombs =3D=
=3D
>
> > set oDLL =3D Server.CreateObject("PgmPow.fcsPow")
>
> > This exception happens sporadically.
> > I have registered the DLL. It works a few days or over a week before I
> > get the above error.
>
> There is a fault in the DLL. =A0C0000005 is an Access Violation. =A0Is thi=
s DLL
> expecting to be use in a multithreaded server =A0environment?
>
> --
> Anthony Jones - MVP ASP/ASP.NET- Hide quoted text -
>
> - Show quoted text -

Yes- I created the DLL as a multithreaded object.
We could have several people calling this DLL from the same web page.

Thanks.
Steve

Re: CreateObject Exception in ASP - Win2003 & IIS6

am 24.01.2008 17:52:05 von Anthony Jones

wrote in message
news:803b76dd-5bbc-452b-a993-e84d2e671971@i3g2000hsf.googleg roups.com...
>On Jan 23, 12:52 pm, "Anthony Jones" wrote:
>
>Yes- I created the DLL as a multithreaded object.
>We could have several people calling this DLL from the same web page.

Apartment Threaded
Retain In Memory
Unattended

?

What about its dependant components. Something in this binary is generating
an access violation which usually means either there is a buggy component at
play or a component is being used in an unexpected way.


--
Anthony Jones - MVP ASP/ASP.NET

Re: CreateObject Exception in ASP - Win2003 & IIS6

am 24.01.2008 20:54:53 von shall

On Jan 24, 10:52=A0am, "Anthony Jones" wrote:
> wrote in message
>
> news:803b76dd-5bbc-452b-a993-e84d2e671971@i3g2000hsf.googleg roups.com...
>
> >On Jan 23, 12:52 pm, "Anthony Jones" wrote:
>
> >Yes- I created the DLL as a multithreaded object.
> >We could have several people calling this DLL from the same web page.
>
> Apartment Threaded
> Retain In Memory
> Unattended
>
> ?
>
> What about its dependant components. =A0Something in this binary is genera=
ting
> an access violation which usually means either there is a buggy component =
at
> play or a component is being used in an unexpected way.
>
> --
> Anthony Jones - MVP ASP/ASP.NET

Not sure- When I build it ,on server 2003, in Visual Foxpro 6, I
select option "Multi-threaded COM server (dll)
like I always have. I did NOT have this problem on NT4.
I did a "regsvr32 " on my DLL, like I always have.
I'll do some reserach on it.

Thanks.Steve