We have service which is running on IIS app pool, for our scenario we started consuming a library (not owned by us), library has few dlls and some config and binary files which needs to be loaded during runtime. We are bin placing all dlls and dependent model files to web app bin folder. Found that during runtime due to shadow copy enabled, dlls are getting copied to C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files but not copying any of dependent config and model files which is causing issue at run time.
Anyone know how we can force dependency to also get copied or any other way to resolve this issue?
Checked other thread as well and suggestion was disable shadow copy using below settings but I want to avoid this.
<hostingEnvironment shadowCopyBinAssemblies="false" />