473,434 Members | 1,451 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,434 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 9272
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.