Q:

Calling ADODB COM object from ASP.NET 5

Is it possible to call COM objects from ASP.NET 5/dnx.exe?  I've referenced a .NET 4.5.1 object that itself tries creating an ADODB Connection, and it fails with the following:
System.URI.FormatException: {"Invalid URI: The URI is empty."}
Call Stack:
System.dll!System.Uri.CreateThis(string uri, bool dontEscape, System.UriKind uriKind)   Unknown
System.dll!System.Uri.Uri(string uriString) Unknown
System.dll!System.ComponentModel.Design.RuntimeLicenseContext.GetLocalPath(string fileName) Unknown
System.dll!System.ComponentModel.Design.RuntimeLicenseContext.GetSavedLicenseKey(System.Type type, System.Reflection.Assembly resourceAssembly) Unknown
System.dll!System.ComponentModel.LicenseManager.LicenseInteropHelper.GetCurrentContextInfo(ref int fDesignTime, ref System.IntPtr bstrKey, System.RuntimeTypeHandle rth)    Unknown

A:

Based on this post, http://talk.remobjects.com/t/net-aspnet-5-uriformatexception-when-creating-connectionmanager/7589/2, it seems that the Microsoft.Dnx.Host.Clr.dll assembly has no CodeBase property, and that is ultimately where the URI path is retrieved from.  I tried adding Microsoft.Dnx.Host.Clr.dll to the GAC with the /r switch, to force the creation of a CodeBase:
C:\gacutil /f /i "C:\Program Files\DNX\runtimes\dnx-clr-win-x86.1.0.0-rc1-update1\bin\Microsoft.Dnx.Host.Clr.dll" /r FILEPATH "C:\Program Files\DNX\runtimes\dnx-clr-win-x86.1.0.0-rc1-update1\bin\Microsoft.Dnx.Host.Clr.dll" "My App"
And it works!  
EDIT:
I found the problem in the DNX source code that is the root cause of the issue.  I've submitted a pull request to fix the issue here:  https://github.com/aspnet/dnx/pull/3338

