Using SQL Server for BE in Change Set 8254 not working

Topics: ASP.NET 2.0
Dec 6, 2007 at 8:43 PM
I have Change Set 8254 and had also tried 8070 awhile back and I get the same error below.
The code seams to think there should be a description column in one of the tables.

I managed to track it down to the be_Categories table, adding a "Description" column varchar(max) to the table fixed the problem.

Thanks,

JefferyS


Server Error in '/BlogEngine.NET' Application.
Invalid column name 'description'.
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.

Exception Details: System.Data.SqlClient.SqlException: Invalid column name 'description'.

Source Error:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

<%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
<system.web>
<compilation debug="true"/>
</system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.

Stack Trace:

SqlException (0x80131904): Invalid column name 'description'.
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +925466
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +800118
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +186
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1932
System.Data.SqlClient.SqlDataReader.ConsumeMetaData() +31
System.Data.SqlClient.SqlDataReader.get_MetaData() +62
System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +297
System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +1005
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +132
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +32
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +122
System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) +12
System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) +7
System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +141
System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) +162
System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) +107
BlogEngine.Core.Providers.MSSQLBlogProvider.FillCategories() +280
BlogEngine.Core.Providers.BlogService.FillCategories() +52
BlogEngine.Core.Category.get_Categories() +125
BlogEngine.Core.Category.GetCategory(Guid id) +63
BlogEngine.Core.Providers.MSSQLBlogProvider.SelectPost(Guid id) +1357
BlogEngine.Core.Providers.BlogService.SelectPost(Guid id) +78
BlogEngine.Core.Post.DataSelect(Guid id) +69
BlogEngine.Core.Post.Load(Guid id) +98
BlogEngine.Core.Providers.MSSQLBlogProvider.FillPosts() +380
BlogEngine.Core.Providers.BlogService.FillPosts() +52
BlogEngine.Core.Post.get_Posts() +125
Controls.RecentPosts.BuildPostList() +129
Controls.RecentPosts..cctor() +98

TypeInitializationException: The type initializer for 'Controls.RecentPosts' threw an exception.
Controls.RecentPosts..ctor() +0
ASP.themescogitationsitemaster._BuildControlRecentPosts1() +59
ASP.themescogitationsitemaster._BuildControlform1() +530
ASP.themescogitationsitemaster._BuildControlTree(themescogitationsite_master __ctrl) +84
ASP.themescogitationsite_master.FrameworkInitialize() +68
System.Web.UI.UserControl.InitializeAsUserControlInternal() +31
System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +2028700
System.Web.UI.Page.get_Master() +48
System.Web.UI.Page.ApplyMasterPage() +18
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +685


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
Coordinator
Dec 6, 2007 at 9:41 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.