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

Request.UrlReferrer.ToString() returns a error

TJS
This code runs fine on my local machine but fails on the webhost server.
Any ideas why ???
Exception Details: System.NullReferenceException: Object reference not set
to an instance of an object.

Source Error:

Line 73:
Line 74: ' Store URL Referrer to return to portal
Line 75: ViewState("UrlReferrer") =
Request.UrlReferrer.ToString()
Line 76:

Source File: ..\DesktopModules\EditEvents.aspx Line: 75
Nov 19 '05 #1
1 3170
TJS
problem found.. firewall issue

"TJS" <no****@here.com> wrote in message
news:eW****************@TK2MSFTNGP10.phx.gbl...
This code runs fine on my local machine but fails on the webhost server.
Any ideas why ???
Exception Details: System.NullReferenceException: Object reference not set
to an instance of an object.

Source Error:

Line 73:
Line 74: ' Store URL Referrer to return to portal
Line 75: ViewState("UrlReferrer") =
Request.UrlReferrer.ToString()
Line 76:

Source File: ..\DesktopModules\EditEvents.aspx Line: 75

Nov 19 '05 #2

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

Similar topics

0
by: mews.microsoft.com | last post by:
My ASP.NET pages record the referal url for each current page into session. This is then being used by the cancel button to go back to the calling page. Page Navigation is achieved thru'...
3
by: Mike P | last post by:
I have a piece of code that relies quite heavily on using Request.UrlReferrer.ToString(). However, it seems that quite a few anti-virus software packages such as Norton throw an exception whenever...
7
by: Ivan Demkovitch | last post by:
Hi! Here is what I'm doing: I have Login.aspx with code to do forms authentification and I have this line at the end: Response.Redirect(Request.UrlReferrer.ToString()); I have other...
3
by: Oney | last post by:
I created two iss folder under my aspx project and I redirected each one of them to same aspx page by IIS that is test.aspx. on the page load of test.aspx I have to catch where the request come in!...
1
by: -=franz=- | last post by:
do you have any ideas why this code doesn't work? i have 2 pages in 2 different domains: a.html; b.aspx a.html (i make a redirect) _____ <script language='JavaScript1.2'> function...
7
by: Aaron Prohaska | last post by:
Has anyone had any experience with Nortan Antivirus causing problems when trying to use Request.UrlReferrer? I am seeing in the Nortan Antivirus log that its blocking my page from loading because...
0
by: Tony | last post by:
I'm trying to capture referrer information. the requests are the first lines of code in the page load sub. Request.UrlReferrer.tostring 'produces the name on of my site not the referrer...
0
AmirGhaffary
by: AmirGhaffary | last post by:
want to insert user Url into data base I work with ASP.NET and i used this code in Session_Start at Global.asax Dim Ref As String If Not Request.UrlReferrer Is Nothing Then ...
0
by: Michael Nemtsev [MVP] | last post by:
Hi, Does anybody have site under NLB Service? I wonder what Request.UrlReferrer returns in this case? I'm asking because today found that when clients put site under NLB all postbacks comes...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
0
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 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.