473,386 Members | 1,873 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.

**HELP** Desperate Session & Objects

I just installed WinXP Pro SP1. I installed IIS 5.1.

I have a project that was created in VB6 using webclasses
(yuck!). It will not run. Here is the problem:

If I do this:
Set Session("X")=new MyClass
Then do:
Debug.print isObject(Session("X"))

I get False...

If I do:
debug.print isObject(Session.contents("X"))
I get True.

The whole application is Session(x)=y or set obj1= Session
(q)

any thoughts?

Thanks in advance

specs:
winXP sp1
VB6 sp5
Jul 19 '05 #1
3 1620
Not that this is an answer, but you shouldn't be storing objects in session
or application variables anyway.
http://support.microsoft.com/?kbid=243543

Ray at home

"Kevin" <go******@yahoo.com> wrote in message
news:05****************************@phx.gbl...
I just installed WinXP Pro SP1. I installed IIS 5.1.

I have a project that was created in VB6 using webclasses
(yuck!). It will not run. Here is the problem:

If I do this:
Set Session("X")=new MyClass
Then do:
Debug.print isObject(Session("X"))

I get False...

If I do:
debug.print isObject(Session.contents("X"))
I get True.

The whole application is Session(x)=y or set obj1= Session
(q)

any thoughts?

Thanks in advance

specs:
winXP sp1
VB6 sp5

Jul 19 '05 #2
I totally understand...this project - or should I say
Disaster - is what I've been thrown onto.

Also, My machine at home has the same setup..XP Pro IIS 5.1

-----Original Message-----
Not that this is an answer, but you shouldn't be storing objects in sessionor application variables anyway.
http://support.microsoft.com/?kbid=243543

Ray at home

"Kevin" <go******@yahoo.com> wrote in message
news:05****************************@phx.gbl...
I just installed WinXP Pro SP1. I installed IIS 5.1.

I have a project that was created in VB6 using webclasses (yuck!). It will not run. Here is the problem:

If I do this:
Set Session("X")=new MyClass
Then do:
Debug.print isObject(Session("X"))

I get False...

If I do:
debug.print isObject(Session.contents("X"))
I get True.

The whole application is Session(x)=y or set obj1= Session (q)

any thoughts?

Thanks in advance

specs:
winXP sp1
VB6 sp5

.

Jul 19 '05 #3
Errm do a global find and replace across the web application for Session("
and change it to Session.Contents(" which is what you should be using
anyway. Relying on default methods and properties is dangerous (as you have
just found) since there is no guarantee that they won't change.

Chris.

"Kevin" <go******@yahoo.com> wrote in message
news:05****************************@phx.gbl...
I just installed WinXP Pro SP1. I installed IIS 5.1.

I have a project that was created in VB6 using webclasses
(yuck!). It will not run. Here is the problem:

If I do this:
Set Session("X")=new MyClass
Then do:
Debug.print isObject(Session("X"))

I get False...

If I do:
debug.print isObject(Session.contents("X"))
I get True.

The whole application is Session(x)=y or set obj1= Session
(q)

any thoughts?

Thanks in advance

specs:
winXP sp1
VB6 sp5

Jul 19 '05 #4

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

Similar topics

1
by: Gary W | last post by:
Hello, I have a page, thanks.asp which uses classic ASP VBSCRIPT & CDONTS to send mail, for example: <% Set bc = Server.CreateObject("MSWC.BrowserType") Set objMessage =...
2
by: John A Grandy | last post by:
for high traffic public websites , what are the proven options for session-state storage & management ? is an out-of-process state-server generally preferred over a sql-server ? what are the...
10
by: GreggTB | last post by:
I've got an page (LOGIN.ASPX) that receives the user's login information. During the page load, it checks the credentials against a database and, if validation is successful, creates an instance of...
2
by: Dave | last post by:
I have an application running on a 3 server webfarm running Windows 2003 with SQLServer Session state. After running for several hours, I started getting the following error. When I access each...
5
by: Bobstar | last post by:
Hello. In the good ol'ASP-days I allways handled all request vars within a class. I want to do the same in ASP.NET. It can be done smart and maybe not so smart - and I need help for the first...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
2
by: StevenChiasson | last post by:
For the record, not a student, just someone attempting to learn C++. Anyway, the problem I'm having right now is the member function detAddress, of object controller. This is more or less, your...
1
by: =?ISO-8859-1?Q?Lasse_V=E5gs=E6ther_Karlsen?= | last post by:
I get the above error in some of the ASP.NET web applications on a server, and I need some help figuring out how to deal with it. This is a rather long post, and I hope I have enough details that...
3
by: jambonjamasb | last post by:
Hi I have two tables: email_tbl Data_table Data table is is used to create a Form Data_form
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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
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.