Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > VS.NET 2002/2003
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #11 (permalink)  
Old June 16th, 2004, 01:38 PM
Registered User
 
Join Date: Jun 2004
Location: , , USA.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am experiencing the same problem (session variables suddenly disappear) in an ASP.NET application. The odd thing is that I am doing development on my WinXP laptop and the session variables work fine (both for me and external users accessing the site). However, as soon as I move the application up to our staging server (a Win2003 box with IIS6), the missing session variables start happening. Another developer I know encountered a similar problem when moving from a Win2000/IIS5 server to Win2003/IIS6 so the problem appears to be related to Win2003 and IIS6.

As with the other posts, all session variables suddenly go away, often within seconds of being set. There is no consistency and it does not happen in the same place every time. Also, on some occasions, I have seen the session variables disappear for one page in the site and then re-appear for a different page (or even the same page) later on. Again, it does not seem to be tied to any specific page in the site. This happens with both Cookie and Cookieless session vars.

If anyone has more information or a solution to this problem, please post it.
Reply With Quote
  #12 (permalink)  
Old June 16th, 2004, 01:57 PM
Friend of Wrox
Points: 2,813, Level: 22
Points: 2,813, Level: 22 Points: 2,813, Level: 22 Points: 2,813, Level: 22
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Denver, CO, USA.
Posts: 427
Thanks: 57
Thanked 2 Times in 2 Posts
Default

My problem was encountered on Win2K running IIS 5.1. That's probably of no help except to point out to any listening higher powers this seems to occur on more than one platform combination.
Reply With Quote
  #13 (permalink)  
Old June 18th, 2004, 07:18 AM
Imar's Avatar
Wrox Author
Points: 71,804, Level: 100
Points: 71,804, Level: 100 Points: 71,804, Level: 100 Points: 71,804, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,050
Thanks: 80
Thanked 1,581 Times in 1,558 Posts
Default

I recently saw a KB article that described missing session variables in relation to "illegal characters" in the server's name.

What is the name of your server? Does it contain an underscore?

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Legs (Graham Massey Mix) by Art Of Noise (Track 9 from the album: The Fon Mixes) What's This?
Reply With Quote
  #14 (permalink)  
Old June 18th, 2004, 09:02 AM
Friend of Wrox
Points: 2,813, Level: 22
Points: 2,813, Level: 22 Points: 2,813, Level: 22 Points: 2,813, Level: 22
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Denver, CO, USA.
Posts: 427
Thanks: 57
Thanked 2 Times in 2 Posts
Default

All of our machines, both development and production, are less than 8 characters, alphanumeric only. The application subdirectory involved was similar. I was storing special characters like slashes (for dates), however, but I would hope session variables would be able to accept those.

I have recently upgraded to XP Pro and the next time I'm asked to write an ASP app, I may try using session variables again just to see if that fixes the problem. If so, I'll leave a note. But I'm not hopeful.
Reply With Quote
  #15 (permalink)  
Old June 21st, 2004, 04:49 AM
Authorized User
 
Join Date: May 2004
Location: , , .
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I had same problem as well before. The session was gone either after i open a connection to db or close it (i forgot which one).
then my friend moved my access db from bin directory to the root directory and miraculously it works!

Hope it helps


Reply With Quote
  #16 (permalink)  
Old June 21st, 2004, 04:56 AM
Imar's Avatar
Wrox Author
Points: 71,804, Level: 100
Points: 71,804, Level: 100 Points: 71,804, Level: 100 Points: 71,804, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,050
Thanks: 80
Thanked 1,581 Times in 1,558 Posts
Default

Hmmm, that seems reasonable to me. I think the .NET Framework monitors the Bin folder for changes. As soon as you change, say, the Web.Config file, the changes are picked up immediately because someone is watching that file, and restarts ASP when the file has changed.

I always thought it was monitoring individual files, but come to think of it, it makes a lot more sense if it is monitoring the entire folder. Since accessing the database will either change the database file, or generate a .lck inside that folder, a change is noticed, and the ASP.NET application is silently restarted.

I never ran into this because I do not store my database in the Bin folder, but in a /Databases folder instead, but storing it in the Bin folder can certainly cause session variables to get lost. Interesting....

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Bliss by Muse (Track 2 from the album: Origin of symmetry) What's This?
Reply With Quote
  #17 (permalink)  
Old June 21st, 2004, 08:10 AM
Friend of Wrox
Points: 2,813, Level: 22
Points: 2,813, Level: 22 Points: 2,813, Level: 22 Points: 2,813, Level: 22
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Denver, CO, USA.
Posts: 427
Thanks: 57
Thanked 2 Times in 2 Posts
Default

I wish that was the case, but in my instance the code is referencing a SQL Server database stored under its own subdirectory structure. Don't think IIS is looking for changes in SQL Server's folders, just its own.

I've not written any ASP apps against an Access database, either. So I don't know how that might factor in.

In a related question, though, I was under the impression Access couldn't handle large quantities of simultaneous users? A C/S system I worked on years ago experienced frequent corruptions that were attributed to too many users. Have folks had success with Access behind ASP applications or is the consensus that a larger 'server' based database is necessary to handle very large numbers of simultaneous connections?
Reply With Quote
  #18 (permalink)  
Old June 21st, 2004, 10:26 AM
Friend of Wrox
Points: 3,489, Level: 24
Points: 3,489, Level: 24 Points: 3,489, Level: 24 Points: 3,489, Level: 24
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Central, NJ, USA.
Posts: 1,102
Thanks: 0
Thanked 2 Times in 2 Posts
Default

I never use access for anything that would expect more than a few users at one time.. and only then when it will be primarially read-only.


Hal Levy
Web Developer, PDI Inc.

NOT a Wiley/Wrox Employee
Reply With Quote
  #19 (permalink)  
Old June 21st, 2004, 11:46 AM
Imar's Avatar
Wrox Author
Points: 71,804, Level: 100
Points: 71,804, Level: 100 Points: 71,804, Level: 100 Points: 71,804, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,050
Thanks: 80
Thanked 1,581 Times in 1,558 Posts
Default

Yeah, neither do I. The technical limit for an Access database is 255 concurrent users. However, in reality, you'll reach this limit much and much sooner.
I have seen a lot of sites / applications where the app came down to a grinding halt when the number of concurrent users got around 20 or so. But I have also seen sites that reach Access's limit with less and others with more users. It all depends on the scenario. A (mostly) read-only site can obviously handle more users than an on-line order entry system.

But just like Hal, I'd consider SQL Server for most "professional" scenarios.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: The Ideal Crash by dEUS (From the album: The Ideal Crash) What's This?
Reply With Quote
  #20 (permalink)  
Old June 21st, 2004, 10:57 PM
Authorized User
 
Join Date: May 2004
Location: , , .
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Default

what is sql server? how to use it?

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Session Variables Randomly Disappeared Dmitriy .NET Framework 1.x 1 November 30th, 2006 01:24 AM
Session Variables in C# shikha09 C# 1 November 28th, 2006 10:38 AM
Session Variables Randomly Disappeared Dmitriy General .NET 0 November 20th, 2006 08:42 AM
Is it possible for me using session variables into see07 ASP.NET 1.x and 2.0 Application Design 4 March 9th, 2005 07:46 PM
session variables help face Classic ASP Databases 4 September 12th, 2003 04:57 PM



All times are GMT -4. The time now is 10:29 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.