Error in my global.asa file! 
Author Message
 Error in my global.asa file!

Hi all,can any body help here?

Get this error when trying to access my asp page
*************************
Application object error 'ASP 0197 : 80004005'

Disallowed object use

//global.asa, line 8

Cannot add object with apartment model behavior to the application
intrinsic object.
*************************

I have no idea what this means!!!!!

global.asa
-------------------------------------------------------------------------------------------------
 1:<SCRIPT LANGUAGE=VBScript RUNAT=Server>
 2:Sub Application_OnStart
 3:  Application.Lock
 4:     Application("RPR") = 10
 5:     Application("MaxPSize") = 50000
 6:     Application("MaxVSize") = 1000000
 7:     Application("LMDatabase") = "SERVER=websqlserver;DRIVER={SQL
Server};DATABASE=website;UID=sa;pwd="
 8:     set Application("users") =
server.CreateObject("Scripting.Dictionary")
 9:  Application.UnLock
10:End Sub
11:
12:Sub Session_OnEnd
13:     if Application("users").Exists(Session.SessionID) then
14:             Application.lock
15:             Application("users").Remove(Session.SessionID)
16:             Application.unlock
17:     end if  
18:End Sub
19:
20:</SCRIPT>
-------------------------------------------------------------------------------------------------

Server info:NT 4(SP 6) and IIS 4



Sun, 13 Oct 2002 03:00:00 GMT  
 Error in my global.asa file!
Found this on ms site
http://support.microsoft.com/support/kb/articles/Q194/3/97.ASP
and
http://support.microsoft.com/support/kb/articles/Q194/8/03.ASP

What now!, i wrote this nice little user tracker accross my site but, it
looks
like am not going to track them after all!

Quote:

> Hi all,can any body help here?

> Get this error when trying to access my asp page
> *************************
> Application object error 'ASP 0197 : 80004005'

> Disallowed object use

> //global.asa, line 8

> Cannot add object with apartment model behavior to the application
> intrinsic object.
> *************************

> I have no idea what this means!!!!!

> global.asa
> -------------------------------------------------------------------------------------------------
>  1:<SCRIPT LANGUAGE=VBScript RUNAT=Server>
>  2:Sub Application_OnStart
>  3:  Application.Lock
>  4:     Application("RPR") = 10
>  5:     Application("MaxPSize") = 50000
>  6:     Application("MaxVSize") = 1000000
>  7:     Application("LMDatabase") = "SERVER=websqlserver;DRIVER={SQL
> Server};DATABASE=website;UID=sa;pwd="
>  8:     set Application("users") =
> server.CreateObject("Scripting.Dictionary")
>  9:  Application.UnLock
> 10:End Sub
> 11:
> 12:Sub Session_OnEnd
> 13:     if Application("users").Exists(Session.SessionID) then
> 14:             Application.lock
> 15:             Application("users").Remove(Session.SessionID)
> 16:             Application.unlock
> 17:     end if
> 18:End Sub
> 19:
> 20:</SCRIPT>
> -------------------------------------------------------------------------------------------------

> Server info:NT 4(SP 6) and IIS 4



Sun, 13 Oct 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. include files in global.asa file?

2. Issuing error messages from global.asa

3. global.asa ERROR

4. global.asa and global.asax ?

5. Global.asa Include files

6. Global.asa file

7. newbie question (Global.ASA file)

8. Using Global.asa File for Password Protection

9. Known bug with Session_OnEnd method in Global.asa file

10. Deleting a file via Global.asa when session ends

11. Global.asa Include files

12. Location of global.asa file?

 

 
Powered by phpBB® Forum Software