title: Can an assembly be executed or loaded within C#.NET COM component?
body: <p>I have a COM(written in .NET) which needs to create a an AppDomain and load/execute .NET assemblies in it. So that I could unload that appDomain later along with all loaded dll's. While working OK in normal(e.g. WinForms) .NET app, I get security exceptions if this code runs from within COM context. Assuming that the COM assembly is strongly named and placed in GAC it has a fulltrust policy. Can anyone explain if this is possible, and if not - why?</p>