2

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.

user692942
  • 16,398
  • 7
  • 76
  • 175
Igor Be
  • 898
  • 7
  • 17
  • This maybe helpful - [Event ID 10009 — COM Remote Service Availability](http://technet.microsoft.com/en-us/library/cc774368(WS.10).aspx). – user692942 Oct 02 '14 at 09:24
  • 2
    Is the machine 64-bit? could it be a 32-bit vs 64-bit issue? – Simon Mourier Oct 03 '14 at 05:33
  • 1
    maybe this helps? Server.createobject (as used in classic asp) and wscript.createobject (as used in cscript) are completely different things: http://blogs.msdn.com/b/ericlippert/archive/2004/06/01/145686.aspx – ulluoink Oct 06 '14 at 08:54
  • one more link (from above blog): http://blogs.msdn.com/b/ericlippert/archive/2004/01/14/58700.aspx – ulluoink Oct 06 '14 at 08:55
  • ulluoink, thank you, this is very helpful one. The article states that context for transactions is created in ASP, and from comments I learned that problem is most likely in DTS - in my environment there are network security issues with distributed transations, we already encountered it in ADO SQL scenarios, seems like same issue. – Igor Be Oct 07 '14 at 11:26
  • possible duplicate of [Automation server can't create object](http://stackoverflow.com/questions/7080734/automation-server-cant-create-object) – Paul Sweatte Jul 01 '15 at 21:29
  • no, it's not duplicate it's specific case where server name is specified, and server name is treated differently in IIS environment and in WScript – Igor Be Jul 24 '15 at 12:28

0 Answers0