473,732 Members | 2,201 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Unhandled Exceptions & Framesets

Hi,
Question:
When using Framesets and Server.Transfer in the
Application_Err or event handler is there a mechanism to
get the error page to display in the total view of the
browser not just in the offending frame?

Overview:
I have an application in which I am using framesets. When
an Unhandled exception occurs I try to handle it
gracefully by transfering to an error handling page as
follows:

Global.asax.cs. ..
protected void Application_Err or(Object sender, EventArgs
e)
{
Server.Transfer ("ErrorPage.asp x");
}

The problem is that the ErrorPage.aspx is only displayed
in the offending frame not the complete window of the
browser.

Thanks in advance for your help!!!
Terry
Nov 17 '05 #1
5 2275
Hi

You have to return a client script that redirects

<script language="JavaS cript">
top.location.hr ef = "errorpage.aspx ";
</script>

--
Best Regards
Vidar Petursson
=============== ===============
Microsoft Internet Client & Controls MVP
=============== ===============
"terry" <te********@msn .com> wrote in message
news:04******** *************** *****@phx.gbl.. .
Hi,
Question:
When using Framesets and Server.Transfer in the
Application_Err or event handler is there a mechanism to
get the error page to display in the total view of the
browser not just in the offending frame?

Overview:
I have an application in which I am using framesets. When
an Unhandled exception occurs I try to handle it
gracefully by transfering to an error handling page as
follows:

Global.asax.cs. ..
protected void Application_Err or(Object sender, EventArgs
e)
{
Server.Transfer ("ErrorPage.asp x");
}

The problem is that the ErrorPage.aspx is only displayed
in the offending frame not the complete window of the
browser.

Thanks in advance for your help!!!
Terry

Nov 17 '05 #2
Hi,

I tried the following...

web.config files contains the entry:
<customErrors mode="On"></customErrors>

global.asax contains the following:
protected void Application_Err or(Object sender, EventArgs
e)
{
System.Web.UI.P age page = (System.Web.UI. Page)
HttpContext.Cur rent.Handler;
string script = "<script>";
script += "top.location.h ref =
\"ErrorPage.asp x\";";
script += "</script>";
page.RegisterSt artupScript("On Startup", script);

}
The ErrorPage.aspx is not being displayed but I am instead
receving the standard Microsoft error page as below:
Runtime Error
Description: An application error occurred on the server.
The current custom error settings for this application
prevent the details of the application error from being
viewed.

Details: To enable the details of this specific error
message to be viewable on the local server machine, please
create a <customErrors > tag within a "web.config "
configuration file located in the root directory of the
current web application. This <customErrors > tag should
then have its "mode" attribute set to "RemoteOnly ". To
enable the details to be viewable on remote machines,
please set "mode" to "Off".
<!-- Web.Config Configuration File -->

<configuratio n>
<system.web>
<customErrors mode="RemoteOnl y"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be
replaced by a custom error page by modifying
the "defaultRedirec t" attribute of the application's
<customErrors > configuration tag to point to a custom
error page URL.
<!-- Web.Config Configuration File -->

<configuratio n>
<system.web>
<customErrors mode="On"
defaultRedirect ="mycustompage. htm"/>
</system.web>
</configuration>




-----Original Message-----
Hi

You have to return a client script that redirects

<script language="JavaS cript">
top.location.h ref = "errorpage.aspx ";
</script>

--
Best Regards
Vidar Petursson
=============== ===============
Microsoft Internet Client & Controls MVP
=============== ===============
"terry" <te********@msn .com> wrote in message
news:04******* *************** ******@phx.gbl. ..
Hi,
Question:
When using Framesets and Server.Transfer in the
Application_Err or event handler is there a mechanism to
get the error page to display in the total view of the
browser not just in the offending frame?

Overview:
I have an application in which I am using framesets. When an Unhandled exception occurs I try to handle it
gracefully by transfering to an error handling page as
follows:

Global.asax.cs. ..
protected void Application_Err or(Object sender, EventArgs e)
{
Server.Transfer ("ErrorPage.asp x");
}

The problem is that the ErrorPage.aspx is only displayed
in the offending frame not the complete window of the
browser.

Thanks in advance for your help!!!
Terry

.

