close all objects before opening a page

Posted on 2008-11-10
Last Modified: 2012-05-05
I'm getting create object errors on my web server, but only on classic asp pages (the ones that are calling createobject).   We have no problem with our pages.  (They run on the same site.)

I read that one possible explanation is our objects aren't properly closed out or set nothing.  Can anyone first suggestion a way to see what objects might already be open before tryting to run the one on the page?   ie.  (but need syntax help) ..    response.write("<!--" & serverObjects.thatAreOpen & "-->")  
Question by:sl1nger
    LVL 7

    Expert Comment

    Could you post some of the code that is failing?
    Lack of cleaning up objects should not result in createobject failing as far as I know.

    What version Windows Server are you running?

    Author Comment

    windows server 2003 -

    dim fso
    set fso = server.CreateObject("Scripting.FileSystemObject")

    LVL 7

    Accepted Solution


    Author Comment

    I found out it was the security setting on the page.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    Introduction When many people think of the WebBrowser ( control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
    I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    This video discusses moving either the default database or any database to a new volume.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now