Get SvcHost assembly location (path) using SvcImplementation assembly
问题 I have windows 8.1 x64, Visual Studio 2012 x86, IIS 8.5. I have Wcf Service Host project (contains svc file) <%@ ServiceHost Language="C#" Debug="true" Service="WcfServiceImplementation.MyService" %> I have Wcf Service implementation project. Wcf Service hosted in IIS I have 2 assemblies: WcfService.Host.dll and WcfServiceImplementation.dll This code in WcfServiceImplementation.dll: 1) Assembly.GetEntryAssembly() gets null. 2) Assembly.GetExecutingAssembly() gets WcfServiceImplementation. 3)