473,385 Members | 2,015 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,385 software developers and data experts.

Application variable in Session_OnStart in global.asax.vb

Hi all,

I've got an weird problem with Application variables in Global.asax.vb.
I have three Application variables set up in Session_OnStart event and
I'm displaying the values of those variables in an .aspx page. It works
fine in the development server, but it only sets up the first
Application variable and I can only see the first variable value in the
same .aspx page in the live server.

** Development Server **
1. "First value"
2. "Second value"
3. "Third value"

** Live Server **
1. "First value"

I'm using the exactly same DLL in both servers and there is no
difference whatsoever.
Is it caused by a different server configuration between two servers?
Can a limitation on the number of Application variables be set up?

I have no idea what's going on here. Can anyone help me up with this
please?

Cheers,
Chan

Dec 18 '06 #1
2 2150
Post the code

--
Ciaran O''''Donnell
http://wannabedeveloper.spaces.live.com
"pa******@hotmail.com" wrote:
Hi all,

I've got an weird problem with Application variables in Global.asax.vb.
I have three Application variables set up in Session_OnStart event and
I'm displaying the values of those variables in an .aspx page. It works
fine in the development server, but it only sets up the first
Application variable and I can only see the first variable value in the
same .aspx page in the live server.

** Development Server **
1. "First value"
2. "Second value"
3. "Third value"

** Live Server **
1. "First value"

I'm using the exactly same DLL in both servers and there is no
difference whatsoever.
Is it caused by a different server configuration between two servers?
Can a limitation on the number of Application variables be set up?

I have no idea what's going on here. Can anyone help me up with this
please?

Cheers,
Chan

Dec 18 '06 #2
Hi again,

I've changed the code so it uses settings in Web.Config instead of
using Application variable, and it works now.

Thanks,
Chan

Dec 20 '06 #3

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

Similar topics

4
by: Me_Titus | last post by:
I would like to know if there is any kind of difference between an empty web project and an web application project other than all the files stucked toghether to the web application project. I am...
3
by: Craig | last post by:
In my global.asax file I have a variable in the application on start event called Application("FolderName"). On the development PC the variable is set as Application("FolderName") =...
7
by: weeerob | last post by:
Is there anyway to stop the application starting during the Application_Start event in the Global.asax.cs file? I want to check a license key at this point and not let the application start if it's...
1
by: Goober | last post by:
I converted a website that was done in ASP to dotnet, and brought over a number of items, some of which don't appear to work in the same way on dotnet as they did on ASP. One of them is an...
20
by: J-T | last post by:
We are working on an asp.net application which is a 3-tier application.I was aksed to create a component which monitors a folder and gets the file and pass them to a class library in our business...
8
by: Vishwanathan Raman | last post by:
Hi I have a declared a static DataSet object SOBJ in Global.asax.I also have a localy defined DataSet LSOBJ in Global.asax which I am storing in Application State.Is there any technical...
6
by: Chase | last post by:
I'm pretty new to asp.net and am having problems with my application timing out. I've written an application that loops through all of the information on an excel spreadsheet and does certain...
11
by: Marc | last post by:
Hello. Apologies if this is the wrong group. I have created a class called "page" which i would like to add to the global.asax and then call from any control within the website. I have currently...
13
by: michel | last post by:
Hi, i created a class 'test' with a method 'descrlimit()' (no matter). That method is used in a lot of pages in the application, so i need to put this code a lot of time: "Dim odescr As New...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
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.