473,322 Members | 1,421 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,322 software developers and data experts.

sending user-defined exception and EnterpriseServices (COM+)

Hi!
I have my own class "mtxApplicationException"
bulid like shown in "MS Error Handling Block".
When i use it in windows application everything works fine.
But when I throw this exception in EnterpriseServices application,
and try to handle it in client application,
it comes as base exception type (ApplicationException)
and loose all additional information i provide...

What do I wrong?

Pawel

Short piece of code

[Serializable]
public class mtxApplicationException : ApplicationException

public mtxApplicationException(string message, string par_source_code,
Exception inner) : base(message, inner)
{
InitializeProperties();
m_source_code = par_source_code;
}
protected mtxApplicationException(SerializationInfo info,
StreamingContext context) : base(info, context)
{
m_machine_name = info.GetString("m_machine_name");
m_app_domain = info.GetString("m_app_domain");
m_source_code = info.GetString("m_source_code");
}
[SecurityPermission(SecurityAction.Demand, SerializationFormatter =
true)]
public override void GetObjectData( SerializationInfo info,
StreamingContext context )
{
info.AddValue("m_machine_name", m_machine_name, typeof(string));
info.AddValue("m_app_domain", m_app_domain, typeof(string));
info.AddValue("m_source_code", m_source_code, typeof(string));
base.GetObjectData(info,context);
}
in COM+ component:

try
{
//operations
}
catch (Exception ex)
{
throw new mtxApplicationException ("Error during list read", "some info",
ex);
}
Nov 16 '05 #1
0 1007

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

Similar topics

3
by: Denise | last post by:
When I developed applications in Access, I was able to specify a paramater to allow the user to manually edit an e-mail message before sending it. I don't see any way to do that with .Net. Is...
5
by: vanisathish | last post by:
Hi All, I need to constantly update some values to the User Interface. In order to do the updation efficiently, i am planning to run some script in the server side that constantly keeps sending...
7
by: mostafa atalla | last post by:
how to send email by MS outlook express using C# code
7
by: Lau | last post by:
I need to send 1000 emails from an asp.net website. Normally I would use System.Web.Mail.MailMessage() to send thru an SMTP server. But the large amount of emails results in a timeout. My server...
0
by: Buddy Ackerman | last post by:
I'm sending file to the client (see sample code below) but when I send a large file the user gets a document contains no data message. response.contenttype = "application/x-unknown" myheader =...
4
by: splicemix | last post by:
Hi all, I have recently set up a Drupal website. I am a beginner. My shared host server does not allow nobody@localhost to send emails, and prevents access to php.ini, so I spent some time...
8
by: Philippe Lang | last post by:
Hello, I need to send emails from Postgresql triggers. I was able to do it with a 'plperlu' function, that calls the 'system' perl function, that itself calls the 'mail' shell function. Is...
3
by: Juergen | last post by:
hi, I've got a problem sending floating point values to an corba server. With other datatyes like short or string it works fine. So having this idl file : module Example{ interface User{
1
by: gemma.gill | last post by:
Hi There, I have a button on a form within access that sends a verification e- mail. My problem is that these e-mails are sending from individual user accounts rather than a genieric mailbox. ...
1
by: Rotsey | last post by:
Hi, I am sending mail from a ASP.NET app built with VS2003. using System.Web.Mail. I get this error. The server rejected one or more recipient addresses. The server response was: 550...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.