Print Page | Close Window

EntityServerException.RemoteExceptionName include Assembly Name?

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=3444
Printed Date: 23-Jan-2026 at 1:35am


Topic: EntityServerException.RemoteExceptionName include Assembly Name?
Posted By: stephenmcd1
Subject: EntityServerException.RemoteExceptionName include Assembly Name?
Date Posted: 17-May-2012 at 1:47pm
When an exception happens on the server (e.g. during a query, save, etc.), an EntityServerException gets raised on the client and the RemoteExceptionName tells you what kind of exception occurred (along with other information).  Currently, RemoteExceptionName is the FullName of the type.  Would it be possible to instead return the AssemblyQualifiedName?  

Without the assembly, it can be hard to do logic with that string.  For example, there are times were we'd like to be able to do Type.GetType(serverException.RemoteExceptionName).  That will sometimes work (for example, if the exception is in the current assembly or mscorlib) but doesn't always work if the exception came from some other assembly (e.g. a SqlException, etc.)



Replies:
Posted By: sbelini
Date Posted: 21-May-2012 at 10:54am
Hi Stephen,
 
I filed a feature request for this.
 
Regards,
   Silvio.


Posted By: sbelini
Date Posted: 22-May-2012 at 2:47pm
Hi Stephen,
 
This feature will be available in DevForce 6.1.8.
 
Silvio.


Posted By: stephenmcd1
Date Posted: 22-May-2012 at 4:54pm
That's great to hear.  Thanks!



Print Page | Close Window