Get Absolute URL – Web Application

Getting fully qualified absolute path of ASP.NET application is always tricky and problem arises when code moves across various platform. Hard coding the Application Path is no where a good solution here. The URL syntax is: scheme://domain:port/path?query_string#fragment_id Two solutions that you can look for in such scenarios: 1. Add an entry in your web.config file …