For some reason I can't pass the Context to my remoting object. When I run
this the application just shows the thrown exception, it never sends the
Context it to the remoting server. If I only send the exception it works.
Any ideas appreciated
protected void Application_Error(Object sender, EventArgs e)
{
ODE.Enterprise.Exception.Common.IExceptionHandler exceptionHandler =
(ODE.Enterprise.Exception.Common.IExceptionHandler )
ODE.Enterprise.Exception.Common.ClassFactory.Creat eInstance(typeof(ODE.Enter
prise.Exception.Common.IExceptionHandler));
exceptionHandler.RaiseError(Server.GetLastError(). InnerException,
System.Web.HttpContext.Current);
} 10 4622
Remoting an HttpContext is kind of like trying to remote a SQL connection -
how could it possibly work? The HttpContext holds a live connection to the
response stream as well as to the request stream - you can't
serialize/deserialize something like that.
"Rob Morgan" <ro********@ode.state.oh.us> wrote in message
news:O9**************@TK2MSFTNGP11.phx.gbl... For some reason I can't pass the Context to my remoting object. When I run this the application just shows the thrown exception, it never sends the Context it to the remoting server. If I only send the exception it works. Any ideas appreciated
protected void Application_Error(Object sender, EventArgs e) { ODE.Enterprise.Exception.Common.IExceptionHandler exceptionHandler = (ODE.Enterprise.Exception.Common.IExceptionHandler )
ODE.Enterprise.Exception.Common.ClassFactory.Creat eInstance(typeof(ODE.Enter prise.Exception.Common.IExceptionHandler)); exceptionHandler.RaiseError(Server.GetLastError(). InnerException, System.Web.HttpContext.Current); }
I have never done this before. Anyway: I dont think HttpContext is
serializable. You can probably try sending the HttpContext.Current.Request
if you just want to get the current request.
--
Girish Bharadwaj http://msmvps.com/gbvb
"Rob Morgan" <ro********@ode.state.oh.us> wrote in message
news:O9**************@TK2MSFTNGP11.phx.gbl... For some reason I can't pass the Context to my remoting object. When I run this the application just shows the thrown exception, it never sends the Context it to the remoting server. If I only send the exception it works. Any ideas appreciated
protected void Application_Error(Object sender, EventArgs e) { ODE.Enterprise.Exception.Common.IExceptionHandler exceptionHandler = (ODE.Enterprise.Exception.Common.IExceptionHandler )
ODE.Enterprise.Exception.Common.ClassFactory.Creat eInstance(typeof(ODE.Enter prise.Exception.Common.IExceptionHandler)); exceptionHandler.RaiseError(Server.GetLastError(). InnerException, System.Web.HttpContext.Current); }
Ignore my last reply. HttpRequest is not serializable too. :(
--
Girish Bharadwaj http://msmvps.com/gbvb
"Rob Morgan" <ro********@ode.state.oh.us> wrote in message
news:O9**************@TK2MSFTNGP11.phx.gbl... For some reason I can't pass the Context to my remoting object. When I run this the application just shows the thrown exception, it never sends the Context it to the remoting server. If I only send the exception it works. Any ideas appreciated
protected void Application_Error(Object sender, EventArgs e) { ODE.Enterprise.Exception.Common.IExceptionHandler exceptionHandler = (ODE.Enterprise.Exception.Common.IExceptionHandler )
ODE.Enterprise.Exception.Common.ClassFactory.Creat eInstance(typeof(ODE.Enter prise.Exception.Common.IExceptionHandler)); exceptionHandler.RaiseError(Server.GetLastError(). InnerException, System.Web.HttpContext.Current); }
Tell us perhaps more about what you need in this. I would pass only the
necessarty info as - as noted by Marina - it would be similar to remoting a
connection.
Perhaps could you use a web service ? What are you trying to achieve ?
Patrice
--
"Marina" <so*****@nospam.com> a écrit dans le message de
news:e1**************@TK2MSFTNGP11.phx.gbl... Remoting an HttpContext is kind of like trying to remote a SQL
connection - how could it possibly work? The HttpContext holds a live connection to
the response stream as well as to the request stream - you can't serialize/deserialize something like that.
"Rob Morgan" <ro********@ode.state.oh.us> wrote in message news:O9**************@TK2MSFTNGP11.phx.gbl... For some reason I can't pass the Context to my remoting object. When I
run this the application just shows the thrown exception, it never sends the Context it to the remoting server. If I only send the exception it
works. Any ideas appreciated
protected void Application_Error(Object sender, EventArgs e) { ODE.Enterprise.Exception.Common.IExceptionHandler exceptionHandler = (ODE.Enterprise.Exception.Common.IExceptionHandler )
ODE.Enterprise.Exception.Common.ClassFactory.Creat eInstance(typeof(ODE.Enter prise.Exception.Common.IExceptionHandler)); exceptionHandler.RaiseError(Server.GetLastError(). InnerException, System.Web.HttpContext.Current); }
Make perfect sense, thanks
"Marina" <so*****@nospam.com> wrote in message
news:e1**************@TK2MSFTNGP11.phx.gbl... Remoting an HttpContext is kind of like trying to remote a SQL
connection - how could it possibly work? The HttpContext holds a live connection to
the response stream as well as to the request stream - you can't serialize/deserialize something like that.
"Rob Morgan" <ro********@ode.state.oh.us> wrote in message news:O9**************@TK2MSFTNGP11.phx.gbl... For some reason I can't pass the Context to my remoting object. When I
run this the application just shows the thrown exception, it never sends the Context it to the remoting server. If I only send the exception it
works. Any ideas appreciated
protected void Application_Error(Object sender, EventArgs e) { ODE.Enterprise.Exception.Common.IExceptionHandler exceptionHandler = (ODE.Enterprise.Exception.Common.IExceptionHandler )
ODE.Enterprise.Exception.Common.ClassFactory.Creat eInstance(typeof(ODE.Enter prise.Exception.Common.IExceptionHandler)); exceptionHandler.RaiseError(Server.GetLastError(). InnerException, System.Web.HttpContext.Current); }
I've made a remoting exception handler and I want applications to send it
enough information so we can route/track down the errors. I've got it
accepting Server.GetLastError().InnerException, and I wanted to include the
context information. Looks like I'm going to have to send it the Response,
Request, and Enviroment objects if that's possible. The smaller amount of
code that the applications have to use the better.
Thanks
"Patrice" <no****@nowhere.com> wrote in message
news:OS**************@TK2MSFTNGP12.phx.gbl... Tell us perhaps more about what you need in this. I would pass only the necessarty info as - as noted by Marina - it would be similar to remoting
a connection.
Perhaps could you use a web service ? What are you trying to achieve ?
Patrice
--
"Marina" <so*****@nospam.com> a écrit dans le message de news:e1**************@TK2MSFTNGP11.phx.gbl... Remoting an HttpContext is kind of like trying to remote a SQL connection - how could it possibly work? The HttpContext holds a live connection to the response stream as well as to the request stream - you can't serialize/deserialize something like that.
"Rob Morgan" <ro********@ode.state.oh.us> wrote in message news:O9**************@TK2MSFTNGP11.phx.gbl... For some reason I can't pass the Context to my remoting object. When I run this the application just shows the thrown exception, it never sends
the Context it to the remoting server. If I only send the exception it works. Any ideas appreciated
protected void Application_Error(Object sender, EventArgs e) { ODE.Enterprise.Exception.Common.IExceptionHandler exceptionHandler = (ODE.Enterprise.Exception.Common.IExceptionHandler )
ODE.Enterprise.Exception.Common.ClassFactory.Creat eInstance(typeof(ODE.Enter prise.Exception.Common.IExceptionHandler)); exceptionHandler.RaiseError(Server.GetLastError(). InnerException, System.Web.HttpContext.Current); }
Humm.. And what is the reason behind remoting the exception handler ? What
do you do with the information once you handler retrieved it ? If this is to
produce a trace message, you could perhaps produce the trace message and
sends directly this information to the handler rather than to send this and
create the trace message at the other end.
Also what benefit are you trying to reach by remoting the handler ?
Patrice
--
"Rob Morgan" <ro********@ode.state.oh.us> a écrit dans le message de
news:O$*************@TK2MSFTNGP15.phx.gbl... I've made a remoting exception handler and I want applications to send it enough information so we can route/track down the errors. I've got it accepting Server.GetLastError().InnerException, and I wanted to include
the context information. Looks like I'm going to have to send it the Response, Request, and Enviroment objects if that's possible. The smaller amount of code that the applications have to use the better.
Thanks
"Patrice" <no****@nowhere.com> wrote in message news:OS**************@TK2MSFTNGP12.phx.gbl... Tell us perhaps more about what you need in this. I would pass only the necessarty info as - as noted by Marina - it would be similar to
remoting a connection.
Perhaps could you use a web service ? What are you trying to achieve ?
Patrice
--
"Marina" <so*****@nospam.com> a écrit dans le message de news:e1**************@TK2MSFTNGP11.phx.gbl... Remoting an HttpContext is kind of like trying to remote a SQL connection - how could it possibly work? The HttpContext holds a live connection
to the response stream as well as to the request stream - you can't serialize/deserialize something like that.
"Rob Morgan" <ro********@ode.state.oh.us> wrote in message news:O9**************@TK2MSFTNGP11.phx.gbl... > For some reason I can't pass the Context to my remoting object. When
I run > this the application just shows the thrown exception, it never sends the > Context it to the remoting server. If I only send the exception it
works. > Any ideas appreciated > > protected void Application_Error(Object sender, EventArgs e) > { > ODE.Enterprise.Exception.Common.IExceptionHandler exceptionHandler = > (ODE.Enterprise.Exception.Common.IExceptionHandler ) >
ODE.Enterprise.Exception.Common.ClassFactory.Creat eInstance(typeof(ODE.Enter > prise.Exception.Common.IExceptionHandler)); > exceptionHandler.RaiseError(Server.GetLastError(). InnerException, > System.Web.HttpContext.Current); > } > >
We will probably email it to our admins, or write it out to file, or
database it. I think your right, produce the trace message then send it.
What would be the best way to accomplish this?
"Patrice" <no****@nowhere.com> wrote in message
news:#b*************@TK2MSFTNGP09.phx.gbl... Humm.. And what is the reason behind remoting the exception handler ? What do you do with the information once you handler retrieved it ? If this is
to produce a trace message, you could perhaps produce the trace message and sends directly this information to the handler rather than to send this
and create the trace message at the other end.
Also what benefit are you trying to reach by remoting the handler ?
Patrice
--
"Rob Morgan" <ro********@ode.state.oh.us> a écrit dans le message de news:O$*************@TK2MSFTNGP15.phx.gbl... I've made a remoting exception handler and I want applications to send
it enough information so we can route/track down the errors. I've got it accepting Server.GetLastError().InnerException, and I wanted to include the context information. Looks like I'm going to have to send it the
Response, Request, and Enviroment objects if that's possible. The smaller amount
of code that the applications have to use the better.
Thanks
"Patrice" <no****@nowhere.com> wrote in message news:OS**************@TK2MSFTNGP12.phx.gbl... Tell us perhaps more about what you need in this. I would pass only
the necessarty info as - as noted by Marina - it would be similar to remoting a connection.
Perhaps could you use a web service ? What are you trying to achieve ?
Patrice
--
"Marina" <so*****@nospam.com> a écrit dans le message de news:e1**************@TK2MSFTNGP11.phx.gbl... > Remoting an HttpContext is kind of like trying to remote a SQL connection - > how could it possibly work? The HttpContext holds a live connection to the > response stream as well as to the request stream - you can't > serialize/deserialize something like that. > > "Rob Morgan" <ro********@ode.state.oh.us> wrote in message > news:O9**************@TK2MSFTNGP11.phx.gbl... > > For some reason I can't pass the Context to my remoting object.
When I run > > this the application just shows the thrown exception, it never
sends the > > Context it to the remoting server. If I only send the exception
it works. > > Any ideas appreciated > > > > protected void Application_Error(Object sender, EventArgs e) > > { > > ODE.Enterprise.Exception.Common.IExceptionHandler exceptionHandler
= > > (ODE.Enterprise.Exception.Common.IExceptionHandler ) > > >
ODE.Enterprise.Exception.Common.ClassFactory.Creat eInstance(typeof(ODE.Enter > > prise.Exception.Common.IExceptionHandler)); > > exceptionHandler.RaiseError(Server.GetLastError(). InnerException, > > System.Web.HttpContext.Current); > > } > > > > > >
Just call your hanlder from the Application_Error event (available in
global.asax).
IMO there is no need to remote this. Just have the local handler create a
message and send it to the support team....
Patrice
--
"Rob Morgan" <ro********@ode.state.oh.us> a écrit dans le message de
news:OR**************@TK2MSFTNGP14.phx.gbl... We will probably email it to our admins, or write it out to file, or database it. I think your right, produce the trace message then send it. What would be the best way to accomplish this? "Patrice" <no****@nowhere.com> wrote in message news:#b*************@TK2MSFTNGP09.phx.gbl... Humm.. And what is the reason behind remoting the exception handler ?
What do you do with the information once you handler retrieved it ? If this
is to produce a trace message, you could perhaps produce the trace message and sends directly this information to the handler rather than to send this and create the trace message at the other end.
Also what benefit are you trying to reach by remoting the handler ?
Patrice
--
"Rob Morgan" <ro********@ode.state.oh.us> a écrit dans le message de news:O$*************@TK2MSFTNGP15.phx.gbl... I've made a remoting exception handler and I want applications to send it enough information so we can route/track down the errors. I've got it accepting Server.GetLastError().InnerException, and I wanted to
include the context information. Looks like I'm going to have to send it the Response, Request, and Enviroment objects if that's possible. The smaller amount of code that the applications have to use the better.
Thanks
"Patrice" <no****@nowhere.com> wrote in message news:OS**************@TK2MSFTNGP12.phx.gbl... > Tell us perhaps more about what you need in this. I would pass only the > necessarty info as - as noted by Marina - it would be similar to remoting a > connection. > > Perhaps could you use a web service ? What are you trying to achieve
? > > Patrice > > -- > > "Marina" <so*****@nospam.com> a écrit dans le message de > news:e1**************@TK2MSFTNGP11.phx.gbl... > > Remoting an HttpContext is kind of like trying to remote a SQL > connection - > > how could it possibly work? The HttpContext holds a live
connection to > the > > response stream as well as to the request stream - you can't > > serialize/deserialize something like that. > > > > "Rob Morgan" <ro********@ode.state.oh.us> wrote in message > > news:O9**************@TK2MSFTNGP11.phx.gbl... > > > For some reason I can't pass the Context to my remoting object. When I > run > > > this the application just shows the thrown exception, it never sends the > > > Context it to the remoting server. If I only send the exception it > works. > > > Any ideas appreciated > > > > > > protected void Application_Error(Object sender, EventArgs e) > > > { > > > ODE.Enterprise.Exception.Common.IExceptionHandler
exceptionHandler = > > > (ODE.Enterprise.Exception.Common.IExceptionHandler ) > > > > > >
ODE.Enterprise.Exception.Common.ClassFactory.Creat eInstance(typeof(ODE.Enter > > > prise.Exception.Common.IExceptionHandler)); > > >
exceptionHandler.RaiseError(Server.GetLastError(). InnerException, > > > System.Web.HttpContext.Current); > > > } > > > > > > > > > > > >
Thank you very much for the help!
"Patrice" <no****@nowhere.com> wrote in message
news:#W**************@TK2MSFTNGP09.phx.gbl... Just call your hanlder from the Application_Error event (available in global.asax).
IMO there is no need to remote this. Just have the local handler create a message and send it to the support team....
Patrice
--
"Rob Morgan" <ro********@ode.state.oh.us> a écrit dans le message de news:OR**************@TK2MSFTNGP14.phx.gbl... We will probably email it to our admins, or write it out to file, or database it. I think your right, produce the trace message then send
it. What would be the best way to accomplish this? "Patrice" <no****@nowhere.com> wrote in message news:#b*************@TK2MSFTNGP09.phx.gbl... Humm.. And what is the reason behind remoting the exception handler ? What do you do with the information once you handler retrieved it ? If this is to produce a trace message, you could perhaps produce the trace message
and sends directly this information to the handler rather than to send
this and create the trace message at the other end.
Also what benefit are you trying to reach by remoting the handler ?
Patrice
--
"Rob Morgan" <ro********@ode.state.oh.us> a écrit dans le message de news:O$*************@TK2MSFTNGP15.phx.gbl... > I've made a remoting exception handler and I want applications to
send it > enough information so we can route/track down the errors. I've got
it > accepting Server.GetLastError().InnerException, and I wanted to include the > context information. Looks like I'm going to have to send it the Response, > Request, and Enviroment objects if that's possible. The smaller
amount of > code that the applications have to use the better. > > Thanks > > "Patrice" <no****@nowhere.com> wrote in message > news:OS**************@TK2MSFTNGP12.phx.gbl... > > Tell us perhaps more about what you need in this. I would pass
only the > > necessarty info as - as noted by Marina - it would be similar to remoting > a > > connection. > > > > Perhaps could you use a web service ? What are you trying to
achieve ? > > > > Patrice > > > > -- > > > > "Marina" <so*****@nospam.com> a écrit dans le message de > > news:e1**************@TK2MSFTNGP11.phx.gbl... > > > Remoting an HttpContext is kind of like trying to remote a SQL > > connection - > > > how could it possibly work? The HttpContext holds a live connection to > > the > > > response stream as well as to the request stream - you can't > > > serialize/deserialize something like that. > > > > > > "Rob Morgan" <ro********@ode.state.oh.us> wrote in message > > > news:O9**************@TK2MSFTNGP11.phx.gbl... > > > > For some reason I can't pass the Context to my remoting
object. When I > > run > > > > this the application just shows the thrown exception, it never sends > the > > > > Context it to the remoting server. If I only send the
exception it > > works. > > > > Any ideas appreciated > > > > > > > > protected void Application_Error(Object sender, EventArgs e) > > > > { > > > > ODE.Enterprise.Exception.Common.IExceptionHandler
exceptionHandler = > > > > (ODE.Enterprise.Exception.Common.IExceptionHandler ) > > > > > > > > > >
ODE.Enterprise.Exception.Common.ClassFactory.Creat eInstance(typeof(ODE.Enter > > > > prise.Exception.Common.IExceptionHandler)); > > > > exceptionHandler.RaiseError(Server.GetLastError(). InnerException, > > > > System.Web.HttpContext.Current); > > > > } > > > > > > > > > > > > > > > > > > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Hari Koduru |
last post by:
Hi All,
I am getting the following exception in an ASP.NET
application.
Exception Details: System.InvalidOperationException:
Application is restarting.
I have been to the following Support...
|
by: msnews.microsoft.com |
last post by:
Not sure where this error is coming from. I have my asp.net app set to email
me error messages, but this error message does not indicate where it occurs.
There is no page called get_aspx_ver.aspx...
|
by: Ryan |
last post by:
Hello
I AM POSTING THIS WITH THE INTENT TO HELP SOMEONE ELSE WHO MAY HAVE
THIS PROBLEM.... I DONT NEED HELP ;)
I was getting the following error in one of my applications which was
installed...
|
by: Joe |
last post by:
Hello All;
I can't access System.Web.HttpServerUtility from within a Class. I want to
have access to MapPath.
What I get are three options. They are:
AspNetHostingPermission...
|
by: Tim Cartwright |
last post by:
I have a page that has the login control on it, nothing else. This page inherits from a master page, neither page has any code in it. This page works perfectly when running on the WebDev debug web...
|
by: Stacey Levine |
last post by:
I have a webservice that I wanted to return an ArrayList..Well the service
compiles and runs when I have the output defined as ArrayList, but the WSDL
defines the output as an Object so I was...
|
by: John.Luckowsky |
last post by:
Hello all,
I've moved my old ASP1.1 with WSE2.0 SP3 to ASP2.0 and have found
strange error which raises spontaneously. Here is the stack trace:
System.InvalidOperationException
Message: The...
|
by: nicomp |
last post by:
I created a Web Service: I imported System.Data.SqlClient so I could
access SQL server tables programmatically. The web service builds and
deploys with no problems. When I try to add the...
|
by: JT |
last post by:
This seems like it could be an asp.net bug. I am getting the following
exception when I add OnSortCommand attribute to a datagrid. I have
deleted the temp directories, rebooted etc and I have...
|
by: goc |
last post by:
I have a Web Farm, that fetches its database-data from a separate
database-server. Today I was forced to go over to .NET 2.0 (since 1.1
can't be installed on Windows Vista x64), and it brought...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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
|
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...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
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...
|
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...
|
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...
| |