Why does AppDomain.CurrentDomain.GetAssemblies() not return dependant assemblies in Global.asax under certain conditions?

前端 未结 1 1607
-上瘾入骨i
-上瘾入骨i 2021-01-02 08:02

EDIT: This was previously entitled \"App Init behaviour different between IIS Restart and Application Initialisation\". I have changed the title to expand t

相关标签:
1条回答
  • 2021-01-02 08:39

    Well the post mentioned in my comment above led me in the right direction and then I found the answer on this post: Difference between AppDomain.GetAssemblies and BuildManager.GetReferencedAssemblies

    So my code was changed to var assemblies = BuildManager.GetReferencedAssemblies();

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