I have Classic ASP vbs code that executes following:
CreateObject("MyCom.Type.1", serverName)
and it fails with
The remote server machine does not exist or is unavailable: 'CreateObject'.
Also I tried calling following code from .NET interop lib thus:
Activator.CreateInstance(Type.GetTypeFromCLSID(guid, computerName, true))
and it resulted in
DCOM was unable to communicate with the computer x.x.x.x using any of the configured protocols
in the eventlog.
I also tried jscript in my classic ASP app that goes like:
GetObject("MyCom.Type.1", serverName)
And it resulted in "Automation server can't create object"
Although when i call vbs code from test.vbs using cscript.exe or wscript.exe, it works fine! IIS pool works under my own identity, same I used for calling cscript. Also i .NET I noticed that the type returns fine, it fails on creating instance of one.
I suspect it has something to do with some esoteric settings of COM/DCOM. Please help, that vbs execution tells me this should be possible from under w3wp too
One more thing - server machine is Windows Server 2003.