Id VS ID

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
9/13/2010 11:58:23 AM
Gravatar
Total Posts 18

Id VS ID

Hi, collegues.

OS: Win Server (hosting)

DB: MSSQLServer2005

Version mojo: "mojoportal-2-3-5-1-mssql-net35-deploymentfiles"

There is (already was) a site with the latest version mojo under ASP.NET 2.0.
Created:
1 On the hosting included support ASP.NET 3.5
2. I uploaded the latest version mojo
3. Launched /Setup/Default.aspx

The result:

MSSQL database connection ok.
database permissions are sufficient to alter schema.
database initial schema already exists.
database core schema needs upgrade.
1 site(s) found.
Running script mojoportal-core - 2.2.8.0 - 00:00:00.7968750
Running script mojoportal-core - 2.2.8.1 - 00:00:00.8750000
Running script mojoportal-core - 2.2.8.2 - 00:00:00.8750000
System.Data.SqlClient.SqlException: Invalid column name 'SiteId'. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at mojoPortal.Data.SqlHelper.ExecuteNonQuery(SqlTransaction transaction, CommandType commandType, String commandText, SqlParameter[] commandParameters) at mojoPortal.Data.DBPortal.DatabaseHelperRunScript(String script, String overrideConnectionInfo) at mojoPortal.Data.DBPortal.DatabaseHelperRunScript(FileInfo scriptFile, String overrideConnectionInfo) at mojoPortal.Business.DatabaseHelper.RunScript(Guid applicationId, FileInfo scriptFile, String overrideConnectionInfo) - 00:00:00.9062500
Note: This page shows some information that is helpful during setup and upgrades but for security it would be best not to show any information when the system is up to date. You can disable setup and suppress all information on this page by setting DisableSetup=true in Web.config. When you need to upgrade, you can set this back to false. If you are logged in as Administrator setup will run and you will be able to see this page even if it is disabled in Web.config so you can easily leave it disabled and just login before upgrading. But if you are not logged in you will need to enable setup in Web.config.

I remember that before I encountered this error. And I corrected it by changing the script in the "Id" to "ID". I do not know why sqlserver not like it.
You can do this in all scripts?
If necessary, I can write about all these errors as corrected.

9/13/2010 5:13:21 PM
Gravatar
Total Posts 18

Re: Id VS ID

In "...\mojoportal-2-3-5-1-mssql-net35-deploymentfiles\wwwroot\Setup\applications\mojoportal-core\SchemaUpgradeScripts\mssql\2.2.8.2.config"

AND m.SiteID=@SiteID

In "...\mojoportal-2-3-5-1-mssql-net35-deploymentfiles\wwwroot\Setup\applications\mojoportal-core\SchemaUpgradeScripts\mssql\2.2.9.8.config"

AND m.SiteID=@SiteID

In "...\mojoportal-2-3-5-1-mssql-net35-deploymentfiles\wwwroot\Setup\applications\mojoportal-core\SchemaUpgradeScripts\mssql\2.3.2.1.config"

DefaultPageKeyWords

In "...\mojoportal-2-3-5-1-mssql-net35-deploymentfiles\wwwroot\Setup\applications\mojoportal-core\SchemaUpgradeScripts\mssql\2.3.2.3.config"

ApplicationID

In "...\mojoportal-2-3-5-1-mssql-net35-deploymentfiles\wwwroot\Setup\applications\mojoportal-core\SchemaUpgradeScripts\mssql\2.3.3.5.config" 

ModuleDefID

In "...\mojoportal-2-3-5-1-mssql-net35-deploymentfiles\wwwroot\Setup\applications\mojoportal-core\SchemaUpgradeScripts\mssql\2.3.3.8.config

ModuleDefID

 

In "...\mojoportal-2-3-5-1-mssql-net35-deploymentfiles\wwwroot\Setup\applications\mojoportal-core\SchemaUpgradeScripts\mssql\2.3.4.6.config

SiteID

9/13/2010 5:25:16 PM
Gravatar
Total Posts 18

Re: Id VS ID

Running script feed-manager - 0.0.0.5 - 00:00:01.6406250
System.Data.SqlClient.SqlException: Invalid column name 'FeedID'.

I don't know what I must change.

 

Running script surveyfeature - 0.0.1.4 - 00:00:02.3750000
System.Data.SqlClient.SqlException: Invalid column name 'ModuleId'.

ModuleID

9/15/2010 6:14:44 AM
Gravatar
Total Posts 18439

Re: Id VS ID

Hi,

This problem only happens when using a case sensitive collation. I recommend use a case insensitive collation.

I will make the changes in the files you have indicated. Probably there are more places than just those, so let me know if you find more.

Best,

Joe

9/15/2010 6:29:37 AM
Gravatar
Total Posts 18

Re: Id VS ID

Thanx.

How about that:

Running script feed-manager - 0.0.0.5 - 00:00:01.6406250
System.Data.SqlClient.SqlException: Invalid column name 'FeedID'.

I don't know what I must change.

 

9/15/2010 6:43:42 AM
Gravatar
Total Posts 18439

Re: Id VS ID

That one needs to be FeedId in order to match the case of the FeedId column in mp_RssFeedEntries

Best,

Joe

9/15/2010 7:12:47 AM
Gravatar
Total Posts 18

Re: Id VS ID

Oh! Did not properly read the name in the database :)

In DB: FeedId

In file: FeedID

I changed and all OK now. Thanx. :)

You must sign in to post in the forums. This thread is closed to new posts.