Asp.net 无法生成网站,生成时出现Visual Studio 2008错误(临时文件)
所有错误都发生在自动生成的文件上,而不是我创建的文件中。以下是其中一些:Asp.net 无法生成网站,生成时出现Visual Studio 2008错误(临时文件),asp.net,visual-studio-2008,build-process,Asp.net,Visual Studio 2008,Build Process,所有错误都发生在自动生成的文件上,而不是我创建的文件中。以下是其中一些: '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_cookie
'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" %>
更新:发现其中一个链接文件链接到另一个.aspx页面,导致加载了两个页面指令。您是否在母版页中添加了
指令?它应该只有一个
指令。否,我的母版页的标题是:
<%@ Master Language="VB" CodeFile="theMaster.master.vb" Inherits="theMaster" %>
母版页上没有
指令。你的评论让我思考,找到了解决方案。ThanksI最初考虑询问页面指令是否位于其他包含页面上。但如果您使用母版页,我假设您不包括其他页面。:)很高兴你找到了它。