473,326 Members | 2,081 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

ASP/IIS errors on Custom COM call

All --

This occasionally happens, and there's no set pattern on why this
is... perhaps it happens a few times every few months or so.

I have a custom ATL COM object that handles data from multiple pages
and sites on my server. Occasionally, I'll get the following errors:

ASP_0241|CreateObject_Exception|-|ASP_0241|CreateObject_Exception|42|ASP_0177_:_c00 00005|Server.CreateObject_Failed
500

Which sometimes is followed by (in no particular order)
800a01fb|An_exception_occurred:_'function name'

function name isn't always the same, but is always one in my COM
object.

The problem associated with this error is that the object cannot be
created again until IIS is restarted. This object controls a very
vital part of the site, and all users will typically get the:

Active Server Pages error 'ASP 0241'

CreateObject Exception

/Site/account.asp

The CreateObject of '(null)' caused exception C0000005.

Server object error 'ASP 0177 : c0000005'

Server.CreateObject Failed

/Site/account.asp, line 42

c0000005
This custom COM object has been successfully deployed for nearly two
years, and under intense traffic at times. One of the things I'm
thinking is that I return an S_OK when I trap an error... so

try{
blah
}
catch (mycustomerrorclass& err)
{}
catch (...)
{
tell something an odd error occured

}
return S_OK;

It seems like once the (...) is caught, the other errors appear... or
vice versa. Do you think I should be returning E_FAIL in that catch
all statement?

This COM object uses no external COM objects (ado, etc). The only
idea I can think of if to try the E_FAIL, but I thought I successfully
have caught the error. Is this not the case?

Thanks -- Steve
Jul 19 '05 #1
3 9264
Permissions issue maybe?

http://www.aspfaq.com/2355
http://www.aspfaq.com/search.asp?q=c0000005

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"Steve" <st**********@ticketmaster.com> wrote in message
news:b7*************************@posting.google.co m...
All --

This occasionally happens, and there's no set pattern on why this
is... perhaps it happens a few times every few months or so.

I have a custom ATL COM object that handles data from multiple pages
and sites on my server. Occasionally, I'll get the following errors:

ASP_0241|CreateObject_Exception|-|ASP_0241|CreateObject_Exception|42|ASP_017
7_:_c0000005|Server.CreateObject_Failed 500

Which sometimes is followed by (in no particular order)
800a01fb|An_exception_occurred:_'function name'

function name isn't always the same, but is always one in my COM
object.

The problem associated with this error is that the object cannot be
created again until IIS is restarted. This object controls a very
vital part of the site, and all users will typically get the:

Active Server Pages error 'ASP 0241'

CreateObject Exception

/Site/account.asp

The CreateObject of '(null)' caused exception C0000005.

Server object error 'ASP 0177 : c0000005'

Server.CreateObject Failed

/Site/account.asp, line 42

c0000005
This custom COM object has been successfully deployed for nearly two
years, and under intense traffic at times. One of the things I'm
thinking is that I return an S_OK when I trap an error... so

try{
blah
}
catch (mycustomerrorclass& err)
{}
catch (...)
{
tell something an odd error occured

}
return S_OK;

It seems like once the (...) is caught, the other errors appear... or
vice versa. Do you think I should be returning E_FAIL in that catch
all statement?

This COM object uses no external COM objects (ado, etc). The only
idea I can think of if to try the E_FAIL, but I thought I successfully
have caught the error. Is this not the case?

Thanks -- Steve

Jul 19 '05 #2
Doesn't appear so. I would imagine if it were a permissions thing it
would do it consistiently. Hasn't happened in two days (so far) so
I'm still trying to track it down.

Thanks for your reply though!

"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message news:<O2**************@tk2msftngp13.phx.gbl>...
Permissions issue maybe?

http://www.aspfaq.com/2355
http://www.aspfaq.com/search.asp?q=c0000005

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"Steve" <st**********@ticketmaster.com> wrote in message
news:b7*************************@posting.google.co m...
All --

This occasionally happens, and there's no set pattern on why this
is... perhaps it happens a few times every few months or so.

I have a custom ATL COM object that handles data from multiple pages
and sites on my server. Occasionally, I'll get the following errors:

ASP_0241|CreateObject_Exception|-|ASP_0241|CreateObject_Exception|42|ASP_017
7_:_c0000005|Server.CreateObject_Failed
500

Which sometimes is followed by (in no particular order)
800a01fb|An_exception_occurred:_'function name'

function name isn't always the same, but is always one in my COM
object.

The problem associated with this error is that the object cannot be
created again until IIS is restarted. This object controls a very
vital part of the site, and all users will typically get the:

Active Server Pages error 'ASP 0241'

CreateObject Exception

/Site/account.asp

The CreateObject of '(null)' caused exception C0000005.

Server object error 'ASP 0177 : c0000005'

