ActiveX component can't create object for  CreateObject("InternetExplorer.Application") using vb6 weblass

Posted on 2007-08-10
Last Modified: 2008-09-17
I have a web application "webclass" on VB 6.0  sp6
i get this error     ActiveX component can't create object
when i use this code
  Set web1 = CreateObject("InternetExplorer.Application")
all other object are created successfully ex ADO objects, but this particular Internet explorer object cannot be created
i tried to give permissions on component services to I_User account but still the same problem

if i try to debug it using localhost , it works fine, but for I_USR account it doesn't work
Question by:Nabilbahr
    LVL 38

    Accepted Solution

    Why are you trying to create an instance of internet explorer on the server?  The problem is that the webclass runs within the process of IIS, and does not support automation of programs with user interface elements.

    If you need to return web pages from remote sites to your web class, use something like WinInet functions to do that:

    Return the Contents of a Web Page Using WinInet API
    LVL 1

    Assisted Solution

    You are probably going to keep running into permissions issues when you are using the actual internet explorer object.  What I would recomend is to use the DHTML edit control or the more basic VB6 webbrowser control.  Don't be fooled by the DHTML edit control's name, it actually does a good job at displaying dynamic content as viewed on a webpage.

    More information on the DHTML editing control:

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Suggested Solutions

    Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
    Lync server 2013 Backup Service Error ID 4049 – After File Share Migration
    Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
    Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

    779 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

    14 Experts available now in Live!

    Get 1:1 Help Now