In my ASP.NET 4 website most of source paths/references look like ~/Controls/etc..
When I transfer site to server ~/ starts to point to the root of my domain rather then to the folder where site is located hence all those paths become invalid.
How to fix this in one go without fixing references one by one?
is there something in web.config where I can set application path?
The
~character is used to base paths from the application root, in this case, the root of your domain. What you can do, in IIS, is convert the subfolder to an application (essentially an application within an application), and this will force ASP.NET to use your subfolder as the root of the application.