2008-11-10 66 views
0

所有錯誤都在自動生成的文件上,而不在我創建的文件中。以下是他們的一些: 構建時無法構建網站,Visual Studio 2008錯誤(臨時文件)

'Context' is not a member of 'auth_cookies' 
'ProcessRequest' cannot be declared 'Overrides' because it does not override a sub in a base class 
'Server' is not a member of 'ASP.auth_cookies_aspx' 
Class 'auth_cookies_aspx' must implement 'Sub ProcessRequest(context As HttpContext)' for interface 'System.Web.IHttpHandler' 

任何幫助,將不勝感激。

編輯:發現這是要找的文件是不存在,固定的問題和消除所有的錯誤,除了一個:

Error-5: There can be only one 'page' directive. 
>> C:\Users\darren\Documents\Visual Studio 2008\WebSites\gs_ontheweb\auth\cookies.aspx 

這是cookies.aspx頁面的內容:

<%@ Page Language="VB" MasterPageFile="~/theMaster.master" AutoEventWireup="false" CodeFile="cookies.aspx.vb" Inherits="auth_cookies" title="NOM COOKIES" %> 

UPDATE:原來的鏈接文件之一有一個鏈接到另一個.aspx頁面,導致加載2個頁面指令。

回答

1

您是否在主頁面上放置了<%@Page%>指令?它應該只有一個<%@Master%>指令。

+0

你的評論讓我思考,找出解決方案。謝謝 – Anders 2008-11-10 16:28:17

0

不,我的母版的標題是:

<%@ Master Language="VB" CodeFile="theMaster.master.vb" Inherits="theMaster" %> 

沒有<%@Page%>指令的母版。