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

Cookies on different servers

MRW
Hello!

I've put together a project on my local server which is running
perfectly. When I uploaded the code to my server, while it continues
to work perfectly for my computer, on any other computer I get an
error:

--

Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not
set to an instance of an object.

--

Which always points to a line of code that refers to a cookie which is
created when a person logs in.

It's strange since the login works perfectly. Only after, when the
cookie is referenced do I get this error, and it only happens on
computers other than my own.

Does anybody have any ideas?

Thanks for the help!

Nov 7 '07 #1
2 897
It's possible that when developing you created a cookie, then later added
something that actually used the cookie maybe converted to an integer. If
you were to clear your cookies you would probably get the same error. Try
checking for the existence of the cookie first, make sure it's not null
before any use of it.

If you upload your code maybe I could give you a better answer.

Regards,

Brian K. Williams

"MRW" <mw*****@yahoo.comwrote in message
news:11*********************@k79g2000hse.googlegro ups.com...
Hello!

I've put together a project on my local server which is running
perfectly. When I uploaded the code to my server, while it continues
to work perfectly for my computer, on any other computer I get an
error:

--

Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not
set to an instance of an object.

--

Which always points to a line of code that refers to a cookie which is
created when a person logs in.

It's strange since the login works perfectly. Only after, when the
cookie is referenced do I get this error, and it only happens on
computers other than my own.

Does anybody have any ideas?

Thanks for the help!

Nov 7 '07 #2
LVP
May be the setting on the other computer as cookies disabled.
"MRW" <mw*****@yahoo.comwrote in message
news:11*********************@k79g2000hse.googlegro ups.com...
Hello!

I've put together a project on my local server which is running
perfectly. When I uploaded the code to my server, while it continues
to work perfectly for my computer, on any other computer I get an
error:

--

Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not
set to an instance of an object.

--

Which always points to a line of code that refers to a cookie which is
created when a person logs in.

It's strange since the login works perfectly. Only after, when the
cookie is referenced do I get this error, and it only happens on
computers other than my own.

Does anybody have any ideas?

Thanks for the help!

Nov 7 '07 #3

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

Similar topics

1
by: windandwaves | last post by:
Hi Gurus I am basically sorry that I have to bother you about this. I am a PHP beginner and I have been studying sessions and cookies over the last few weeks. I have learned lots, but I am...
5
by: Hung Huynh | last post by:
Hello, I have 2 separate web sites on 2 different boxes www.xyz.com on box 1 www2.xyz.com on box 2 Users log into box 1 via regular ASP/Database authentication, and I keep a session...
2
by: Abdul Qadir Khan | last post by:
Hi, We have different web sites e.g www.abc.com, www.xyz.com I want to read cookies written by www.abc.com from www.xyz.com and vice versa. Please advise. Thanks AQ.
8
by: CDARS | last post by:
Hi all, I have a confusing question on ASP.NET cookies usage: 1> Response.Cookies("test").value = Now 2> Response.Write(Request.Cookies("test").value) 3> 4> Response.write("<hr>") 5>...
5
by: Martin Heuckeroth | last post by:
Hi We are working on a webservice application and are having some problems with the cookies and/or sessions. We have them working on our intranet but then its not working on the internet. We...
3
by: Mark | last post by:
I'm told that ram based cookies refer to session cookies (which the browser may still store on disk if it likes). These cookies that are destroyed when the bowser exits. If they are "session...
4
by: macro | last post by:
when I use HttpWebRequest with CookieContainer object that handles cookies, if I have this cookie header in a response: Set-Cookie: CookieName=; path=/;expires=01-Jan-1999 00:00:00 GMT the...
4
by: mizi | last post by:
I try to use ServerXMLHTTP object to get the session infomation from a remote webpage, but it always returns nothing. the follwoing is my code: *local.asp* url = "http://domain/remote.asp"...
2
by: jacksu | last post by:
I have one application in two servers, two servers returns the same cookie but with some elmenet in different order, Set-cookie: a=abc; Path=/; Domain=.abc.com; Secure another one is...
3
by: Ben Holness | last post by:
Hi all, I have a php/mysql website where people can upload their own graphics for the buttons and background of pages on the website. This used to run on one server, but I have now been asked...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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: 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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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.