Groups | Blog | Home
all groups > inetserver asp components > november 2003 >

inetserver asp components : object creation in global.asa


Nick
11/14/2003 6:37:48 AM
In the global.asa I am using the followng code to generae
a session wide variable:

<OBJECT ID="gobjEnquiry" RUNAT="Server" SCOPE="Session"
PROGID="TCWebComponents.clsEnquiry">
</OBJECT>

I should be able to access this on any asp page using:

gobjEnquiry.user

Having moved the site to a new server this now fails with
the object required error message being produced. All
components are registered on the server and are fully
accessable through interdev. If I create the object on
the actual asp page the object is created ok and is fully
usable. Why is my session object not being created? Any
Tom Kaminski [MVP]
11/14/2003 11:44:33 AM
[quoted text, click to view]

Is the root folder of your application set as an Application in the IIS MMC?

--
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserver2003/community/centers/iis/


Egbert Nierop (MVP for IIS)
12/27/2003 9:08:34 AM
[quoted text, click to view]

Is that a VB6 component? If yes, that's the reason. Officially, VB6
components can even not be stored as a reference at the application and IIS6
might enforce that rule.
You'd better create components that are not stored in the application or
session, create a component that serializes on a page base using a
propertybag (which is feasable with VB6 very well!)

[quoted text, click to view]
--
compatible web farm Session replacement for Asp and Asp.Net
http://www.nieropwebconsult.nl/asp_session_manager.htm
Derek Shaw
1/6/2004 10:29:48 AM
Nick,

Did you ever get a solution to this. I am having the exact same problem
creating an object as you were. The object standard COM object, this
works fine in IIS5 and if I create the object at aplication start rather
than with the <OBJECT> tag.

Just wondering what you ended up doing.

~derek.



*** Sent via Developersdex http://www.developersdex.com ***
AddThis Social Bookmark Button