Groups | Blog | Home
all groups > iis security > october 2004 >

iis security : IIS 6.0 -> Server.CreateObject of ('null') !


Henrique Soler Albano
10/6/2004 4:18:54 PM
Hello there,

I'm having problems with Server.CreateObject on IIS 6.0.

When I start my app everithing works fine. The problem occurs after
using the app for many times.

I tougth that was some kind of problem with ADODB.Connection but I saw
on web many friends having the same problem with different objects server
creations (file system object, adodb connections, cdonts mailer, etc).

It ocurrs exactly in the adodb.connection creation line: Set Connection
= Server.CreateObject("adodb.connection")

It's strange, the server is telling me that there is an instruction to
create a null object in my code.

It seems to be a security limitation of IIS 6.0.

Here is the error return page from the webserver (Brazilian Portuguese):

*******************************************

CreateObject of '(null)' caused exception C0000005.

Server Object error 'ASP 0177 : c0000005'

Falha em Server.CreateObject

/Online/Global/ini_x.asp, line 67

c0000005

*******************************************

Does anybody has an idea about it?

Thanks in advance.

Henrique Piolho



Bernard
10/7/2004 12:37:28 PM
what is line 57 ? C0000005 = AV (access violation)
you might want to try asp discussion group.

--
Regards,
Bernard Cheah
http://www.tryiis.com/
http://support.microsoft.com/
http://www.msmvps.com/bernard/



[quoted text, click to view]

Henrique Soler Albano
10/7/2004 4:13:01 PM
Bernard,

This situation is related to IIS 6.0 compatibility problems with earlier
versions of IIS.

I tought you would help-me instead of criticize-me.

Egbert Nierop (MVP for IIS) has posted a great explanation for this.

Egbert's Post
***********************************************************
First you should understand that server.createobject was meant for IIS 3.0
and 4.0 backward compatibility.
In short, it does a lot more code behind the scene that you don't need.
So change that to Set Connection = CreateObject("ADODB.Connection")
After that you might see other behaviour however, the problem you describe
should not happen.
***********************************************************

I hope everybody has learned with this thread.

Thanks again.

Ps: Sorry for the poor english.

Henrique Soler Albano

Henrique Soler Albano
10/8/2004 9:48:34 AM
Yes,

It seems to be ok right now.

The tool is working for 2 days after the changes, and doesn't stops.

The compatibility problem must realy exists, so I think Egbert was right.

Thanks everybody,

Thanks Bernand,

Henrique Soler Albano


"Bernard" <qbernard@hotmail.com.discuss> escreveu na mensagem
news:u1Pv83OrEHA.736@tk2msftngp13.phx.gbl...
[quoted text, click to view]

Bernard
10/8/2004 12:19:17 PM
Sorry if you get me wrong. I have no intention of 'criticize'.
and I have IIS 6.0 box with server.createobject.

so the problem solved by Egbert's post ?

--
Regards,
Bernard Cheah
http://www.tryiis.com/
http://support.microsoft.com/
http://www.msmvps.com/bernard/



[quoted text, click to view]

AddThis Social Bookmark Button