locked
The virtual path '...' maps to another application, which is not allowed. RRS feed

  • Question

  • User1872364149 posted

    Hi, when call localhost I have this error, why?
    Can you help me? Happy new year.

    Server Error in '/_aspx' Application.
    
    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 '/ver2/Login/Login.aspx.cs' maps to another application, which is not allowed.
    
    Source Error: 
    
    
    Line 1:  <%@ Page Language="C#" AutoEventWireup="true" CodeFile="/ver2/Login/Login.aspx.cs"
    Line 2:      Inherits="Login" %>
    Line 3:  
    
    Source File: /_Aspx/WebApplication1/ver2/Default.aspx    Line: 1 
    
    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

     

    Monday, December 31, 2012 1:13 PM

Answers

  • User-1716253493 posted
    try CodeFile="~/ver2/Login/Login.aspx.cs"
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, December 31, 2012 10:39 PM

All replies

  • User-1716253493 posted
    try CodeFile="~/ver2/Login/Login.aspx.cs"
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, December 31, 2012 10:39 PM
  • User1872364149 posted

    thank you and happy new year.

    This is the new error:

    Server Error in '/_aspx' Application.
    
    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 file '/_aspx/ver2/Login/Login.aspx.cs' does not exist.
    
    Source Error: 
    
    
    Line 1:  <%@ Page Language="C#" AutoEventWireup="true" CodeFile="~/ver2/Login/Login.aspx.cs"
    Line 2:      Inherits="Login" %>
    Line 3:  
    
    Source File: /_Aspx/WebApplication1/ver2/default.aspx    Line: 1 
    
    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272



    Tuesday, January 1, 2013 5:06 AM