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

session won't work on same machine

I have a asp.net 1.1 website that works fine when I hit it from within
the lan remotely, but when I am on the same machine and hit it, it
seems that the app isn't able to use the session object.

For example, the machine's name is "backup". If I am on another
machine inside the subnet and go the the url http://backup/default.aspx
then it works fine. If however I try to hit the web page on that
machine, using either http//localhost/default.aspx or http://backup/default.aspx
then I get a .net error. The error is:

FormatException: Input string was not in a correct format.]
System.Number.ParseInt32(String s, NumberStyles style,
NumberFormatInfo info) +0

In other words it is a .net error and not a networking/connectivity
issue.

The app is compiled as a release binary so I am not 100% sure exactly
where the error is, but there is only one place in the page that
parses out out an int. And that is where it reads a value in from the
session object, so I am pretty sure that is the line that is failing.

Here is the session state part of my web config:

<sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data
source=127.0.0.1;Trusted_Connection=yes"
cookieless="false"
timeout="60"
/>

Anybody have any ideas on this? I could definitely use some help on
this one.
Jan 24 '08 #1
1 933
most likely cookies are disabled. as session can be cleared by a normal
recycle, your pages should always handle an empty session.
-- bruce (sqlwork.com)
"tony" wrote:
I have a asp.net 1.1 website that works fine when I hit it from within
the lan remotely, but when I am on the same machine and hit it, it
seems that the app isn't able to use the session object.

For example, the machine's name is "backup". If I am on another
machine inside the subnet and go the the url http://backup/default.aspx
then it works fine. If however I try to hit the web page on that
machine, using either http//localhost/default.aspx or http://backup/default.aspx
then I get a .net error. The error is:

FormatException: Input string was not in a correct format.]
System.Number.ParseInt32(String s, NumberStyles style,
NumberFormatInfo info) +0

In other words it is a .net error and not a networking/connectivity
issue.

The app is compiled as a release binary so I am not 100% sure exactly
where the error is, but there is only one place in the page that
parses out out an int. And that is where it reads a value in from the
session object, so I am pretty sure that is the line that is failing.

Here is the session state part of my web config:

<sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data
source=127.0.0.1;Trusted_Connection=yes"
cookieless="false"
timeout="60"
/>

Anybody have any ideas on this? I could definitely use some help on
this one.
Jan 24 '08 #2

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

Similar topics

1
by: Paul | last post by:
Hmmm, didn't seem to work. I have set session.use_cookies = 1 and session.use_trans_sid = 1 in my php.ini file. Index.php contains:...
15
by: | last post by:
Hi, I want to do things this way: I have a bunch of stuff that I want to keep track of while a user is connected to the site. Maybe 50 little peices of information. So I know I can make 50...
9
by: Pack Fan | last post by:
I've noticed that session variables will persist on Mac IE even after all browser windows have been closed. One must quit the program to clear the session variables. This presents a security risk...
3
by: Microsoft | last post by:
I am using Session variables in my ASP application. I have tested the application on a Win2k professional and it works fine. When the same web app is installed on a win2k advanced server from the...
9
by: Marcus | last post by:
Hello, Currently all of my php pages use SSL, not just my initial login. Originally I thought this would be more secure, but after thinking about things and looking at sites like Amazon and...
3
by: Karsten Grombach | last post by:
Hi, I'm trying the following: - Imitate a Logon using a Post with HttpWebRequest on remote Webserver (asp 3.0 page using https) - On success redirect to the page (encapsuled in an iframe)...
8
by: karahan celikel | last post by:
I realized that when SqlServer mode is used for session management Session_End event is not fired in global.asax. What can I do if I want to do something when a user's session end? Thanks
14
by: Schoo | last post by:
I have an asp.net app that uses session objects (ag. session("UserID")). The app works fine in development/debug mode. I released it to the test server (Windows 2000 server with other .NET...
9
by: Markus | last post by:
Hi In cases where I need to store the session id and/or the remote host in a database I used to choose tinytext fields so far. Anyway the usual values for session ids are of 32 characters...
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: 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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
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,...
0
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...
0
Oralloy
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,...
0
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...

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.