What kind of error is this. When I try to run the default page i get this.
Server Error in '/omegalove' Application.
--------------------------------------------------------------------------------
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
SQLExpress database file auto-creation error:
The connection string specifies a local Sql Server Express instance using a database location within the applications App_Data directory. The provider attempted to automatically create the application services database because the provider determined that the database does not exist. The following configuration requirements are necessary to successfully check for existence of the application services database and automatically create the application services database:
If the applications App_Data directory does not already exist, the web server account must have read and write access to the applications directory. This is necessary because the web server account will automatically create the App_Data directory if it does not already exist.
If the applications App_Data directory already exists, the web server account only requires read and write access to the applications App_Data directory. This is necessary because the web server account will attempt to verify that the Sql Server Express database already exists within the applications App_Data directory. Revoking read access on the App_Data directory from the web server account will prevent the provider from correctly determining if the Sql Server Express database already exists. This will cause an error when the provider attempts to create a duplicate of an already existing database. Write access is required because the web server accounts credentials are used when creating the new database.
Sql Server Express must be installed on the machine.
The process identity for the web server account must have a local user profile. See the readme document for details on how to create a local user profile for both machine and domain accounts.
Here is the template.cs
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Template.master.cs" Inherits="Template" %>
<!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>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<!---------- Login box ---------------------------->
<div id="loginbox">
<asp:LoginView ID="LoginView1" runat="server">
<AnonymousTemplate>
<asp:Login ID="Login" runat="server" Width="100%" FailureAction="RedirectToLoginPage" meta:resourcekey="LoginResource1">
<LayoutTemplate>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="60px"><asp:Label runat="server" ID="lblUserName" AssociatedControlID="UserName" Text="Username:" meta:resourcekey="lblUserNameResource1" /></td>
<td><asp:TextBox id="UserName" runat="server" Width="95%" meta:resourcekey="UserNameResource2" /></td>
<td width="5px" align="right">
<asp:RequiredFieldValidator ID="valRequireUserName" runat="server" SetFocusOnError="True"
ControlToValidate="UserName" Text="*" ValidationGroup="Login" meta:resourcekey="valRequireUserNameResource1" />
</td>
</tr>
<tr>
<td><asp:Label runat="server" ID="lblPassword" AssociatedControlID="Password" Text="Password:" meta:resourcekey="lblPasswordResource1" /></td>
<td><asp:TextBox ID="Password" runat="server" TextMode="Password" Width="95%" meta:resourcekey="PasswordResource2" /></td>
<td width="5px" align="right">
<asp:RequiredFieldValidator ID="valRequirePassword" runat="server" SetFocusOnError="True"
ControlToValidate="Password" Text="*" ValidationGroup="Login" meta:resourcekey="valRequirePasswordResource1" />
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td><asp:CheckBox ID="RememberMe" runat="server" Text="Remember me" meta:resourcekey="RememberMeResource1"></asp:CheckBox></td>
<td align="right">
<asp:ImageButton ID="Submit" runat="server" AlternateText="Login"
CommandName="Login" ImageUrl="~/Members/images/buttons/login.gif" ValidationGroup="Login" meta:resourcekey="SubmitResource1" />
</td>
<td width="5px" align="right"> </td>
</tr>
</table>
<div style="border-top: solid 1px black; margin-top: 2px; padding-top: 2px">
<asp:HyperLink ID="lnkRegister" runat="server" NavigateUrl="~/Register.aspx" meta:resourcekey="lnkRegisterResource1">Create new account</asp:HyperLink><br />
<asp:HyperLink ID="lnkPasswordRecovery" runat="server" NavigateUrl="~/PasswordRecovery.aspx" meta:resourcekey="lnkPasswordRecoveryResource1">I forgot my password</asp:HyperLink>
</div>
</LayoutTemplate>
</asp:Login>
</AnonymousTemplate>
<LoggedInTemplate>
<!---------- Login box ---------------------------->
<div id="welcomebox">
<asp:LoginName ID="LoginName1" runat="server" FormatString="Hello {0}" meta:resourcekey="LoginName1Resource1" /><br />
<small>
<asp:HyperLink ID="lnkProfile" runat="server" Text="Edit Profile" NavigateUrl="~/EditProfile.aspx" meta:resourcekey="lnkProfileResource1" /><br />
<asp:LoginStatus ID="LoginStatus1" Runat="server" meta:resourcekey="LoginStatus1Resource1" />
</small>
</div>
</LoggedInTemplate>
</asp:LoginView>
</div>
<!---------- Login box ---------------------------->
<!---------- Sitemap ------------------>
<div id="breadcrumb">
<asp:SiteMapPath ID="SiteMapPath1" runat="server" meta:resourcekey="SiteMapPath1Resource1" />
<asp:WebPartManager ID="WebPartManager1" runat="server">
</asp:WebPartManager>
</div>
<!---------- Sitemap ------------------>
<!---------- Define Edit Zone ------------------>
<asp:EditorZone ID="EditorZone1" runat="server" Width="100%" meta:resourcekey="EditorZone1Resource1">
<ZoneTemplate>
<asp:AppearanceEditorPart ID="AppearanceEditorPart1" runat="server" meta:resourcekey="AppearanceEditorPart1Resource1" />
<asp:BehaviorEditorPart ID="BehaviorEditorPart1" runat="server" meta:resourcekey="BehaviorEditorPart1Resource1" />
<asp:LayoutEditorPart ID="LayoutEditorPart1" runat="server" meta:resourcekey="LayoutEditorPart1Resource1" />
<asp:PropertyGridEditorPart ID="PropertyGridEditorPart1" runat="server" Title="Custom Properties" meta:resourcekey="PropertyGridEditorPart1Resource1" />
</ZoneTemplate>
</asp:EditorZone>
<!---------- Define Edit Zone ------------------>
<!---------- Define Catalog Zone ------------------>
<asp:CatalogZone ID="CatalogZone1" runat="server" meta:resourcekey="CatalogZone1Resource1" >
<ZoneTemplate>
<asp:DeclarativeCatalogPart ID="DeclarativeCatalogPart1" runat="server" Title="Site Catalog" meta:resourcekey="DeclarativeCatalogPart1Resource1">
<WebPartsTemplate>
</WebPartsTemplate>
</asp:DeclarativeCatalogPart>
<asp:PageCatalogPart ID="PageCatalogPart1" runat="server" Title="Local Page Catalog" meta:resourcekey="PageCatalogPart1Resource1" />
</ZoneTemplate>
</asp:CatalogZone>
<!---------- Define Catalog Zone ------------------>
<!---------- Create Web Parts --------------------->
<div id="centercolcontent">
<div style="clear: both; margin-bottom: 5px;">
<asp:WebPartZone ID="CenterZoneTop" Runat="server" HeaderText="Center Zone Top" Width="100%" meta:resourcekey="CenterZoneTopResource1"></asp:WebPartZone>
<table border="0" cellpadding="2" cellspacing="0" width="100%">
<tr>
<td width="50%">
<asp:WebPartZone ID="CenterZoneTopLeft" Runat="server" HeaderText="Center Zone Top-Left" Width="100%" meta:resourcekey="CenterZoneTopLeftResource1"></asp:WebPartZone>
</td>
<td width="50%">
<asp:WebPartZone ID="CenterZoneTopRight" Runat="server" HeaderText="Center Zone Top-Right" Width="100%" meta:resourcekey="CenterZoneTopRightResource1"></asp:WebPartZone>
</td>
</tr>
</table>
</div>
<!---------- Create PlaceHolder for Main Content --------------------->
<asp:ContentPlaceHolder ID="MainContent" runat="server"></asp:ContentPlaceHolder>
<!---------- Create PlaceHolder for Main Content --------------------->
<div style="clear: both; margin-top: 5px;">
<asp:WebPartZone ID="CenterZoneBottom" Runat="server" HeaderText="Center Zone Bottom" Width="100%" meta:resourcekey="CenterZoneBottomResource1"></asp:WebPartZone>
<table border="0" cellpadding="2" cellspacing="0" width="100%">
<tr>
<td width="50%">
<asp:WebPartZone ID="CenterZoneBottomLeft" Runat="server" HeaderText="Center Zone Bottom-Left" Width="100%" meta:resourcekey="CenterZoneBottomLeftResource1"></asp:WebPartZone>
</td>
<td width="50%">
<asp:WebPartZone ID="CenterZoneBottomRight" Runat="server" HeaderText="Center Zone Bottom-Right" Width="100%" meta:resourcekey="CenterZoneBottomRightResource1"></asp:WebPartZone>
</td>
</tr>
</table>
</div>
</div>
<!---------- Create Web Parts --------------------->
</form>
</body>
</html>
Thank you!