473,666 Members | 2,278 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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|Create Object_Exceptio n|-|ASP_0241|Creat eObject_Excepti on|42|ASP_0177_ :_c0000005|Serv er.CreateObject _Failed
500

Which sometimes is followed by (in no particular order)
800a01fb|An_exc eption_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.CreateOb ject 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 (mycustomerrorc lass& 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 9287
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**********@t icketmaster.com > wrote in message
news:b7******** *************** **@posting.goog le.com...
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|Create Object_Exceptio n|-|ASP_0241|Creat eObject_Excepti on|42|ASP_017
7_:_c0000005|Se rver.CreateObje ct_Failed 500

Which sometimes is followed by (in no particular order)
800a01fb|An_exc eption_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.CreateOb ject 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 (mycustomerrorc lass& 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***@TRASHasp faq.com> wrote in message news:<O2******* *******@tk2msft ngp13.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**********@t icketmaster.com > wrote in message
news:b7******** *************** **@posting.goog le.com...
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|Create Object_Exceptio n|-|ASP_0241|Creat eObject_Excepti on|42|ASP_017
7_:_c0000005|Se rver.CreateObje ct_Failed
500

Which sometimes is followed by (in no particular order)
800a01fb|An_exc eption_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.CreateOb ject 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 (mycustomerrorc lass& 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**********@t icketmaster.com > wrote in message
news:b7******** *************** ***@posting.goo gle.com...
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***@TRASHasp faq.com> wrote in message

news:<O2******* *******@tk2msft ngp13.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**********@t icketmaster.com > wrote in message
news:b7******** *************** **@posting.goog le.com...
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|Create Object_Exceptio n|-|ASP_0241|Creat eObject_Excepti on|42|ASP_017 7_:_c0000005|Se rver.CreateObje ct_Failed
500

Which sometimes is followed by (in no particular order)
800a01fb|An_exc eption_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.CreateOb ject 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 (mycustomerrorc lass& 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
3301
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 interact with a rich 3D environment. Seem to be 90% of the way there! My problems are related to calculations where the result tends to zero (or another defined limit.) Have loads of cases where this kind of interaction occurs but this one
1
1213
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 itself and are this not trappeable by our ASP.Net code. A good example is if someone requests a page just as the site DLL is being uploaded, an error such as "Cannot access file XXXXXX as it is being used by another process" is generated.
2
1611
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 apps handle their errors (global.asax.cs "application_error" event, web.config "customErrors" section, etc). But can I do this without having to visit each app? Can this be done at the machine level? I'm looking for a kind of machine-level...
2
2408
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 Catalogue in SQL. Malformed search requests can generate a variety of errors, which I simply want to catch, set the CustomValidator's IsValid method to false and assign the ErrorMessage to the CustomValidator's Message property. For example: ...
2
2528
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 having to integrate some Web services into the application using the existing architecture. These Web services are secured using Forms Authentication. Hence, we need to turn the default behavior of Forms Authentication (redirects to login pages, etc)...
0
1137
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 Context.ClearError(); when a 404 Error occurs, but how do I check in code that this has occured? In relation to this, would anyone know where I could obtain a listing of exceptions? Thanks in advance.
0
1010
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 don't call Context.ClearError(); when a 404 Error occurs, but how do I check in code that this has occured? What I have right now in global.asax is: protected void Application_Error(object sender, EventArgs e) {
0
1576
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 access to a single Windows User Group like this (in web.config): <authorization> <allow roles="Domain\UserGroup" />
7
1923
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 goes out of scope/gets garbage collected/disappears into thin air. Does anyone know why Access behaves in this manner, or more importantly how to change that behavior?
0
8440
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8866
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
7381
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6191
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5662
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4193
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2769
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2006
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1769
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.