By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,245 Members | 1,103 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,245 IT Pros & Developers. It's quick & easy.

Cannot Create ActiveX object in IIS 6.0

P: 3
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 "CreateObject" 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 "CreateObject" 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.
Nov 21 '06 #1
Share this Question
Share on Google+
9 Replies


P: 3
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.
Nov 21 '06 #2

P: 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?
Nov 22 '06 #3

sashi
Expert 100+
P: 1,754
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 "CreateObject" 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 "CreateObject" 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.
Nov 27 '06 #4

P: 1
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.
Apr 6 '07 #5

P: 1
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.VisualBasic.Interaction.CreateObject(Str ing ProgId, String ServerName)".

Any Idea?

Thanks
Apr 11 '07 #6

P: 5
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
Jun 7 '07 #7

P: 2
Try to set Identity for the Application Pool to Local System, see if it works.
Feb 12 '08 #8

markrawlingson
Expert 100+
P: 346
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 "authentication 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
Feb 12 '08 #9

P: 1
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
May 8 '08 #10

Post your reply

Sign in to post your reply or Sign up for a free account.