Nov 17 '05 #3
Hello Terry,
To open the window you can use the following script on onload Event:

<script>
window.open (" ErrorPage.aspx" , "newwin", "fullscreen="ye s");
window.opener = self;
self.close();
</script>

You will use the same method by registering the Script using the
page.RegisterSt artupScript.
The script will be in the ErrorPage.aspx that you are opening. This code
will open a new window for the error message
and close the one that has frame.

For reference:

onload Event
http://msdn.microsoft.com/library/de...thor/dhtml/ref
erence/events/onload.asp

window Object
http://msdn.microsoft.com/library/de...thor/dhtml/ref
erence/objects/obj_window.asp

open Method
http://msdn.microsoft.com/library/de...thor/dhtml/ref
erence/methods/open_0.asp

Please let me know if this answers your question.

Thanks,
Bassel Tabbara
Microsoft, ASP.NET

This posting is provided "AS IS", with no warranties, and confers no rights.

--------------------
| Content-Class: urn:content-classes:message
| From: "terry" <te********@msn .com>
| Sender: "terry" <te********@msn .com>
| References: <04************ *************** *@phx.gbl>
<OZ************ **@TK2MSFTNGP11 .phx.gbl>
| Subject: Re: Unhandled Exceptions & Framesets
| Date: Wed, 2 Jul 2003 10:53:42 -0700
| Lines: 128
| Message-ID: <00************ *************** *@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Thread-Index: AcNAwt/3YeorCd18Roa9Dz MnVw3LRQ==
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| Path: cpmsftngxa09.ph x.gbl
| Xref: cpmsftngxa09.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:3180 0
| NNTP-Posting-Host: TK2MSFTNGXA13 10.40.1.165
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
| Hi,
|
| I tried the following...
|
| web.config files contains the entry:
| <customErrors mode="On"></customErrors>
|
| global.asax contains the following:
| protected void Application_Err or(Object sender, EventArgs
| e)
| {
| System.Web.UI.P age page = (System.Web.UI. Page)
| HttpContext.Cur rent.Handler;
| string script = "<script>";
| script += "top.location.h ref =
| \"ErrorPage.asp x\";";
| script += "</script>";
| page.RegisterSt artupScript("On Startup", script);
|
| }
|
|
| The ErrorPage.aspx is not being displayed but I am instead
| receving the standard Microsoft error page as below:
|
|
| Runtime Error
| Description: An application error occurred on the server.
| The current custom error settings for this application
| prevent the details of the application error from being
| viewed.
|
| Details: To enable the details of this specific error
| message to be viewable on the local server machine, please
| create a <customErrors > tag within a "web.config "
| configuration file located in the root directory of the
| current web application. This <customErrors > tag should
| then have its "mode" attribute set to "RemoteOnly ". To
| enable the details to be viewable on remote machines,
| please set "mode" to "Off".
|
|
| <!-- Web.Config Configuration File -->
|
| <configuratio n>
| <system.web>
| <customErrors mode="RemoteOnl y"/>
| </system.web>
| </configuration>
|
|
| Notes: The current error page you are seeing can be
| replaced by a custom error page by modifying
| the "defaultRedirec t" attribute of the application's
| <customErrors > configuration tag to point to a custom
| error page URL.
|
|
| <!-- Web.Config Configuration File -->
|
| <configuratio n>
| <system.web>
| <customErrors mode="On"
| defaultRedirect ="mycustompage. htm"/>
| </system.web>
| </configuration>
|
|
|
|
|
|
|
|
|
|
|
|
|
| >-----Original Message-----
| >Hi
| >
| >You have to return a client script that redirects
| >
| ><script language="JavaS cript">
| >top.location.h ref = "errorpage.aspx ";
| ></script>
| >
| >--
| >Best Regards
| > Vidar Petursson
| > =============== ===============
| >Microsoft Internet Client & Controls MVP
| > =============== ===============
| >"terry" <te********@msn .com> wrote in message
| >news:04******* *************** ******@phx.gbl. ..
| >> Hi,
| >> Question:
| >> When using Framesets and Server.Transfer in the
| >> Application_Err or event handler is there a mechanism to
| >> get the error page to display in the total view of the
| >> browser not just in the offending frame?
| >>
| >> Overview:
| >> I have an application in which I am using framesets.
| When
| >> an Unhandled exception occurs I try to handle it
| >> gracefully by transfering to an error handling page as
| >> follows:
| >>
| >> Global.asax.cs. ..
| >> protected void Application_Err or(Object sender,
| EventArgs
| >> e)
| >> {
| >> Server.Transfer ("ErrorPage.asp x");
| >> }
| >>
| >> The problem is that the ErrorPage.aspx is only displayed
| >> in the offending frame not the complete window of the
| >> browser.
| >>
| >> Thanks in advance for your help!!!
| >> Terry
| >
| >
| >.
| >
|

Nov 17 '05 #4
Hi Bassel,

Thanks for your reply. I have not tried this yet but I
want to make sure that we are both on the same page.

My goal is that I have an application making use of
Framesets. When an Unhandled exception occurs I would
like to display a custom error page (a page I create) in
the same browser as the original application but display
in the full view of the browser not just in the offending
frame (which appears to be the default). Will this
accomplish this?

Thanks again, I really appreciate your help.
Terry
-----Original Message-----
Hello Terry,
To open the window you can use the following script on onload Event:
<script>
window.open (" ErrorPage.aspx" , "newwin", "fullscreen="ye s"); window.opener = self;
self.close();
</script>

You will use the same method by registering the Script using thepage.RegisterS tartupScript.
The script will be in the ErrorPage.aspx that you are opening. This codewill open a new window for the error message
and close the one that has frame.

For reference:

onload Event
http://msdn.microsoft.com/library/default.asp? url=/workshop/author/dhtml/reference/events/onload.asp

window Object
http://msdn.microsoft.com/library/default.asp? url=/workshop/author/dhtml/reference/objects/obj_window.asp

open Method
http://msdn.microsoft.com/library/default.asp? url=/workshop/author/dhtml/reference/methods/open_0.asp

Please let me know if this answers your question.

Thanks,
Bassel Tabbara
Microsoft, ASP.NET

This posting is provided "AS IS", with no warranties, and confers no rights.
--------------------
| Content-Class: urn:content-classes:message
| From: "terry" <te********@msn .com>
| Sender: "terry" <te********@msn .com>
| References: <04************ *************** *@phx.gbl>
<OZ*********** ***@TK2MSFTNGP1 1.phx.gbl>
| Subject: Re: Unhandled Exceptions & Framesets
| Date: Wed, 2 Jul 2003 10:53:42 -0700
| Lines: 128
| Message-ID: <00************ *************** *@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Thread-Index: AcNAwt/3YeorCd18Roa9Dz MnVw3LRQ==
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| Path: cpmsftngxa09.ph x.gbl
| Xref: cpmsftngxa09.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:3180 0| NNTP-Posting-Host: TK2MSFTNGXA13 10.40.1.165
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
| Hi,
|
| I tried the following...
|
| web.config files contains the entry:
| <customErrors mode="On"></customErrors>
|
| global.asax contains the following:
| protected void Application_Err or(Object sender, EventArgs| e)
| {
| System.Web.UI.P age page = (System.Web.UI. Page)
| HttpContext.Cur rent.Handler;
| string script = "<script>";
| script += "top.location.h ref =
| \"ErrorPage.asp x\";";
| script += "</script>";
| page.RegisterSt artupScript("On Startup", script);
|
| }
|
|
| The ErrorPage.aspx is not being displayed but I am instead| receving the standard Microsoft error page as below:
|
|
| Runtime Error
| Description: An application error occurred on the server.| The current custom error settings for this application
| prevent the details of the application error from being
| viewed.
|
| Details: To enable the details of this specific error
| message to be viewable on the local server machine, please| create a <customErrors > tag within a "web.config "
| configuration file located in the root directory of the
| current web application. This <customErrors > tag should
| then have its "mode" attribute set to "RemoteOnly ". To
| enable the details to be viewable on remote machines,
| please set "mode" to "Off".
|
|
| <!-- Web.Config Configuration File -->
|
| <configuratio n>
| <system.web>
| <customErrors mode="RemoteOnl y"/>
| </system.web>
| </configuration>
|
|
| Notes: The current error page you are seeing can be
| replaced by a custom error page by modifying
| the "defaultRedirec t" attribute of the application's
| <customErrors > configuration tag to point to a custom
| error page URL.
|
|
| <!-- Web.Config Configuration File -->
|
| <configuratio n>
| <system.web>
| <customErrors mode="On"
| defaultRedirect ="mycustompage. htm"/>
| </system.web>
| </configuration>
|
|
|
|
|
|
|
|
|
|
|
|
|
| >-----Original Message-----
| >Hi
| >
| >You have to return a client script that redirects
| >
| ><script language="JavaS cript">
| >top.location.h ref = "errorpage.aspx ";
| ></script>
| >
| >--
| >Best Regards
| > Vidar Petursson
| > =============== ===============
| >Microsoft Internet Client & Controls MVP
| > =============== ===============
| >"terry" <te********@msn .com> wrote in message
| >news:04******* *************** ******@phx.gbl. ..
| >> Hi,
| >> Question:
| >> When using Framesets and Server.Transfer in the
| >> Application_Err or event handler is there a mechanism to| >> get the error page to display in the total view of the| >> browser not just in the offending frame?
| >>
| >> Overview:
| >> I have an application in which I am using framesets.| When
| >> an Unhandled exception occurs I try to handle it
| >> gracefully by transfering to an error handling page as| >> follows:
| >>
| >> Global.asax.cs. ..
| >> protected void Application_Err or(Object sender,
| EventArgs
| >> e)
| >> {
| >> Server.Transfer ("ErrorPage.asp x");
| >> }
| >>
| >> The problem is that the ErrorPage.aspx is only displayed| >> in the offending frame not the complete window of the
| >> browser.
| >>
| >> Thanks in advance for your help!!!
| >> Terry
| >
| >
| >.
| >
|

.

Nov 17 '05 #5
Hello Terry,
Well you can put a link which specify to open the page in the same window
as full opened in the same window.
The method that I described earlier is that you need to open a new window
since you have to use Window.Open.

Please let me know if you are not satisfied with this solution.

Thanks,
Bassel Tabbara
Microsoft, ASP.NET

This posting is provided "AS IS", with no warranties, and confers no rights.
--------------------
| Content-Class: urn:content-classes:message
| From: "terry" <te********@msn .com>
| Sender: "terry" <te********@msn .com>
| References: <04************ *************** *@phx.gbl>
<OZ************ **@TK2MSFTNGP11 .phx.gbl>
<00************ *************** *@phx.gbl>
<TQ************ **@cpmsftngxa09 .phx.gbl>
| Subject: Re: Unhandled Exceptions & Framesets
| Date: Wed, 2 Jul 2003 14:05:51 -0700
| Lines: 231
| Message-ID: <48************ *************** *@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Thread-Index: AcNA3bgsaQw2Y1B JSVyw5Ci5Cc/+yQ==
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| Path: cpmsftngxa09.ph x.gbl
| Xref: cpmsftngxa09.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:3185 1
| NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
| Hi Bassel,
|
| Thanks for your reply. I have not tried this yet but I
| want to make sure that we are both on the same page.
|
| My goal is that I have an application making use of
| Framesets. When an Unhandled exception occurs I would
| like to display a custom error page (a page I create) in
| the same browser as the original application but display
| in the full view of the browser not just in the offending
| frame (which appears to be the default). Will this
| accomplish this?
|
| Thanks again, I really appreciate your help.
| Terry
|
| >-----Original Message-----
| >Hello Terry,
| >To open the window you can use the following script on
| onload Event:
| >
| > <script>
| > window.open ("
| ErrorPage.aspx" , "newwin", "fullscreen="ye s");
| > window.opener = self;
| > self.close();
| > </script>
| >
| >You will use the same method by registering the Script
| using the
| >page.RegisterS tartupScript.
| >The script will be in the ErrorPage.aspx that you are
| opening. This code
| >will open a new window for the error message
| >and close the one that has frame.
| >
| >For reference:
| >
| >onload Event
| >http://msdn.microsoft.com/library/default.asp?
| url=/workshop/author/dhtml/ref
| >erence/events/onload.asp
| >
| >window Object
| >http://msdn.microsoft.com/library/default.asp?
| url=/workshop/author/dhtml/ref
| >erence/objects/obj_window.asp
| >
| >open Method
| >http://msdn.microsoft.com/library/default.asp?
| url=/workshop/author/dhtml/ref
| >erence/methods/open_0.asp
| >
| >Please let me know if this answers your question.
| >
| >Thanks,
| >Bassel Tabbara
| >Microsoft, ASP.NET
| >
| >This posting is provided "AS IS", with no warranties, and
| confers no rights.
| >
| >
| >
| >--------------------
| >| Content-Class: urn:content-classes:message
| >| From: "terry" <te********@msn .com>
| >| Sender: "terry" <te********@msn .com>
| >| References: <04************ *************** *@phx.gbl>
| ><OZ*********** ***@TK2MSFTNGP1 1.phx.gbl>
| >| Subject: Re: Unhandled Exceptions & Framesets
| >| Date: Wed, 2 Jul 2003 10:53:42 -0700
| >| Lines: 128
| >| Message-ID: <00************ *************** *@phx.gbl>
| >| MIME-Version: 1.0
| >| Content-Type: text/plain;
| >| charset="iso-8859-1"
| >| Content-Transfer-Encoding: 7bit
| >| X-Newsreader: Microsoft CDO for Windows 2000
| >| Thread-Index: AcNAwt/3YeorCd18Roa9Dz MnVw3LRQ==
| >| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| >| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| >| Path: cpmsftngxa09.ph x.gbl
| >| Xref: cpmsftngxa09.ph x.gbl
| microsoft.publi c.dotnet.framew ork.aspnet:3180 0
| >| NNTP-Posting-Host: TK2MSFTNGXA13 10.40.1.165
| >| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
| >|
| >| Hi,
| >|
| >| I tried the following...
| >|
| >| web.config files contains the entry:
| >| <customErrors mode="On"></customErrors>
| >|
| >| global.asax contains the following:
| >| protected void Application_Err or(Object sender,
| EventArgs
| >| e)
| >| {
| >| System.Web.UI.P age page = (System.Web.UI. Page)
| >| HttpContext.Cur rent.Handler;
| >| string script = "<script>";
| >| script += "top.location.h ref =
| >| \"ErrorPage.asp x\";";
| >| script += "</script>";
| >| page.RegisterSt artupScript("On Startup", script);
| >|
| >| }
| >|
| >|
| >| The ErrorPage.aspx is not being displayed but I am
| instead
| >| receving the standard Microsoft error page as below:
| >|
| >|
| >| Runtime Error
| >| Description: An application error occurred on the
| server.
| >| The current custom error settings for this application
| >| prevent the details of the application error from being
| >| viewed.
| >|
| >| Details: To enable the details of this specific error
| >| message to be viewable on the local server machine,
| please
| >| create a <customErrors > tag within a "web.config "
| >| configuration file located in the root directory of the
| >| current web application. This <customErrors > tag should
| >| then have its "mode" attribute set to "RemoteOnly ". To
| >| enable the details to be viewable on remote machines,
| >| please set "mode" to "Off".
| >|
| >|
| >| <!-- Web.Config Configuration File -->
| >|
| >| <configuratio n>
| >| <system.web>
| >| <customErrors mode="RemoteOnl y"/>
| >| </system.web>
| >| </configuration>
| >|
| >|
| >| Notes: The current error page you are seeing can be
| >| replaced by a custom error page by modifying
| >| the "defaultRedirec t" attribute of the application's
| >| <customErrors > configuration tag to point to a custom
| >| error page URL.
| >|
| >|
| >| <!-- Web.Config Configuration File -->
| >|
| >| <configuratio n>
| >| <system.web>
| >| <customErrors mode="On"
| >| defaultRedirect ="mycustompage. htm"/>
| >| </system.web>
| >| </configuration>
| >|
| >|
| >|
| >|
| >|
| >|
| >|
| >|
| >|
| >|
| >|
| >|
| >|
| >| >-----Original Message-----
| >| >Hi
| >| >
| >| >You have to return a client script that redirects
| >| >
| >| ><script language="JavaS cript">
| >| >top.location.h ref = "errorpage.aspx ";
| >| ></script>
| >| >
| >| >--
| >| >Best Regards
| >| > Vidar Petursson
| >| > =============== ===============
| >| >Microsoft Internet Client & Controls MVP
| >| > =============== ===============
| >| >"terry" <te********@msn .com> wrote in message
| >| >news:04******* *************** ******@phx.gbl. ..
| >| >> Hi,
| >| >> Question:
| >| >> When using Framesets and Server.Transfer in the
| >| >> Application_Err or event handler is there a mechanism
| to
| >| >> get the error page to display in the total view of
| the
| >| >> browser not just in the offending frame?
| >| >>
| >| >> Overview:
| >| >> I have an application in which I am using
| framesets.
| >| When
| >| >> an Unhandled exception occurs I try to handle it
| >| >> gracefully by transfering to an error handling page
| as
| >| >> follows:
| >| >>
| >| >> Global.asax.cs. ..
| >| >> protected void Application_Err or(Object sender,
| >| EventArgs
| >| >> e)
| >| >> {
| >| >> Server.Transfer ("ErrorPage.asp x");
| >| >> }
| >| >>
| >| >> The problem is that the ErrorPage.aspx is only
| displayed
| >| >> in the offending frame not the complete window of the
| >| >> browser.
| >| >>
| >| >> Thanks in advance for your help!!!
| >| >> Terry
| >| >
| >| >
| >| >.
| >| >
| >|
| >
| >
| >
| >.
| >
|
Nov 17 '05 #6

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

Similar topics

2
1486
by: Frances Del Rio | last post by:
where I work they support Netscape 4.7, we use frames a lot, but framesets that look fine in IE look awful in N 4.7, can someone shed some light on what the deal is w/frames in N 4.7? in N 4.7 frames are different sizes from what they're supposed to be, etc.. thank you very much.. Frances Del Rio NYC
4
2405
by: Frank | last post by:
Hi, I made a handler for unhandled errors. But before that is executed, VB.NET gives me the standard error window. In VB6 there was a setting (errortrapping) about handling errors in the design environment and classes, which should prevent the before mentioned behaviour. Does VB.NET have a setting like it? Or is there something else? Thanks in advance Frank
5
5744
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 thread.Abort()) is reported twice: once in the debug window, and once through the message box. Is it because the thread was sleeping when the exception occurred?
5
3306
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 view it in one of the windows (autos or locals, don't remember which). That doesn't appear to be the case with vb.net. I also tried using the command window to inspect "Err" but that gave nothing useful (always empty).
5
4541
by: Sam Loveridge | last post by:
Hi All. I'm hoping someone can point me in the direction of a solution to unhandled exceptions in MDI child forms causing the application to crash. I've found various articles describing a method using Application.Run(new MyMainParentForm) to place in the application's Sub Main to allow catching of unhandled exceptions in the application. The problem I'm facing is that I want to be able to trap unhandled exceptions at the MDI child...
0
1986
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 about in a new application I'm writing. However, when I try to use ThreadStart to do some work in a separate thread from my GUI, the methods Jason described don't seem to catch the exception. Take the following source code: Public Class...
2
2181
by: Bob | last post by:
I MUST be able to trap unhandled exceptions, bring the thread to a routine that then closes the thread on which the execption occurred without closing or affecting the other threads. Think of an Interactive voice response telephone application. An unforeseen error occurs on one phone call. You terminate that phone call politely but you don't all of a sudden hang up the phone without warning on the other 400 callers that are on line at that...
3
1949
by: Andreas van de Sand | last post by:
Hi everyone, I've got an application which uses a custom exception handler and to avoid unhandled exceptions I've got a try{}catch (Exception){} block around the main Application.Run(...). Works all good on my machine, whenever something unexpected happens the exception get caught, logged and it shows a nicer message. Unfortunately for some reason, this only works on my machine! If i deploy my project to some other computer I get the...
20
11475
by: joseph_gallagher | last post by:
Hi, I've recently ported a .Net 1.1 application to .Net 2.0 and the one new feature that is getting on my nerves is that when there is an unhandled exception the application completely crashes, causing user to loose all the work they have done where they could previously just click continue and in 99% of cases be fine. Is there an option to turn this annoying crash and loose everything option off, I can see it has its merits but in my...
0
8946
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8774
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9307
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9235
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8186
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6735
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6031
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
2721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2180
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.