2012-09-12 4 views
0

내 사이트를 새 서버로 마이그레이션 중이 었는데 .NET에 있었기 때문에 언어에 대한 많은 경험이 없습니다. 그러나 나는 그 수정을 찾으려고 노력했지만 성공하지 못했습니다. 누군가 도울 수 있습니까?웹 사이트를 새 서버로 마이그레이션하는 동안 ASP.Net 오류가 발생했습니다.

오류 :

compiler Error Message: ASPNET: Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl).

소스 오류 :

Line 1: <%@ Page Title="" Language="VB" MasterPageFile="~/EnjoyMaster2.master" AutoEventWireup="true" CodeFile="Default.aspx.vb" Inherits="_Default" %> 
Line 2: 
Line 3: <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> 
+0

코드 숨김 파일도 게시해야합니다. –

+1

bin 폴더도 이동 했습니까? – Shyju

+0

예이 서버의 bin 폴더 –

답변

0

: 상속 속성, codefile attribut, 네임 스페이스를, 당신은 여전히 ​​문제가 Web.config의 문제 (pageBaseType) 될 수 있습니다.

<configuration> 
<appSettings> 
    ... 
</appSettings> 
<connectionStrings/> 
<system.web> 
    <pages pageBaseType="System.Web.UI.Page" /> 
... 
관련 문제