Registration-Free COM from ASP.NET?

后端 未结 1 582
梦如初夏
梦如初夏 2020-12-21 17:11

Windows allows use of a COM object without having to register the COM dll.

The mechanism is to include a \"dependent assembly\" in the application\'s manife

相关标签:
1条回答
  • 2020-12-21 18:00

    Although I can't test it right now I am pretty sure that this works:

    IF the manifest for a DLL is external it will usually be ignored when the DLL is loaded via LoadLibrary (according to MSDN). IF the manifest is embedded into the DLL it is usually honored.

    Embed the manifest into the ASP.NET application (i.e. code-behind DLL) - for some ways on how to do this see here and here and here.

    UPDATE - as per comments:

    The above is a workaround as there is no general way to do this (isolation), at least the ASP.NET creators haven't intended this to be possible - for example the above workaround won't work in cases where the application does not compile to a DLL...

    0 讨论(0)
提交回复
热议问题