Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.
Set objFunc = CreateObject("CSDemo.ComClass1")
...
I get the attached error. Why?
Start --> Run --> comexp.msc
Navigate to Console Root - Componet Services - Computers - My Computer - COM+ Applications.
Right click on 'COM+ Applications' and create New Application.
Follow the wizard carefully. Hit Next. Create an Empty Application. Name it (mycomapp1 for instance). Make sure Server application radio box is selected. Pick the user account based on the requirement. Hit Next. Next. Finish.
Now you have created a COM+ application named mycomapp1.
Now, you need to add individual COM components to it.
Expand mycomapp1 from the list. Right click on Components. Pick New Component.
Hit Next in the wizard. This next wizard screen is up to you. I would pick 'Install New components' if I haven’t run a regsvr32 or regasm on it. Pick the told or the dll (containing the tlb) file. And go ahead.. That’s how you do it.
and I don't know why on one Win 7 machine, I can call VBS script lineSet objFunc = CreateObject("CSDemo.ComClass1")
...
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.
From novice to tech pro — start learning today.
All we can do is help you learn how to diagnose the problem, since the answer to the question you are asking lies somewhere outside of the information you have provided us. Procmon is a tool that can trace the actions of your process in sufficient detail that you should be able to see where the permissions error arises.