'PK_ModuleDefinitions' problem

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

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.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
5/9/2011 8:03:38 AM
Jan
Gravatar
Total Posts 2

'PK_ModuleDefinitions' problem

Hi newbie in .NET,

Tried to install on hosted web service with .NET 4 an MSSQL 2005 and got this error. Please help.

Figured that 'PK_ModuleDefinitions' are in DB, but didnt found any of this entry in my DB

Thanks, Jan

 

Probing system...
File system permissions ok.
MSSQL database connection ok.
database permissions are sufficient to alter schema.
database initial schema needs to be created.
Running script mojoportal-core - 2.3.4.8 - 00:00:00.1562500
System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'PK_ModuleDefinitions' in the database. Could not create constraint. See previous errors. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning() 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, Int32 commandTimeout, SqlParameter[] commandParameters) at mojoPortal.Data.DBPortal.DatabaseHelperRunScript(String script, String overrideConnectionInfo) at mojoPortal.Business.DatabaseHelper.RunScript(Guid applicationId, FileInfo scriptFile, String overrideConnectionInfo) - 00:00:00.6875000
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.
 

5/9/2011 1:18:54 PM
Gravatar
Total Posts 18439

Re: 'PK_ModuleDefinitions' problem

Hi Jan,

That is very strange since that primary key is only referenced once in the script, the table mp_ModuleDefinitions must somehow already exist in the database for it to throw that error.

I would try again with a new empty database. If you continue to have problems I would verify whether the host has installed all the service paks for SQL 2005.

Hope it helps,

Joe

5/11/2011 2:16:36 AM
Jan
Gravatar
Total Posts 2

Re: 'PK_ModuleDefinitions' problem

Hi,

thanks for info. Found the problem. Needed to enter my SQL login information to web.config also.

Jan

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