CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.personal_site_starter_kit Tags:
Item Type: NewsGroup Date Entered: 3/6/2007 8:48:17 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 42 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
snehalrana
Asp.Net User
Invalid Column name 'Category' Error message3/6/2007 8:48:17 PM

0/0

Hi Jeremy,

This question is for you. We are on Windows 2003 advanced server and SQL 2000 server.

We are getting this error message after upgrading to the latest version of the kit.

Invalid column name 'Category'.
Invalid column name 'Category'.

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 'Category'.
Invalid column name 'Category'.

Source Error:

Line 159:				connection.Open()
Line 160: Dim list As New Generic.List(Of Blog)()
Line 161: Using reader As SqlDataReader = command.ExecuteReader()
Line 162: Do While (reader.Read())
Line 163: Dim temp As New Blog(0, CStr(reader("Category")), "", "", "", Now(), 0, CStr(reader("EntryCount")))

Source File: C:\Domains\premrana.com\wwwroot\App_Code\BlogManager.vb    Line: 161

Stack Trace:

[SqlException (0x80131904): Invalid column name 'Category'.
Invalid column name 'Category'.]
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +857418
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +735030
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +188
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1838
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) +886
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.ExecuteReader() +84
BlogManager.GetBlogCategories() in C:\Domains\premrana.com\wwwroot\App_Code\BlogManager.vb:161

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +0
System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +72
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +296
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +29
System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod(ObjectDataSourceMethod method, Boolean disposeInstance, Object& instance) +482
System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +2040
System.Web.UI.WebControls.BaseDataList.GetData() +53
System.Web.UI.WebControls.DataList.CreateControlHierarchy(Boolean useDataSource) +284
System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e) +56
System.Web.UI.WebControls.BaseDataList.DataBind() +72
System.Web.UI.WebControls.BaseDataList.EnsureDataBound() +55
System.Web.UI.WebControls.BaseDataList.CreateChildControls() +63
System.Web.UI.Control.EnsureChildControls() +87
System.Web.UI.Control.PreRenderRecursiveInternal() +41
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1360
 

Any clue, hint, suggestions etc.

Looking forward to the response.

Thanks

Snehal Rana
 

jwadsworth
Asp.Net User
Re: Invalid Column name 'Category' Error message3/7/2007 4:10:37 AM

0/0

At present, there is no upgrade path for my kit. So if you download a newer version of my kit, it may not be compatible with databases from earlier versions of my kit. The error suggest that you are missing the Category field from the blog_Entry table.
Jeremy

Extended Personal Site Starter kit
snehalrana
Asp.Net User
Re: Invalid Column name 'Category' Error message3/7/2007 4:02:21 PM

0/0

Ok, I shall use the latest kit with SQL 2005 Express edition and will keep it that way. Infact, that is how it is right now and we are getting the Users doesnot have permission to perform this action error message.

Please let me know if there are any workarounds for this erorr or if there are any permissions that we are missing on that to make it run using SQL 2005 Express edition.

Thanks for your response

Snehal Rana 

3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Excel 2007 Advanced Report Development Authors: Timothy Zapawa, Pages: 542, Published: 2007
Oracle9i: The Complete Reference Authors: Kevin Loney, George Koch, TUSC (Firm), Pages: 1256, Published: 2002
Expert SQL Server 2005 Development Authors: Adam Machanic, Hugo Kornelis, Lara Rubbelke, Pages: 449, Published: 2007
Professional Team Foundation Server Authors: Jean-Luc David, Mickey Gousset, Erik Gunvaldson, Pages: 486, Published: 2006
Advanced SQL:1999: Understanding Object-relational and Other Advanced Features Authors: Jim Melton, Pages: 563, Published: 2002
Struts: The Complete Reference Authors: James Holmes, Pages: 800, Published: 2006
A Complete Guide to DB2 Universal Database: IBM's Object-relational Database System Authors: Donald Dean Chamberlin, Pages: 795, Published: 1998

Web:
Invalid Column name 'Category' Error message - ASP.NET Forums Re: Invalid Column name 'Category' Error message. 03-06-2007, 11:10 PM. Contact ... Re: Invalid Column name 'Category' Error message ...
"Commerce Server: Invalid column name 'Freetex'" Error Message ... "Commerce Server: Invalid column name 'Freetex'" Error Message When You Remove One ... Event Category: None Event ID: 4101 Computer: SERVERNAME Description: ...
[#MDL-9381] ORA error: 904 invalid column name on profile page ... There seems to be no loss of function...besides the error message... ORA-00904: Ungültiger Spaltenname (invalid column name) SELECT c. ...
Error while creating table under MSDE2000SP4 : invalid column ... Error Message: [Microsoft][ODBC SQL Server Driver][SQL ... Most likely you're attempting to create a table with invalid column names ...
MySQL Bugs: #1153: Mistaken sql-exception "Invalid column name" mysql 4.1.24 ERROR [Thread-4] (MySqlSystem.java:1331) - Invalid column name java .sql.SQLException: Invalid column name at sun.jdbc.rowset.CachedRowSet. ...
Having the error: "The process could not log conflict information ... Invalid column name 'create_time'. ms-sqlserver. ... FIX: Error message when you create a merge replication for tables that have ...
You may receive an "Invalid column name" error message in the ... You may receive an "Invalid column name" error message in the Event Log when you use ... Event Category: BizTalk Server 2004 Event ID: 5740 Date: 8/24/2004 ...
View Column Resolving Issue in Sub-Query - SQL Server Central Jan 2, 2008 ... Msg 207, Level 16, State 1, Line 1 Invalid column name 'sid' ... query as if the sub-query does not exist without giving any error messages. ...
Help w/ Invalid column name - ASP.NET Having trouble with a simple database command I keep getting the error invalid column name and I cant seem to figure it out. ...
SQLHacks - - How to understand error messages with MSSQL Aug 1, 2007 ... Msg 207, Level 16, State 1, Line 2 Invalid column name 'employees'. ... All MSSQL error messages have the same structure: ...

Videos:
www.moldytoaster.com e had set about deceiving himself otherwise. He admitted everything. There is a way of encountering error while on one's way to the truth. He had a v...




Search This Site:










impersonating system.net.systemnetworkcredential

web site admin tool gives error under security tab

aspx page shows blank screen in ssl

forms authentication

no access to new c# language features with beta 2 (vista home premium)

file upload maximum size?

dnn 2.1.2 error loading module

regular expression bugs caused by sp1?

interesting take on licensing, project forking, and cs

csss and a command button.

does gallery module work on firefox?

authentication ticket seems to stop internal redirects and links

hi new person with sql database linking problems here

core team: dnn 3.2 question...

integrating asp.net forms authentication with java jsp based website

website design issue

skinproblem, make the background black and text white

dnn and helm

filtering membership.getallusers for users in a role.

asp net 1.1 security problem

role expiration

search highlighting + httpmodule deployment

how do links work?

user authorization after authentication

freetextbox control on new_edit.aspx page

avcalendar 2.0

c# properties or not?

dotnetnuke 3.1.1 icons

retrieving username/userid

dotnetnuke 2.1.2 settings

 
All Times Are GMT