IIS 6 ASP.NET 3.5 (C # .NET)
We are having a problem where the same set of files behaves differently depending on whether it is the IIS root site and the application on the IIS website. URLs created using ResolveUrl () are different - i.e.:
<a href="<%=ResolveUrl("~/contact.aspx") %>">Contact Us</a>
Both use the same files. The first example is his own website, the second is a virtual directory created in an application (called DSC). Both of them also use the same application pool and configuration, document and security settings (I made sure that all the settings in IIS were the same between them). A.
All that has been investigated indicates that ResolveUrl () refers to the IIS application that hosts the web page. I also read several places, even if the information is not complete in IIS (in this case, it is), the root site is considered an application. Therefore, he must create the corresponding web address, but is not.
Any help finding additional research to determine which settings / settings are not set properly or why ResolveUrl () is not programmatic.
source share