Application object error

Results 1 to 3 of 3

Thread: Application object error

  1. #1
    AllCriedOut Guest

    Default Application object error

    Hi there,<BR><BR>I have encountered an error in my program which says :<BR><BR>Disallowed object use <BR>Cannot add object with apartment model behaviour to the intrinsic object<BR><BR>And the statement that is causing the error is :<BR><BR>set application(".....") = server.createobject("scripting.dictionary")<BR><BR >I&#039ve been trying to figure out the problem for days! Can anyone help? You guys are my only hope...

  2. #2
    Join Date
    Dec 1969

    Default Follow this thread...<BR><BR><BR>HTH<BR><BR>Jer ry

  3. #3
    Matt Jacyno Guest

    Default RE: Application object error

    That&#039s the defined behavior. You can&#039t have an Apartment threaded object in the Application object. (and the dictionary is Apartment threaded, so...)<BR><BR>Without knowing what you want to do, I can&#039t really suggest a different approach. Regardless, it is bad bad bad to use Apartment threaded objects at anything but page scope. ASP just helps protect you by giving an error if you try it with the Application object.<BR><BR>Matt

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts