473,805 Members | 2,001 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cannot Create ActiveX object in IIS 6.0

3 New Member
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 "CreateObje ct" 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 "CreateObje ct" 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 18194
Anyhoo
3 New Member
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 New Member
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 Recognized Expert Top Contributor
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 "CreateObje ct" 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 "CreateObje ct" 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 New Member
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
SEAGRID
1 New Member
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.Visua lBasic.Interact ion.CreateObjec t(String ProgId, String ServerName)".

Any Idea?

Thanks
Apr 11 '07 #6
priston
5 New Member
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
cmihaela
2 New Member
Try to set Identity for the Application Pool to Local System, see if it works.
Feb 12 '08 #8
markrawlingson
346 Recognized Expert Contributor
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 "authentica tion 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
dmcghee05
1 New Member
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
2674
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 applied to this machine, so yes, it is possible that new MS code was applied to it. The error is a 429, 'Cannot create ActiveX Component'. I can get the code to work if I turn on the IE option 'Initialize and script ActiveX controls not marked...
1
7689
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 problem calling the COM component from VB.net Module from DOS Command Prompt : Imports System
2
5586
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 create ActiveX component I set in the reference the COM from Outlook... Does someone know how to solve this problem????
3
6744
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 objOSSet = GetObject("winmgmts:{impersonationLevel=impersonate,(RemoteShutdown)}//" & strComp & "/root/cimv2").ExecQuery("select * from Win32_OperatingSystem where Primary=true")
4
3246
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 = moWorkBook.Worksheets(liSheetNum) moSheet.Delete() moSheet = moWorkBook.Worksheets(liSheetNum) moSheet.Delete()
1
15667
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 VB6 was written. I ahve already exposed some of the original classes, and they work fine. Now, I added a new ActiveX component to the windows app (in vb6). I am able to call it by late binding from within the vb6 app. itself, and from a dummy vbs...
0
1242
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 create ActiveX component. at Microsoft.VisualBasic.Interaction.CreateObject(String ProgId, String ServerName) at MediaBuilder.Utils.PDFCreator.PDFCreator.Main(String args) in C: \Visual Studio Projects\Utilities\PDFCreator\Main.cs:line 31
2
4095
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 returning the error "cannot create ActiveX component" and then the program crashes. Any help is much appreciated. Thank you. Larry
2
4048
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}!\\" & lcServerIP & "\root\cimv2") Same code crashes when I call it from Windows Service application doing the same thing. I run service under both Local System and my user name.
0
9716
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9596
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10604
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9179
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7644
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6874
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5536
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3839
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3006
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.