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

Posted on 2007-08-10
Medium Priority
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

PaulHews earned 1000 total points
ID: 19674014
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

Assisted Solution

epackwood earned 1000 total points
ID: 19680303
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:

Featured Post

Granular recovery for Microsoft Exchange

With Veeam Explorer for Microsoft Exchange you can choose the Exchange Servers and restore points you’re interested in, and Veeam Explorer will present the contents of those mailbox stores for browsing, searching and exporting.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

807 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