473,416 Members | 1,837 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

Cannot Create ActiveX object in IIS 6.0

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
9 18171
Anyhoo
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
Anyhoo
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
1,754 Expert 1GB
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
ninomk
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
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
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
Try to set Identity for the Application Pool to Local System, see if it works.
Feb 12 '08 #8
markrawlingson
346 Expert 100+
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
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

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

Similar topics

2
by: Cathy Thomas | last post by:
Has anyone run into this problem? An ASP page creates a command object that calls a stored procedure. This was working one day; next, it stopped. I am not in control of the various patches that get...
1
by: Zhou Jingxiong | last post by:
Hi I am using third party COM component which come with an installation program (.exe file included). The program will be register to registry automatically upon installation. There is no...
2
by: W. Broersen | last post by:
I want to use Outlook.Application, but I donot get further. Dim objOLApp As Outlook.Application objOLApp = CreateObject("Outlook.Application") Everytime I'll get the following error: Cannot...
3
by: Amadej Bukorovic | last post by:
I've been trying to write a simple program to remotely reboot a computer but with little success. It stops with this part of the code: Sub RebootComputer(ByVal strComp) Dim objOSSet, objOS...
4
by: Patrick | last post by:
I have a middle tier object that generates Excel spreadsheet here is the code moExcel = CreateObject("Excel.Application") moWorkBook = moExcel.Workbooks.Add moSheet =...
1
by: Rocio | last post by:
I have a windows app. written in VB6, now we need to expose some of its classes through a web service. I am only able to expose the classes using late binding becasue that's the way the original...
0
by: Verakso | last post by:
I have made a small interop function that uses Acrobat Distiller. It works smothly on all the XP machines, but when I try to run it on a Windows 2000,I get this error: System.Exception: Cannot...
2
by: ironmanlarry | last post by:
Hi, I'm trying to do a mail merge from Excel to Word (programatically) and I'm having some trouble creating the Word Document Object. This line of code wordDoc = GetObject("sheet.doc") keeps...
2
by: relasoft | last post by:
Hello guys, I have code that works fine in Windows Forms application: Dim objWMIService As Object objWMIService = GetObject("winmgmts: " _ & "{impersonationLevel=impersonate}!\\" &...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.