2008-11-10 65 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%>指令的母版。