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

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
Who is Participating?
PaulHewsConnect With a Mentor Commented:
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
epackwoodConnect With a Mentor Commented:
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:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.