New Posts New Posts RSS Feed: EntityServerException.RemoteExceptionName include Assembly Name?
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

EntityServerException.RemoteExceptionName include Assembly Name?

 Post Reply Post Reply
Author
stephenmcd1 View Drop Down
DevForce MVP
DevForce MVP


Joined: 27-Oct-2009
Location: Los Angeles, CA
Posts: 166
Post Options Post Options   Quote stephenmcd1 Quote  Post ReplyReply Direct Link To This Post Topic: EntityServerException.RemoteExceptionName include Assembly Name?
    Posted: 22-May-2012 at 4:54pm
That's great to hear.  Thanks!
Back to Top
sbelini View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 13-Aug-2010
Location: Oakland
Posts: 786
Post Options Post Options   Quote sbelini Quote  Post ReplyReply Direct Link To This Post Posted: 22-May-2012 at 2:47pm
Hi Stephen,
 
This feature will be available in DevForce 6.1.8.
 
Silvio.
Back to Top
sbelini View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 13-Aug-2010
Location: Oakland
Posts: 786
Post Options Post Options   Quote sbelini Quote  Post ReplyReply Direct Link To This Post Posted: 21-May-2012 at 10:54am
Hi Stephen,
 
I filed a feature request for this.
 
Regards,
   Silvio.
Back to Top
stephenmcd1 View Drop Down
DevForce MVP
DevForce MVP


Joined: 27-Oct-2009
Location: Los Angeles, CA
Posts: 166
Post Options Post Options   Quote stephenmcd1 Quote  Post ReplyReply Direct Link To This Post 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.)
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down