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

Unhandled Exception after Remointg...

In an ASP.NET Application I have an instance of a remoting object. After the
instance was created, I saved it in a Session variable. When I try to use
this instance with the Remoting Service down, it throw an exception wich it
is catched. After this exception is catched, another exception is throwed
outside my try-catch blocks. I canīt catch this new exception. This happen
only in first and second execution after application compile. After second
execution, (no mather how many times I execute the application) only one
exception is throwed.

When remoting object instance isn't in Session variable, only one exception
is throwed in all runs, no mather if it is the firts or the eleventh run.

Can anyone tell me why 2 exception are throwed in the first and second run
after compiling only if the remoting object instance is stored in Session.

Thanks in advantage

Salvador Ponticelli


Nov 15 '05 #1
1 1293
Salvador,

Once the exception happens, are you trying to access the object over
again? If you are, then this is a bad idea (assuming the exception is not
remoted from the other app domain, but rather, an issue with connecting to
the app domain). Basically, you should drop the proxy if this occurs, as it
is probably in an inconsistent state at that point.

The way executions work, it bubbles up the call stack, and can not
continue executing code, so the exception that is thrown after that (before
the next property access/method call on the object) would be from your code
(if you have caught the exception). In other words, only one exception can
be thrown per method call/property access.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- ni**************@exisconsulting.com
"Salvador Ponticelli" <sp*********@corpl.com.ve> wrote in message
news:em**************@TK2MSFTNGP11.phx.gbl...
In an ASP.NET Application I have an instance of a remoting object. After the instance was created, I saved it in a Session variable. When I try to use
this instance with the Remoting Service down, it throw an exception wich it is catched. After this exception is catched, another exception is throwed
outside my try-catch blocks. I canīt catch this new exception. This happen
only in first and second execution after application compile. After second
execution, (no mather how many times I execute the application) only one
exception is throwed.

When remoting object instance isn't in Session variable, only one exception is throwed in all runs, no mather if it is the firts or the eleventh run.

Can anyone tell me why 2 exception are throwed in the first and second run
after compiling only if the remoting object instance is stored in Session.

Thanks in advantage

Salvador Ponticelli

Nov 15 '05 #2

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

Similar topics

7
by: Chuck Hartman | last post by:
I have a Windows service that requests web pages from a site using an HttpWebRequest object. When I try to request a page from an ASP.NET 2 site, I get a WebException with message "The remote...
5
by: Dave Stewart | last post by:
I recently wrote my first Vb.net application, or at least my first complex app since moving up from vb6. When run from the VS.NET IDE, the program shows no errors and runs fine. When the output exe...
5
by: Lucvdv | last post by:
Can someone explain why this code pops up a messagebox saying the ThreadAbortException wasn't handled? The first exception is reported only in the debug pane, as expected. The second (caused by...
5
by: Samuel R. Neff | last post by:
When you have an unhandled exception in vb.net how do you view the exception information in the debugger? In C# the debugger creates a local variable that points to the exception and you can...
0
by: Colmeister | last post by:
I recently read Jason Clark's excellent article on Unhandled Exceptions (http://msdn.microsoft.com/msdnmag/issues/04/06/NET/default.aspx) and have attempted to incorporate the features he talks...
5
by: Simon Tamman {Uchiha Jax} | last post by:
Now this is bugging me. I just released software for a client and they have reported an unhandled stack overflow exception. My first concern is that the entirity of the UI and any threaded...
0
by: Bob | last post by:
If I induce and unhandled exception in my vb.net code for instance using '-- just a simple "object not initialized" exception (should read "as new") Dim x As Specialized.NameValueCollection ...
1
by: Bob | last post by:
In Vs 2005 you have new applicationsEvents.vb I was testing it in a simple app and found that it was easier to implement unhandled exception management tah it was in Vs2003 (vb.net) You can, if you...
5
by: =?Utf-8?B?c3VydHVyeg==?= | last post by:
Hi, I feel like a noob for asking this. When I publish a VB windows application, I want to disable the ability of the the user to continue when there is an unhandled exception. For example,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.