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

General question

Hello,
I have a website that is now a mixture of asp and aspx pages. The aspx
pages sort of hang off the main web site where they are all segregated into
their own directory. The aspx pages have a global.aspx page in this
directory where I have some session variables defined. Most of these
session variables are objects from classes. Of course, these session vars
are used throughout the aspx pages. This works great in the development
environment. The issue surfaces when I deploy this site. It seems that
none of the session variables are known, or have no value, I am receiving
the 'Object Reference of with block not set' error. I know asp and aspx
cannot share session state and I am not trying to share. Does anyone know
how to resolve this?

Thanks in advance,
Steven
Nov 19 '05 #1
2 1152
It sounds like your virtual directory structure on the dev machine is not
the same on your production machine. I'd confirm that the IIS settings are
the same on both machines.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Hello,
I have a website that is now a mixture of asp and aspx pages. The
aspx
pages sort of hang off the main web site where they are all segregated
into
their own directory. The aspx pages have a global.aspx page in this
directory where I have some session variables defined. Most of these
session variables are objects from classes. Of course, these session
vars are used throughout the aspx pages. This works great in the
development environment. The issue surfaces when I deploy this site.
It seems that none of the session variables are known, or have no
value, I am receiving the 'Object Reference of with block not set'
error. I know asp and aspx cannot share session state and I am not
trying to share. Does anyone know how to resolve this?

Thanks in advance,
Steven


Nov 19 '05 #2
Hi Steven,

The global.asax file and the web.config file should reside in the
application root.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Sometimes you eat the elephant.
Sometimes the elephant eats you.

"Steven" <no****@spam.com> wrote in message
news:Oi**************@TK2MSFTNGP10.phx.gbl...
Hello,
I have a website that is now a mixture of asp and aspx pages. The aspx
pages sort of hang off the main web site where they are all segregated
into
their own directory. The aspx pages have a global.aspx page in this
directory where I have some session variables defined. Most of these
session variables are objects from classes. Of course, these session vars
are used throughout the aspx pages. This works great in the development
environment. The issue surfaces when I deploy this site. It seems that
none of the session variables are known, or have no value, I am receiving
the 'Object Reference of with block not set' error. I know asp and aspx
cannot share session state and I am not trying to share. Does anyone know
how to resolve this?

Thanks in advance,
Steven

Nov 19 '05 #3

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

Similar topics

15
by: John Salerno | last post by:
After my last post, I thought of another question as a result of the following: ------------------------------ Mike Meyer wrote: > John Salerno <johnjsal@NOSPAMgmail.com> writes: > > >>So...
3
by: JezB | last post by:
What's the generally accepted approach for using Styles and Stylesheets in a web application based on .aspx files, Web Controls, User Controls, and code-behind modules (c# in my case)? Most style...
2
by: ZorpiedoMan | last post by:
I'm new to the world of sockets, and this question is not VB specific: If multiple clients access the same server on the same port, and the server is set up to do some async communication, does...
105
by: Christoph Zwerschke | last post by:
Sometimes I find myself stumbling over Python issues which have to do with what I perceive as a lack of orthogonality. For instance, I just wanted to use the index() method on a tuple which does...
1
by: Mark Fink | last post by:
Hi there, unfortunately I am new to Jython and my "Jython Essentials" book is still in the mail. I looked into the Jython API Doc but could not find the information. I am porting a Python...
0
by: Yong | last post by:
I'm not getting any reply to my previous thread so I'm stating a new one. I get a General Network Error due to my SqlCommand object not having a big enough CommandTimeout to complete very long...
4
by: Viviana Vc | last post by:
Hi all, I've read the WindowsVistaUACDevReqs.doc documentation and I have done different small tests on Vista to understand the bahaviour and now I have a few questions. 1) If I create a...
2
by: sharan | last post by:
Hello Friends I have a problem in Data Structure (In C) i want to emplement a General tree having three child nodes of each parent node ...please send me any simple Example( code) by which i can...
2
by: SpotNet | last post by:
Scott M. Have your experiences shown you that programmers may give the best computer advice, analysis, and solutions even at the worst of times, for a PC user? ;~D Haven't crossed many Network...
3
by: =?Utf-8?B?Ymxi?= | last post by:
I am posting to the general discussion group - but I cannot find my postings... or replies...
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
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.