Hello,
I have a website set up on our server that is especially for errors.
When another website encounters an error, it will redirect to this
site with error details in the querystring. The error website process
the querystring and displays a nicely formatted error message with
details.
The problem I am having is that the querystrings are getting too long
and I am unable to successfully redirect to the error site. What are
my options other than using querystrings? The error website is a
separate project from all of my other websites, so I think that cuts
down on my options. I would prefer not to have to do anything
database-wise.
Thanks! 9 1948
"joe" <co*******@gmai l.comwrote in message
news:8a******** *************** ***********@m36 g2000hse.google groups.com...
The error website is a separate project from all of my other websites, so
I
think that cuts down on my options.
It does, but I'm really curious as to why you would have a completely
separate website *just* for displaying errors...
Standard exception handling and user notification are excellent candidates
for a library project which you just add in to your "real" (for want of a
better term) websites so that the code is maintained in one place but
deployed everywhere it's needed. Then you wouldn't need to worry about query
strings or anything like that...
--
Mark Rae
ASP.NET MVP http://www.markrae.net
On Apr 16, 10:15*am, "Mark Rae [MVP]" <m...@markNOSPA Mrae.netwrote:
"joe" <cole.m...@gmai l.comwrote in message
news:8a******** *************** ***********@m36 g2000hse.google groups.com...
The error website is a separate project from all of my other websites, so
I
think that cuts down on my options.
It does, but I'm really curious as to why you would have a completely
separate website *just* for displaying errors...
Standard exception handling and user notification are excellent candidates
for a library project which you just add in to your "real" (for want of a
better term) websites so that the code is maintained in one place but
deployed everywhere it's needed. Then you wouldn't need to worry about query
strings or anything like that...
--
Mark Rae
ASP.NET MVPhttp://www.markrae.net
I have a seperate website so errors are displayed in a conistent way.
The processing is done in a class library, notification is sent, and
then the last step is redirecting to this page.
Can you give an example of how I could modify my class library to
display an error page that looked consistant across applications? I
think maybe our lines of thinking are on a different page.
"joe" <co*******@gmai l.comwrote in message
news:8a******** *************** ***********@m36 g2000hse.google groups.com...
Hello,
I have a website set up on our server that is especially for errors.
When another website encounters an error, it will redirect to this
site with error details in the querystring. The error website process
the querystring and displays a nicely formatted error message with
details.
The problem I am having is that the querystrings are getting too long
and I am unable to successfully redirect to the error site. What are
my options other than using querystrings? The error website is a
separate project from all of my other websites, so I think that cuts
down on my options. I would prefer not to have to do anything
database-wise.
Thanks!
You might look into HttpWebRequest and HttpWebResponse to handle this.
Mike
Seeing that the reason for a separate site is for consistency tells me that
the majority of your code that does work is in your ASP.NET pages, which is
an issue.
The easiest way to set up consistency is to use the same controls to display
the errors. This will consist of a processing library (in most cases) and a
control. The control can be a user control, which you copy to each site, or
you can create a server control. A user control is faster, but you have to
remember to include it. If you use a server control, you can place the bits
in the GAC and force all apps to use the latest. This will make it so you do
not have to update multiple sites when you change the error methodology,
which is why I assume you are doing a separate site.
As for continuing the way you are doing it, consider sending the information
in a form collection that you build. It is a bit more consuming, but you can
send as much FUD as you need. I would consider this an interim step, at
best.
--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA
Subscribe to my blog http://gregorybeamer.spaces.live.com/lists/feed.rss
or just read it: http://gregorybeamer.spaces.live.com/
*************** *************** *************** ****
| Think outside the box!
|
*************** *************** *************** ****
"joe" <co*******@gmai l.comwrote in message
news:8a******** *************** ***********@m36 g2000hse.google groups.com...
Hello,
I have a website set up on our server that is especially for errors.
When another website encounters an error, it will redirect to this
site with error details in the querystring. The error website process
the querystring and displays a nicely formatted error message with
details.
The problem I am having is that the querystrings are getting too long
and I am unable to successfully redirect to the error site. What are
my options other than using querystrings? The error website is a
separate project from all of my other websites, so I think that cuts
down on my options. I would prefer not to have to do anything
database-wise.
Thanks!
"joe" <co*******@gmai l.comwrote in message
news:1c******** *************** ***********@e39 g2000hsf.google groups.com...
I have a seperate website so errors are displayed in a conistent way.
The processing is done in a class library, notification is sent, and
then the last step is redirecting to this page.
I realise *what* you're doing - I just don't understand *why*... :-) N.B.
I'm not saying that you are wrong or that your method is bad...
Can you give an example of how I could modify my class library to
display an error page that looked consistant across applications? I
think maybe our lines of thinking are on a different page.
1) Create a new project called e.g. errors
2) Add a web page (e.g. error.aspx) which will display the error to the
user.
3) Add a public class which will handle your processing logic - include a
public method called e.g. ProcessError
4) Add the project to any solution which needs it - this is even easier if
you're using a source control solution e.g. Visual SourceSafe 2005...
5) In your code-behind, include standard try...catch and/or
try...catch...f inally exception handling which will call the ProcessError
method and, finally, Response.Redire ct to error.aspx which will display the
error to the user.
6) Add code in the "main" sites' Application_Err or method in Global.asax to
catch any unhandled exceptions.
--
Mark Rae
ASP.NET MVP http://www.markrae.net
On Apr 16, 11:43*am, "Mark Rae [MVP]" <m...@markNOSPA Mrae.netwrote:
"joe" <cole.m...@gmai l.comwrote in message
news:1c******** *************** ***********@e39 g2000hsf.google groups.com...
I have a seperate website so errors are displayed in a conistent way.
The processing is done in a class library, notification is sent, and
then the last step is redirecting to this page.
I realise *what* you're doing - I just don't understand *why*... :-) N.B.
I'm not saying that you are wrong or that your method is bad...
Can you give an example of how I could modify my class library to
display an error page that looked consistant across applications? *I
think maybe our lines of thinking are on a different page.
1) Create a new project called e.g. errors
2) Add a web page (e.g. error.aspx) which will display the error to the
user.
3) Add a public class which will handle your processing logic - include a
public method called e.g. ProcessError
4) Add the project to any solution which needs it - this is even easier if
you're using a source control solution e.g. Visual SourceSafe 2005...
5) In your code-behind, include standard try...catch and/or
try...catch...f inally exception handling which will call the ProcessError
method and, finally, Response.Redire ct to error.aspx which will display the
error to the user.
6) Add code in the "main" sites' Application_Err or method in Global.asax to
catch any unhandled exceptions.
--
Mark Rae
ASP.NET MVPhttp://www.markrae.net
Thanks for the input. My setup is similar to how you mention, except
I didn't realize I could include entire web forms in a class library.
I am a going to dabble with that now. Thanks!
On Apr 16, 11:43*am, "Mark Rae [MVP]" <m...@markNOSPA Mrae.netwrote:
"joe" <cole.m...@gmai l.comwrote in message
news:1c******** *************** ***********@e39 g2000hsf.google groups.com...
I have a seperate website so errors are displayed in a conistent way.
The processing is done in a class library, notification is sent, and
then the last step is redirecting to this page.
I realise *what* you're doing - I just don't understand *why*... :-) N.B.
I'm not saying that you are wrong or that your method is bad...
Can you give an example of how I could modify my class library to
display an error page that looked consistant across applications? *I
think maybe our lines of thinking are on a different page.
1) Create a new project called e.g. errors
2) Add a web page (e.g. error.aspx) which will display the error to the
user.
3) Add a public class which will handle your processing logic - include a
public method called e.g. ProcessError
4) Add the project to any solution which needs it - this is even easier if
you're using a source control solution e.g. Visual SourceSafe 2005...
5) In your code-behind, include standard try...catch and/or
try...catch...f inally exception handling which will call the ProcessError
method and, finally, Response.Redire ct to error.aspx which will display the
error to the user.
6) Add code in the "main" sites' Application_Err or method in Global.asax to
catch any unhandled exceptions.
--
Mark Rae
ASP.NET MVPhttp://www.markrae.net
Maybe I'm not understanding correctly - it sounds like you are
advising me to have two web projects in the same solution - one that
contains my error.aspx and ProcessError method, and another which is
my "main" project. Is this correct? If so, how am I supposed to
redirect from a form in one project to the error.aspx form in another?
"joe" <co*******@gmai l.comwrote in message
news:56******** *************** ***********@t12 g2000prg.google groups.com...
Maybe I'm not understanding correctly - it sounds like you are
advising me to have two web projects in the same solution - one that
contains my error.aspx and ProcessError method, and another which is
my "main" project. Is this correct? If so, how am I supposed to
redirect from a form in one project to the error.aspx form in another?
The second project is really just somewhere to store the error files...
With a source control such as Visual SourceSafe you simply drag the "shared"
files into whichever project needs them. That way, you can edit the shared
files in any of the projects in which they are used, and that will
automatically update them in all other projects in which they are used...
--
Mark Rae
ASP.NET MVP http://www.markrae.net
On Apr 16, 5:54*pm, "Mark Rae [MVP]" <m...@markNOSPA Mrae.netwrote:
"joe" <cole.m...@gmai l.comwrote in message
news:56******** *************** ***********@t12 g2000prg.google groups.com...
Maybe I'm not understanding correctly - it sounds like you are
advising me to have two web projects in the same solution - one that
contains my error.aspx and ProcessError method, and another which is
my "main" project. *Is this correct? *If so, how am I supposed to
redirect from a form in one project to the error.aspx form in another?
The second project is really just somewhere to store the error files...
With a source control such as Visual SourceSafe you simply drag the "shared"
files into whichever project needs them. That way, you can edit the shared
files in any of the projects in which they are used, and that will
automatically update them in all other projects in which they are used...
--
Mark Rae
ASP.NET MVPhttp://www.markrae.net
I see. Thank you for your advice! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Robert Cohen |
last post by:
Hi All,
I have what is an easy question for you all, but I have not idea (this
is in vbscript). I have this script below that works great. It figures out
the user logged in and gives the AD information about the user.
On another webpage, I have a staff directory which lists all the users.
What I would like to do is create a link on the staff directory that will
open up this information page with the user specified (instead of the logged...
|
by: Fawke101 |
last post by:
Hi there,
I have a ASP/SQL 7.0 Application and i have a page (page1.asp) that has 2
ways of accessing it.
1 is through a hyperlink on another page (page2.asp), that inserts a value
into a querystring and page1.asp output data from sql according to the
relevant value in the hyperlink =
***page2***
|
by: Vanessa |
last post by:
I have a question, is that any other way to retrieve data from another
webpage besides using XML object? Because I am using XML object now but give
me so much problems.
If I used MSXML2.ServerXMLHTTP object, it gives me time out error:
msxml3.dll error '80072ee2'
The operation timed out
If I used Microsoft.XMLHTTP object, it will hang IE!
|
by: Cantekin Guneser |
last post by:
in my project i ahave frame sets i want to main frame to direct a url
with query string when press a button that is at left frame vit java script
code
thanks in advance for ayn hepl or idea
|
by: Simon Harvey |
last post by:
Hi,
This is a very typical requirement so I'm sure the answer is very
straightforward.
If a user tries to get to a secure directory, they can be a sent to a login
page automatically. Once the user has been authenticated, a call to,
FormsAuthentication.RedirectFromLoginPage()
will send the user to the page he had been originally trying to reach.
| |
by: Marlon |
last post by:
I have a site that is now SSL secured.
User not still using the http:// to get to the site.
How can I redirect the user the the visited page using https:// ?
|
by: DonnyW |
last post by:
I am working on an application that displays a list of items (biglist.aspx).
With each item, there is a link that takes the user to another aspx page for
updating the specific details of that item (updatedetails.aspx). That page
has a button event that saves changes and then redirects back to the main
list.
Here's my issue -- the list page takes a parameter in the querystring. I
have set up anchor tags for each item within the list....
|
by: Greg Smalter |
last post by:
Redirecting from page to page within a web project is pretty easy. However,
all Redirect methods take strings as arguments, as if you mistype the string,
you don't find out until run time that you are redirecting to somewhere that
doesn't exist.
Worse, if you do type it correctly, but then later the page name changes or
the page moves, you still won't find out until run time.
I have a framework that solves this problem and guarantees,...
|
by: James Robertson |
last post by:
I am new to the ASP and VB thing so be kind. Question I have is that
I have created an ASPX web site to use as an E-Mail page. But I want
to use this for a lot of users. Can I create the link on the WEB site
to mail to passing a variable from the WEB site to the ASPX web site
to E-Mail to? Hope I explained this correctly.
This is a response from another group.
There was no way for you to know it, but this is a classic asp newsgroup....
|
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...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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...
|
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...
|
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...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |