Cannot Create ActiveX object in IIS 6.0

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Anyhoo
    New Member
    • Nov 2006
    • 3

    Cannot Create ActiveX object in IIS 6.0

    Hello:

    We have an ActiveX DLL that we created in C++. We are calling it from vbscript at the top of an .asp page using the "CreateObje ct" command. The asp page interacts with the ActiveX DLL in various ways on the page. This has been working fine under Windows XP, but now we have a client who is wanting to move the client-side asp web page to the Windows 2003 server. They want for non-administrator users to be able to access their server over the internet and access this asp page.

    The problem is that if a non-administrator user attempts to access this page, the "CreateObje ct" command fails. I have tried various things to make this work, but to no avail. The thing is that this web server is used for various other things besides the asp page in question, and whatever solution is found for this cannot disable their normal security. What is needed is a way to allow this asp page to create an instance of this ActiveX DLL for a non-administrator user without interfering with normal Windows 2003 security. How can I do this? Any assistance you provide will be very helpful.
  • Anyhoo
    New Member
    • Nov 2006
    • 3

    #2
    Some more detailed information I can provide about this issue:

    Anonymous access is being used for the web site and the anonymous access account is a local administrator on the server PC. When I log in as a local administrator and access the site, the Active X control instantiates without issue. When I log in as a non-administrator user, the Active X control fails to instantiate.

    Comment

    • Anyhoo
      New Member
      • Nov 2006
      • 3

      #3
      More information:

      If logged in as a non-administrator, it appears that no vbscript code is executed at the top of the page. The first vbscript code that is executed is under the "OnPageLoad " event.

      When the CreateObject code is moved from the top of the page down to the "OnPageLoad " event, the error generated by it is: ActiveX component cannot create object.

      I strongly suspect that enhanced IIS 6 security is involved in both of these issues.

      Can anyone shed any light on this for me?

      Comment

      • sashi
        Recognized Expert Top Contributor
        • Jun 2006
        • 1749

        #4
        Originally posted by Anyhoo
        Hello:

        We have an ActiveX DLL that we created in C++. We are calling it from vbscript at the top of an .asp page using the "CreateObje ct" command. The asp page interacts with the ActiveX DLL in various ways on the page. This has been working fine under Windows XP, but now we have a client who is wanting to move the client-side asp web page to the Windows 2003 server. They want for non-administrator users to be able to access their server over the internet and access this asp page.

        The problem is that if a non-administrator user attempts to access this page, the "CreateObje ct" command fails. I have tried various things to make this work, but to no avail. The thing is that this web server is used for various other things besides the asp page in question, and whatever solution is found for this cannot disable their normal security. What is needed is a way to allow this asp page to create an instance of this ActiveX DLL for a non-administrator user without interfering with normal Windows 2003 security. How can I do this? Any assistance you provide will be very helpful.
        Hi there,

        Where is the file placed? Make sure proper folder permission is granted. Good luck & Take care.

        Comment

        • ninomk
          New Member
          • Apr 2007
          • 1

          #5
          Hello:

          Did you solve the problem with creating ActiveX control in IIS 6.0?
          I have the same problem using excel APIs. Everything run well in in IIS5.1.
          I also set the permissions in DCOM config, but the error is still present.

          Comment

          • SEAGRID
            New Member
            • Apr 2007
            • 1

            #6
            Well, having similar trouble, in my case I have a web service which uses a dll API. The web service implemented under Visual Studio 2005 works on debug mode but once it is deployed on IIS6.0 it doesn't work. the WS uses the dll API for creating a session with ClearQuest. The exception I get is: "Cannot create ActiveX component. at Microsoft.Visua lBasic.Interact ion.CreateObjec t(String ProgId, String ServerName)".

            Any Idea?

            Thanks

            Comment

            • priston
              New Member
              • May 2007
              • 5

              #7
              Hello,

              Have you found solution to your problem? If you have found the solution, please provide me the solution.I am also having same kind of problem.

              Thank you

              Comment

              • cmihaela
                New Member
                • Feb 2008
                • 2

                #8
                Try to set Identity for the Application Pool to Local System, see if it works.

                Comment

                • markrawlingson
                  Recognized Expert Contributor
                  • Aug 2007
                  • 346

                  #9
                  I'm not an expert on IIS by any means but I would suggest going into the directory security for the website in question and entering the administrator account username/password credentials for the website.

                  Right click the website in IIS --> properties --> directory security tab --> Press the "edit" button beside "authentica tion and access control" --> check "enable annonymous access" and fill in the username and password with an admin account's credentials --> pull up the web site on an off server computer and see if it works.

                  I would play around in there, would be your best bet I'd say as it sounds like you need to tell IIS to use an admin account for annonymous access.

                  Sincerely,
                  Mark

                  Comment

                  • dmcghee05
                    New Member
                    • May 2008
                    • 1

                    #10
                    Hopefully this thread hasn't died, but I'm getting this error as well.
                    My situation is as follows:
                    I developed a vb.net web app that performs a word mail merge. The app runs fine on my local machine which has IIS 5.1, XP Pro, and Office 2003. This app also runs fine from other developers' PCs. However, when deploying it to our windows server which has IIS 6.0 Office 2003 and is running Win Svr 2003 I get the error. I have tried chaning permissions in my DCOMCNFG to no avail. I have played around with the application pools and identity settings to no avail.

                    I have noticed when changing the identity to "Local System" in my applicaiton pool of IIS 6.0 the errors went away but instead my application hangs and the document never gets created. I've also noticed that a WINWORD process is started but that's about it.

                    Any help is good help at this point.
                    Dom

                    Comment

                    Working...