Error Message When Creating a New ActiveX Class

Question:
I’m running Windows NT 4.0 (Service Pack 3) and have developed an ActiveX Server (EXE) using Visual Basic 6 (Service Pack 3). How come whenever I try to create a new instance of a class within this EXE file, I get this error message: “Permission Denied, ActiveX component can’t create object”?

When I check the event log, I see:

 Can't start DCOM-server: Error: "Permission Denied. "Happened at startup of the following command: myserver.exe -Embedding 

When I run my EXE and try to create an instance of a class it works just fine. Also, when I set it up to be created remote it works just fine. But as soon as I set it up to run locally I get these error messages.

I have played with DCOMCNFG.EXE and tried many of the combinations, but with no results.I recently used Windows 98 and had no such problems. My guess is that it has something to do with security, or lack of permissions.

Answer:
There are a couple of reasons why you could be getting the error. You could actually lack permissions to write the EXE (it’s unlikely, but you can check quickly by right-clicking on the file in NT Explorer, selecting the Properties menu item, and then the Security tab).

You could also be getting the error because the EXE is read-only. This can happen when Visual SourceSafe gets confused. Again, you can quickly check it via the same method above, only look for the Read-Only checkbox on the General tab.

The most likely reason why you get the error is that you have a copy of the EXE running, and Windows NT (correctly) won’t allow you to overwrite a running program. (Windows 95/98, on the other hand, lets you shoot yourself in the foot with great gusto.)

To check this possibility, simply start Task Manger (right-click on a blank area of the task bar and pick Task Manager, or hit Ctrl-Alt-Del and select Task Manager there). Look through the list of tasks and close the running copy of your ActiveX EXE.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

The Latest

homes in the real estate industry

Exploring the Latest Tech Trends Impacting the Real Estate Industry

The real estate industry is changing thanks to the newest technological advancements. These new developments — from blockchain and AI to virtual reality and 3D printing — are poised to change how we buy and sell homes. Real estate brokers, buyers, sellers, wholesale real estate professionals, fix and flippers, and beyond may

man on floor with data

DevX Quick Guide to Data Ingestion

One of the biggest trends of the 21st century is the massive surge in internet usage. With major innovations such as smart technology, social media, and online shopping sites, the internet has become an essential part of everyday life for a large portion of the population. Due to this internet

payment via phone

7 Ways Technology Has Changed Traditional Payments

In today’s digital world, technology has changed how we make payments. From contactless cards to mobile wallets, it’s now easier to pay for goods and services without carrying cash or using a checkbook. This article will look at seven of the most significant ways technology has transformed traditional payment methods.