I'm trying to move an ASP.NET project made in Visual Studio 2013 on Windows 7 to IIS 6.0 on Windows Server 2008, and am having problems with navigation between pages.
In Visual Studio, I navigate from the Login page where the application starts to the Home page with this command:
Response.Redirect("~/Home.aspx");
which in Visual Studio correctly loads the Home.aspx file. But when I run this in IIS, the command instead tries to look for a Home folder, not a Home.aspx file, and therefore returns a 404 error unless I make a Home directory, which does not load the Home.aspx file even if I copy it to the directory.
What are possible reasons for this difference, and how can I get the application to run the Home.aspx page in IIS?