I made this page and keep on getting error on the same page and webconfig file.....

Errors

Error 1 'Culture' is not a member of 'ASP.emergency_plan_error_aspx'.
Error 2 'UICulture' is not a member of 'ASP.emergency_plan_error_aspx'.
Error 3 'InitializeCulture'is not a member of 'ASP.emergency_plan_error_aspx'.
Error 4 'CreateResourceBasedLiteralControl'is nt a member of'ASP.emergency_plan_error_aspx'.

CODE CODE coDE

CODE BEHIND ERROR.ASPX page:::::::::::::::

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Error.aspx.vb" Inherits="_Error" Culture="auto" meta:resourcekey="PageResource1" UICulture="auto" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Error</title>
    <link href="terms.css" rel="stylesheet" type="text/css"/>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <p align="center">&nbsp;</p>
			<p align="center">&nbsp;</p>
			<p align="center">&nbsp;</p>
			<p align="center">&nbsp;</p>
			<p align="center">&nbsp;</p>
			<p align="center"><font size="2" class="label" face="Verdana"><font color="#cc3300"><b>Session 
							Expired!</b></font><br/>
                Login <a href="Default.aspx" target="_top">again</a></font></p>
    </div>
    </form>
</body>
</html>

-------------------------------------------------------------

CODE BEHIND ::::ERROR.ASPX.VB

Partial Class _Error
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Session("userid") = ""
        Session("name") = ""
    End Sub
End Class

--------------------------------------------------------------------------------------
Errors

Error 1 'Culture' is not a member of 'ASP.emergency_plan_error_aspx'.
Error 2 'UICulture' is not a member of 'ASP.emergency_plan_error_aspx'.
Error 3 'InitializeCulture'is not a member of 'ASP.emergency_plan_error_aspx'.
Error 4 'CreateResourceBasedLiteralControl'is nt a member of'ASP.emergency_plan_error_aspx'.
Error 5 '_Error' is ambiguous.
--------------------------------------------------------
CAN ANYONE PLEASE SUGGEST WHAT THE PROBLEM IS

1) What's this "emergency_plan_error_aspx" ? is it your web page name ?
2) Also <%@Page%> directive page name in CodeBehind(Error.aspx.vb) and Inherits(_Error) are different.
3) in Inherits i believe you need to give full name of path with your namespace. (i.e. yournamespace.webpagename)
4) Frankly speking I haven't seen meta:resourcekey attribute/properties in Page directive. Is there any special requirement for this ?

I believe correct above and it will work for you..

I made this page and keep on getting error on the same page and webconfig file.....

Errors

Error 1 'Culture' is not a member of 'ASP.emergency_plan_error_aspx'.
Error 2 'UICulture' is not a member of 'ASP.emergency_plan_error_aspx'.
Error 3 'InitializeCulture'is not a member of 'ASP.emergency_plan_error_aspx'.
Error 4 'CreateResourceBasedLiteralControl'is nt a member of'ASP.emergency_plan_error_aspx'.

CODE CODE coDE

CODE BEHIND ERROR.ASPX page:::::::::::::::

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Error.aspx.vb" Inherits="_Error" Culture="auto" meta:resourcekey="PageResource1" UICulture="auto" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Error</title>
<link href="terms.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<form id="form1" runat="server">
<div>
<p align="center">&nbsp;</p>
<p align="center">&nbsp;</p>
<p align="center">&nbsp;</p>
<p align="center">&nbsp;</p>
<p align="center">&nbsp;</p>
<p align="center"><font size="2" class="label" face="Verdana"><font color="#cc3300"><b>Session
Expired!</b></font><br/>
Login <a href="Default.aspx" target="_top">again</a></font></p>
</div>
</form>
</body>
</html>


-------------------------------------------------------------

CODE BEHIND ::::ERROR.ASPX.VB
Partial Class _Error
Inherits System.Web.UI.Page

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Session("userid") = ""
Session("name") = ""
End Sub
End Class
--------------------------------------------------------------------------------------
Errors

Error 1 'Culture' is not a member of 'ASP.emergency_plan_error_aspx'.
Error 2 'UICulture' is not a member of 'ASP.emergency_plan_error_aspx'.
Error 3 'InitializeCulture'is not a member of 'ASP.emergency_plan_error_aspx'.
Error 4 'CreateResourceBasedLiteralControl'is nt a member of'ASP.emergency_plan_error_aspx'.
Error 5 '_Error' is ambiguous.
--------------------------------------------------------
CAN ANYONE PLEASE SUGGEST WHAT THE PROBLEM IS

1.emergency_plan_error_aspx is a page name
2.<%@Page%> directive page name in CodeBehind(Error.aspx.vb) and Inherits(_Error) are different. so i tried changing Inherits(_Error) to Inherits(Error).still no success.
3 what path with namespace should i give?
4.i deleted meta:resourcekey attribute/properties
then still the error is on this line """Partial Class _Error""

How code behind (Error.aspx.vb) is different than your page name (emergency_plan_error) ?
I think your CodeBehind should be (emergency_plan_error.aspx.vb) and Inherits (yournamespace.emergency_plan_error)..

Then first clean the whole solution then build the application and then run the application.

1.emergency_plan_error_aspx is a page name
2.<%@Page%> directive page name in CodeBehind(Error.aspx.vb) and Inherits(_Error) are different. so i tried changing Inherits(_Error) to Inherits(Error).still no success.
3 what path with namespace should i give?
4.i deleted meta:resourcekey attribute/properties
then still the error is on this line """Partial Class _Error""

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.