Server.CreateObject Failed

/Site/account.asp, line 42

c0000005
This custom COM object has been successfully deployed for nearly two
years, and under intense traffic at times. One of the things I'm
thinking is that I return an S_OK when I trap an error... so

try{
blah
}
catch (mycustomerrorclass& err)
{}
catch (...)
{
tell something an odd error occured

}
return S_OK;

It seems like once the (...) is caught, the other errors appear... or
vice versa. Do you think I should be returning E_FAIL in that catch
all statement?

This COM object uses no external COM objects (ado, etc). The only
idea I can think of if to try the E_FAIL, but I thought I successfully
have caught the error. Is this not the case?

Thanks -- Steve

Jul 19 '05 #3
Any luck in resolving this issue? We seem to suddenly experience the same
thing. Sometimes, after a server reboot, we will start getting the same
error. I can usually fix it by installing MDAC and Windows Script, then
rebooting the server, but it will eventually creep back. We also have a
custom COM object which has ran successfully for nearly three years.
"Steve" <st**********@ticketmaster.com> wrote in message
news:b7**************************@posting.google.c om...
Doesn't appear so. I would imagine if it were a permissions thing it
would do it consistiently. Hasn't happened in two days (so far) so
I'm still trying to track it down.

Thanks for your reply though!

"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message

news:<O2**************@tk2msftngp13.phx.gbl>...
Permissions issue maybe?

http://www.aspfaq.com/2355
http://www.aspfaq.com/search.asp?q=c0000005

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"Steve" <st**********@ticketmaster.com> wrote in message
news:b7*************************@posting.google.co m...
All --

This occasionally happens, and there's no set pattern on why this
is... perhaps it happens a few times every few months or so.

I have a custom ATL COM object that handles data from multiple pages
and sites on my server. Occasionally, I'll get the following errors:

ASP_0241|CreateObject_Exception|-|ASP_0241|CreateObject_Exception|42|ASP_017 7_:_c0000005|Server.CreateObject_Failed
500

Which sometimes is followed by (in no particular order)
800a01fb|An_exception_occurred:_'function name'

function name isn't always the same, but is always one in my COM
object.

The problem associated with this error is that the object cannot be
created again until IIS is restarted. This object controls a very
vital part of the site, and all users will typically get the:

Active Server Pages error 'ASP 0241'

CreateObject Exception

/Site/account.asp

The CreateObject of '(null)' caused exception C0000005.

Server object error 'ASP 0177 : c0000005'

Server.CreateObject Failed

/Site/account.asp, line 42

c0000005
This custom COM object has been successfully deployed for nearly two
years, and under intense traffic at times. One of the things I'm
thinking is that I return an S_OK when I trap an error... so

try{
blah
}
catch (mycustomerrorclass& err)
{}
catch (...)
{
tell something an odd error occured

}
return S_OK;

It seems like once the (...) is caught, the other errors appear... or
vice versa. Do you think I should be returning E_FAIL in that catch
all statement?

This COM object uses no external COM objects (ado, etc). The only
idea I can think of if to try the E_FAIL, but I thought I successfully
have caught the error. Is this not the case?

Thanks -- Steve

Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Dave | last post by:
Hi folks, I am trying to develop a routine that will handle sphere-sphere and sphere-triangle collisions and interactions. My aim is to develop a quake style collision engine where a player can...
1
by: TonyG | last post by:
My site uses the fairly standard approach of trapping errors in the Application_Error event and dealing with them there. However, we occasionally get errors that are generated by the Framework...
2
by: Marty McDonald | last post by:
Many of our apps are in production and they do not have proper error logging in them - unhandled errors are seen by the users in the form of error messages and stack traces. I know how to make...
2
by: Stephen Miller | last post by:
Can the CustomValidator be used to simply report unexpected errors, without requiring Client/Server validation? To explain, say you had a simple text box and button that did a Full-text Search of a...
2
by: Matt | last post by:
Hello all, The app we are working on uses custom errors extensively to provide friendly error pages to users whilst logging the actual exceptions behind the scenes. However.... We are now...
0
by: Ranv | last post by:
Is it possible to use web.config to handle 404 Page Not Found errors, and application level custom errors to handle all other errors? I suppose I would have to make sure that I don't call...
0
by: Ranv | last post by:
Is it possible to use web.config to handle 404 Page Not Found errors, and application level custom errors (in global.asax) to handle all other errors? I suppose I would have to make sure that I...
0
by: gilly3 | last post by:
I'm coming across all kinds of frustration implementing custom errors in ASP.NET 1.1. First, 401 - Authorization Failed My application uses Windows Integrated Authentication, and restricts...
7
by: robert.waters | last post by:
Why do my public variables (including class instances) disappear when my app experiences an unhandled error? My custom class module's class_terminate event doesn't even fire, the instance just...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.