0
이전에 Visual Studio에서 호스팅 된 http://localhost/
에 호스팅 된 웹 사이트에서 다음과 같은 문제가있었습니다. 나는 rool 폴더에 folder4라는 웹 사이트를 만들고 웹 사이트를 이동했습니다.웹 사이트가 로컬로 호스팅 된 잘못된 URL로 바뀝니다.
다음 오류가 발생했습니다.
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: <%@ Page Language="C#" MasterPageFile="/assets/masters/homepage.master" Title="Content Page 1" %>
Line 2:
Line 3: <asp:Content ContentPlaceHolderID="Extra_dNet_Code" Runat="Server">
Source File: /WebSite4/default.aspx Line: 1
는 그럼 난 ('~/자산/석사/homepage.master')를 다음에 위의 URL ('/assets/masters/homepage.master')를 변경했습니다. 는 그 후 나는 자바 스크립트와 CSS를하지 않고 사이트를 작업을 시작하지만
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: <%@ Master Language="C#" %>
Line 2: <%@ Register Src="/assets/stylesheets/css.ascx" TagName="css" TagPrefix="include" %>
Line 3: <%@ Register Src="/assets/javascripts/scripts.ascx" TagName="scripts" TagPrefix="include" %>
Line 4: <%@ Register Src="/assets/header/header.ascx" TagName="header" TagPrefix="include" %>
Source File: /WebSite4/assets/masters/homepage.master Line: 2
가 그럼 난
<%@ Register Src="~/assets/stylesheets/css.ascx" TagName="css" TagPrefix="include" %>
<%@ Register Src="~/assets/javascripts/scripts.ascx" TagName="scripts" TagPrefix="include" %>
<%@ Register Src="~/assets/header/header.ascx" TagName="header" TagPrefix="include" %>
다음에 위의 URL을 변경 다음과 같은 오류가 발생했습니다. 이미지를 클릭하면 웹 사이트가없는 URL을 따라 사이트가 항상 리디렉션됩니다 4. 뭔가를해야만 URL을 같은 유사한 링크 위
`http://localhost/assets/images/...`
는
http://localhost/website4/assets/images/...
해야 아니면 그냥 문제를 해결하는 방법 http://localhost.
로 리디렉션?
나는 대략 시도했다는 것을 언급했다. asp.net에서 기본 URL을 지정하는 anyconfiguation이 있습니까? – wordpressm
아니, 그때 당신의 솔루션에 뭔가 잘못 될 수 있습니다 중복 이름이있을 수 있습니다 –
난 asp.net에 처음이다 당신이 이것을 설명 할 수 있습니다. 그것을 고치는 방법? – wordpressm