473,398 Members | 2,212 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,398 software developers and data experts.

Handling SoapException error

I want to catch any soapexception error by these method.
My question is Does creating an instance from assembly name can
retrieve exception errors from UI? I have read documents on handling
soapexception errors but i want to make it general on this. Is this
procedure posible? Because it returns an error message of "HRESULT
has returned from a call to a COM Component."

Sir Joe Mayo, I hope you could help me on this. Any idea would be a
great help! Thanks!

Chris.

===============================================
catch(Exception err)
{
throw (Exception)CreateObjectInstance(err);
}

private object CreateObjectInstance(Exception err)
{
Object obj;
Assembly[] assemblyArray;
string str = err.Message.Substring(err.Message.IndexOf("---> ") +
5,
err.Message.IndexOf(" (") - err.Message.IndexOf("---> ") - 5);

assemblyArray = new
Assembly[AppDomain.CurrentDomain.GetAssemblies().Length];
assemblyArray = AppDomain.CurrentDomain.GetAssemblies();

foreach(Assembly assembly in assemblyArray)
{
Type[] mytypes = assembly.GetTypes();
foreach(Type t in mytypes)
{
if(t.FullName == str)
{
obj = Activator.CreateInstance(t)
return obj;
}
}
}
return null;
}
===============================================
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 15 '05 #1
0 3314

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

Similar topics

9
by: Flare | last post by:
Hi Im trying to create a custom Exception Hierachy for an Asp.net application. Some of my exceptions should iherit from soapException like MyCustomWebServiceException : soapException {...
1
by: djmc | last post by:
Hi, In my web application, I catch SoapExceptions and check the SoapException.Message property to determine the error that occurred. For instance, when authenticating a user, if the...
16
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
1
by: Mike Clark | last post by:
I have a webservice that works great on localhost, but as soon as I promote to a network server I get an exception that doesn't tell me much. There's some implementation details in this exception...
2
by: Adrian Burka | last post by:
HELP! I have written a web service, and a program in C# using Microsoft Visual C#.NET to interact with the web service. Exception handling isn't working in my application, though. One function...
0
by: didierwork | last post by:
Hi folks, A question about throwing a SoapException from a SoapExtension. We have created a SoapExtension to implement our own user authaurization/authentication scheme. It all works great, when...
0
by: Jan Ove Halvorsen | last post by:
Hi! I have a web service that is used by a smart client (windows forms). It normally works ok, but occasionally I get the following error-message: System.Web.Services.Protocols.SoapException:...
1
by: jan.loucka | last post by:
I'm developing WinForms application in .NET 2.0 that talks to web service. The automatically generated proxy (reference class) has got methods for both synchronous and asynchronous invocations of...
1
by: Ami | last post by:
We have an application where in SOAP is used as a middle layer to communication between Java Front layer and DCE( Distributed Computing Env) backend layer. We are using Systinet Server for C++ to...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
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
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,...
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...

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.