Specifying just the name of the file works fine on selfhost or IISExpress. When app is hosted in IIS, Config.json is being searched in the w3wp3.exe's folder path resulting in an exception. So fixing the path of Config.json by retrieving the application base path from AppDomain. |
||
|---|---|---|
| .. | ||
| Components | ||
| Content | ||
| Controllers | ||
| Images | ||
| Models | ||
| Scripts | ||
| ViewModels | ||
| Views | ||
| Config.json | ||
| CopyAspNetLoader.cmd | ||
| CustomHost.cmd | ||
| Helios.cmd | ||
| LKG.json | ||
| Program.cs | ||
| SelfHost.cmd | ||
| Startup.cs | ||
| favicon.ico | ||
| lkg.cmd | ||
| project.json | ||
| web.config | ||