Q: Toabsolute() retrieves correct path on development machine but not deployement server ToAbsolute() method retrieves the path correctly on the development machine but not on deployment. When I use ToAbolute(~/Login.aspx) returns path to specified location correctly. the same on the uploaded website returns just /login.aspx. what else am I missing here?

A: The difference between the two is your IIS settings for application path. Ensure that they both are set up with the same folder structure and you should be good from there.
In IIS, an Application can be added under a Site at a particular URL... In your local system it appears you've added your application under the /applicationname directory. On the remote server, it appears to be configured for root. Compare the two IIS instances side-by-side and note the differences.
