0
Visual Studio 10에서 프로젝트를 실행할 때 다음과 같은 오류가 계속 발생합니다. 다른 사람으로부터이 프로젝트를 받았으므로 확장해야합니다. 다른 컴퓨터에서 나온 경로 값과 관련이 있다고 확신합니다. 그러나 나는 그것을 어떻게하는지 모른다. 이전에는 작동했지만 새 사용자를 작성하여 데이터베이스에 연결하려고 시도한 다음이 작업이 시작되었습니다.파서 오류 메시지 : 'MYAPP.WebUI._Default'유형을로드 할 수 없습니다.
Server Error in '/' 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: Could not load type 'MYAPP.WebUI._Default'.
Source Error:
Line 1: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="MYAPP.WebUI._Default" %>
Line 2:
Line 3: <%-- Please do not delete this file. It is used to ensure that ASP.NET MVC is activated by IIS when a user makes a "/" request to the server. --%>
Source File: /Default.aspx Line: 1
하여 default.aspx.cs 파일 :
public partial class _Default : Page
{
public void Page_Load(object sender, System.EventArgs e)
{
// Change the current path so that the Routing handler can correctly interpret
// the request, then restore the original path so that the OutputCache module
// can correctly process the response (if caching is enabled).
string originalPath = Request.Path;
HttpContext.Current.RewritePath(Request.ApplicationPath, false);
IHttpHandler httpHandler = new MvcHttpHandler();
httpHandler.ProcessRequest(HttpContext.Current);
HttpContext.Current.RewritePath(originalPath, false);
}
}
이 도움을 주시기 바랍니다.