Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5990239
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:12:54+00:00 2026-05-22T23:12:54+00:00

I have to create a page scope COM object in ASP for WIN CE

  • 0

I have to create a page scope COM object in ASP for WIN CE device. The Win CE device supports only httpd server.

I tried to create the com object with the statement Server.CreateObject to give it page scope. But I am getting the following error

Parse error in script 
Microsoft VBScript runtime error: '800a01b6' 
Description: Object doesn't support this property or method: 'Server.CreateObject' 
In file: /Polycold_WebGUI/PolyCold_system_home.asp 
On line: 13 

How can I correct this problems?
Can I give Page Scope for COM object in Win CE ASP?

Result
The method GetUnitModelNumber increments a member variable and returns the result. Initially the value is 0. Each time GetUnitModelNumber is executed the value will increment. As the default object life time is page scope, My expectation is that the second CreateObject call will return the object already created and the value will increment. But I am getting 0 when I executed the following piece of code. What is wrong with the following code?

Dim objAd1,man
 Set objAd1 = CreateObject("PolyColdDeviceCmds.SystemCmds")
 man1 = objAd1.GetUnitModelNumber()
 Set objAd1 = CreateObject("PolyColdDeviceCmds.SystemCmds")
 man2 = objAd1.GetUnitModelNumber()
 Response.Write(man2)
 Response.Write("<script language='javascript'> alert("""&man2&""");</script>")
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T23:12:54+00:00Added an answer on May 22, 2026 at 11:12 pm

    How can I correct these problems?

    As I mentioned here, you cannot use Server.CreateObject in asp-WinCE, you should use just CreateObject instead. Only MapPath and URLEncode are supported by the Server object in asp-WinCE. See this page in MSDN for details. From this page:

    The Server object provides access to
    methods and properties on the server.
    Most of these methods and properties
    serve as utility functions. The
    following table shows the supported
    server methods.

    Server method – Windows CE
    implementation

    ScriptTimeout: Not
    supported.
    CreateObject: Not
    supported.
    Execute: Not
    supported.
    GetLastError: Not
    supported.
    HTMLEncode: Not
    supported.
    MapPath: Fully
    supported.
    Transfer: Not
    supported.
    URLEncode: Fully
    supported.

    Can I give Page Scope for COM object in Win CE ASP?

    Page Scope is the default behaviour for any COM object created within an asp page. See this MSDN reference for details. From this page:

    An object that you create by using
    Server.CreateObject or the HTML
    tag on an ASP page exists for
    the duration of that page.

    This page talks about classic asp in Windows (desktop), not Windows CE. So for Windows CE just replace Server.CreateObject by CreateObject and you should get the same results.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have to create an asp.net page dynamically on runtime. It should work like
I'm creating a login page. I want to create ASP.NET TextBox controls that have
I have looked on FaceBook Developer page and found that it's possible to create
Just starting out in asp.net. Have just created a login.aspx page in my site
I'll have an ASP.net page that creates some Excel Sheets and sends them to
Note: This question has broadened in scope from previous revisions. I have tried to
I want to have two separate forms on a single create page and one
I have to create administration page of all scheduled jobs and triggers. How can
I have to create an HTML page which have more than one images. If
I have a problem when I create page with the script showing document.write(Text); text

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.