Blog error durring install

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.
10/27/2009 5:49:14 AM
Gravatar
Total Posts 19

Blog error durring install

Hi. Durring installation I encountered an error:



Running script blog - 0.0.0.3 - 00:00:00.4212000

System.Data.SqlClient.SqlException: Cannot find the object "dbo.mp_Blogs" because it does not exist or you do not have permissions. 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.4368000

 

IIS7, .NET 3.5 SP1, MSSQL

 

The installation is successful, but the blog isn't working. I can configure it in the admin panel, but I get:

Server Error in '/' Application.

The stored procedure 'mp_Blog_SelectDrafts' doesn't exist.

 

Please Help

10/27/2009 7:02:15 AM
Gravatar
Total Posts 19

Re: Blog error durring install

Ok, I did run the 20000_BlogModule.config from Setup\applications\blog\FeatureDefinitions and now, when entering the page with the blog I get Index was outside the bounds of the array.

 

Full error:



[IndexOutOfRangeException: Index was outside the bounds of the array.]

mojoPortal.Data.SqlParameterHelper.DefineSqlParameter(String paramName, SqlDbType type, Int32 size, ParameterDirection dir, Object value, Boolean sizeProvided) +198

mojoPortal.Data.SqlParameterHelper.DefineSqlParameter(String paramName, SqlDbType type, ParameterDirection dir, Object value) +20

mojoPortal.Data.DBBlog.GetDrafts(Int32 moduleId) +132

mojoPortal.Business.Blog.CountOfDrafts(Int32 moduleId) +40

mojoPortal.Web.BlogUI.BlogModule.LoadSettings() +3577

mojoPortal.Web.BlogUI.BlogModule.Page_Load(Object sender, EventArgs e) +15

System.Web.UI.Control.OnLoad(EventArgs e) +99

System.Web.UI.Control.LoadRecursive() +50

System.Web.UI.Control.LoadRecursive() +141

System.Web.UI.Control.LoadRecursive() +141

System.Web.UI.Control.LoadRecursive() +141

System.Web.UI.Control.LoadRecursive() +141

System.Web.UI.Control.LoadRecursive() +141

System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

 

10/27/2009 7:37:04 AM
Gravatar
Total Posts 18439

Re: Blog error durring install

Hi,

Only thing I can guess is that when you uploaded the files they did not all make it.

For the blog the first script it should have run would be located at

/Setup/applications/blog/SchemaInstallScripts/mssql/0.0.0.1.config

Then it would run the rest of the scripts in version order from the folder

/Setup/applications/blog/SchemaUpgradeScripts/mssql/

So it seems it never ran that first script (possibly it was missing on disk) and now its a messed up partial install that may have run the script

/Setup/applications/blog/SchemaUpgradeScripts/mssql/0.0.0.2.config

and then it failed on the next one and cannot proceed with the rest of the scripts.

The only solution I know is

1. Upload the /Setup folder again and make sure all the files make it.

2. Manually delete the stored procedure mp_Blog_DeleteBySite if it exists as it would have been created by the 0.0.0.2.config script

3. Delete the row for the blog from the mp_SchemaVersion table

4. Visit /Setup/Default.aspx again and hopefully this time it will run all the scripts in sequence.

Hope it helps,

Joe

10/27/2009 11:34:12 AM
Gravatar
Total Posts 19

Re: Blog error durring install

Ok, solved the problem.

After installing manually 20000_BlogModule.config I had to delete all instances of Blog on my webpage, and create them again.

 20000_BlogModule.config didn't upload correctly which caused the problem.

 

Thanks for quick reply.

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