dnx - Calling ADODB COM object from ASP.NET 5 -
is possible call com objects asp.net 5/dnx.exe? i've referenced .net 4.5.1 object tries creating adodb connection, , fails following:
system.uri.formatexception: {"invalid uri: uri 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
based on post, http://talk.remobjects.com/t/net-aspnet-5-uriformatexception-when-creating-connectionmanager/7589/2, seems microsoft.dnx.host.clr.dll assembly has no codebase property, , uri path retrieved from. tried adding microsoft.dnx.host.clr.dll gac /r switch, force creation of 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 works!
edit:
i found problem in dnx source code root cause of issue. i've submitted pull request fix issue here: https://github.com/aspnet/dnx/pull/3338
Comments
Post a Comment