Note that there are some explanatory texts on larger screens.

plurals
  1. POweb site is redircting to wrong url hosted in locally
    primarykey
    data
    text
    <p>I was having the following issue with the web site I hosted on <code>http://localhost/</code> which was previously hosted on visual studio. I have created folder name website4 in the rool folder and move the website.</p> <p>Then I got following error.</p> <pre><code>Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: The virtual path '/assets/masters/homepage.master' maps to another application, which is not allowed. Source Error: Line 1: &lt;%@ Page Language="C#" MasterPageFile="/assets/masters/homepage.master" Title="Content Page 1" %&gt; Line 2: Line 3: &lt;asp:Content ContentPlaceHolderID="Extra_dNet_Code" Runat="Server"&gt; Source File: /WebSite4/default.aspx Line: 1 </code></pre> <p>Then I changed the above url ('/assets/masters/homepage.master') to following ('~/assets/masters/homepage.master'). After that I got the following error </p> <pre><code>Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: The virtual path '/assets/stylesheets/css.ascx' maps to another application, which is not allowed. Source Error: Line 1: &lt;%@ Master Language="C#" %&gt; Line 2: &lt;%@ Register Src="/assets/stylesheets/css.ascx" TagName="css" TagPrefix="include" %&gt; Line 3: &lt;%@ Register Src="/assets/javascripts/scripts.ascx" TagName="scripts" TagPrefix="include" %&gt; Line 4: &lt;%@ Register Src="/assets/header/header.ascx" TagName="header" TagPrefix="include" %&gt; Source File: /WebSite4/assets/masters/homepage.master Line: 2 </code></pre> <p>Then I changed the above url to following</p> <pre><code>&lt;%@ Register Src="~/assets/stylesheets/css.ascx" TagName="css" TagPrefix="include" %&gt; &lt;%@ Register Src="~/assets/javascripts/scripts.ascx" TagName="scripts" TagPrefix="include" %&gt; &lt;%@ Register Src="~/assets/header/header.ascx" TagName="header" TagPrefix="include" %&gt; </code></pre> <p>However it started to work the site without javascript and css. When I click images it always redirect the site following urls without website4. Somthing similar like this url</p> <pre><code>`http://localhost/assets/images/...` </code></pre> <p>Above link should be</p> <p><code>http://localhost/website4/assets/images/...</code></p> <p>Or it just redirect to <code>http://localhost.</code></p> <p>How to fix that issue?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload