Is it possible to get the RDS.Dataspace object (VB6 COM) to work on Windows 10?
I have some code in an old vb6 app...
Set ds = CreateObject("RDS.DataSpace")
ds.InternetTimeout = 30000000
Set ComObj = ds.CreateObject("MyComName.MyClassMod", "\\127.0.0.1")
This works perfectly fine on both a Windows 7 machine as well as a Windows Server 2012 R2 machine. But for some reason when trying to run it on my development machine that is a Windows 10 machine I usually get one of the following errors on the last line...
Runtime error '4100': Method 'CreateObject' of object 'IDataspace' failed
or...
Runtime error '4100': Method '~' of object '~' failed
I have tried (but not limited to) things on the following list...
- Adding three dlls (msadcf.dll, msadcfr.dll, msadcs.dll) to the directory
C:\Program Files (x86)\Common Files\system\msadc\
because they did not exist. - Unregistering then registering the files from #1 using regsvr32.
- Adding two registry files found with those files (handler.reg, handsafe.reg) to the registry.
- Disabling DEP as much as possible.
- Disabling "Enforce access checks for this application" in Component Services. Found in the application properties area.
- Set the identify to my normal user account that is a Domain Admin, as well as tried to set the user to a new account I created with local admin rights.
- Have tried using "\127.0.0.1" without IIS running and tried "http://127.0.0.1" with IIS running.
- Beating my head on my desk.
- Adding the key (MyComName.MyClassMod) to
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC\Parameters\ADCLaunch\
key in the registry to register the COM object. - Using
Procmon.exe
to track down the issue. - Disabling Windows firewall.
- Checked event viewer for anything that would help.
I just can not make this old stuff work! Has anyone had any luck with COM objects on Windows 10? If so please tell me what am I doing wrong!
This question is not like the What does "Method '~' of object '~' failed" mean?
question. It is marked answered with an answer that will not solve this issue. I'm using the EXACT same dll, exe, ocx, etc files. This has to do with misconfiguration or something missing. I just don't know which one it is.