I just copied Login.aspx and renamed it default.aspx, when I run it with F5 it works, after I publish it to IIS and type
http://localhost in IE I get the 500 error I posted previously and her is the code for both login.aspx and the copy I renamed default.aspx;
Login.aspx
Code:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Login.aspx.vb" Inherits="Login" %>
<!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>Login</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<br />
<br />
<br />
<center>
<fieldset style="height: 128px; width: 270px;">
<asp:Login ID="Login1" runat="server" DestinationPageUrl="~/ContentFiles/default.aspx">
</asp:Login>
</fieldset>
<br />
<br />
<fieldset style="height: 118px; width: 270px;">
<asp:PasswordRecovery ID="PasswordRecovery1" runat="server">
</asp:PasswordRecovery>
</fieldset>
</center>
</div>
</form>
</body>
</html>
Login.
vb
Code:
Partial Class Login
Inherits System.Web.UI.Page
End Class
Default.aspx
Code:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="Login" %>
<!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>Login</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<br />
<br />
<br />
<center>
<fieldset style="height: 128px; width: 270px;">
<asp:Login ID="Login1" runat="server" DestinationPageUrl="~/ContentFiles/default.aspx">
</asp:Login>
</fieldset>
<br />
<br />
<fieldset style="height: 118px; width: 270px;">
<asp:PasswordRecovery ID="PasswordRecovery1" runat="server">
</asp:PasswordRecovery>
</fieldset>
</center>
</div>
</form>
</body>
</html>
Default.
vb
Code:
Partial Class Login
Inherits System.Web.UI.Page
End Class
Email Error
Code:
Message
C:\FileShare\Release\Login.aspx(1): error BC30456: 'InitializeCulture' is not a member of 'ASP.login_aspx'.
StackTrace
at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert) at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) at System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Query String
Help....