Problem with default.aspx after deploying to SQL05
I've deployed (successfully) to a server in our organization. My problem is that everything seems to work properly, except that the default.aspx page shows no content whatsoever in the middle column. It shows the polls in the left column, and the newsletter signup, etc in the right column. But the middle column is totally blank. I looked at the copy of that file I had downloaded into a separate directory, and it is identical to the one I have live. The page worked properly on my machine in VS2005 using localhost. Once it was deployed to a webserver, however, the default page won't show any data. Every other page will pull data and act like it's supposed to. What am I missing here?
The code for default.aspx is:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="MB.TheBeerHouse.UI._Default" Title="Team Hagerman" MasterPageFile="~/Template.master" %>
<%@ MasterType VirtualPath="~/Template.master" %>
The code for default.aspx.cs is:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
namespace MB.TheBeerHouse.UI
{
public partial class _Default : BasePage
{
protected void Page_Load(object sender, EventArgs e)
{
this.Master.EnablePersonalization = true;
}
}
}
My connection string is here:
<remove name="LocalSqlServer"/>
<add name="LocalSqlServer" connectionString="Data Source=localhost;Integrated Security=True;Initial Catalog=ASPNETDB;User ID=admin;Password=admin" providerName="System.Data.SqlClient"/>
|