New Install - mp_SiteFolder_Exists Error

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.
7/18/2007 2:25:08 PM
Gravatar
Total Posts 115
mojoPortal Community Expert

New Install - mp_SiteFolder_Exists Error

I am trying to install mojoPortal on Windows 2003/MSSQL 2005. I have created the folder and copied the files over. I ran the 3 sql scripts from the download and setup my web.config. But when I launch the site for install it says mp_SiteFolder_Exists cannot be found.

7/18/2007 4:08:45 PM
Gravatar
Total Posts 18439

Re: New Install - mp_SiteFolder_Exists Error

How do you launch the site? If you mean using VS 2005 debugger then just keep clicking the continue button on errors. It will handle the errors then it will run the upgrade scripts that will add that missing stored proc that is raising an error, then you should see the setup page with a button to create initial site data.

If you are not using VS and used release files then type a space in web.config to recycle tha app. It should handle that error.

Hope it helps,

Joe

8/10/2007 6:28:52 PM
Gravatar
Total Posts 8

Re: New Install - mp_SiteFolder_Exists Error

Hey -

Clean install (I think).  I had installed an older version for MySQL, but removed it and deleted the database tables and sprocs, never ran setup on it.  I then installed 2.2.3.3b for MS-SQL.  And that's where I am.

UseFoldersInsteadOfHostnamesForMultipleSites was already set false; so I tried true with no difference.

The URL in question is www.onegenerationtoanother.com/mojoportal/Setup.aspx

Thanks in advance.

 

-----------------------------

Hi Tim,

Is this a clean install or upgrade? What version of mojoportal? What db?
What is the full url, "www.../mojoportal/Setup/Default.aspx" doesn't tell me how deep the folder is.

Try setting UseFoldersInsteadOfHostnamesForMultipleSites to false in Web.config

If you have further difficulty please post in the forums instead of email. That way anyone encountering the same problem can benefit and I don't have to answer the same issues more than once.

Hope it helps,

Joe

On 8/10/07, Tim Wise <tjwise@mail.com> wrote:
>
> Joe -
>
> I'm getting "The stored procedure 'mp_SiteFolder_Exists' doesn't exist." error when I do www.../mojoportal/Setup/Default.aspx. I've done your trick of modifying web.config to get it to rerun, but to no avail (I actually did it about 8 times, just for luck). The full error follows.
>
> Any suggestions?
>
> Thanks in advance......
> Tim
>
>
>
> Server Error in '/MojoPortal' Application.
> ----------------------------------------------------------------------
> ----------
>
> The stored procedure 'mp_SiteFolder_Exists' doesn't exist.
> 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.InvalidOperationException: The stored procedure 'mp_SiteFolder_Exists' doesn't exist.
>
> Source Error:
>
> An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
>
> Stack Trace:
>
>
> [InvalidOperationException: The stored procedure 'mp_SiteFolder_Exists' doesn't exist.]
> System.Data.SqlClient.SqlCommand.DeriveParameters() +878648
> System.Data.SqlClient.SqlCommandBuilder.DeriveParameters(SqlCommand command) +88
> mojoPortal.Data.SqlHelperParameterCache.DiscoverSpParameterSet(SqlConnection connection, String spName, Boolean includeReturnValueParameter) +83
> mojoPortal.Data.SqlHelperParameterCache.GetSpParameterSetInternal(SqlConnection connection, String spName, Boolean includeReturnValueParameter) +124
> mojoPortal.Data.SqlHelperParameterCache.GetSpParameterSet(String connectionString, String spName, Boolean includeReturnValueParameter) +96
> mojoPortal.Data.dbPortal.SiteFolder_Exists(String folderName) +147
> mojoPortal.Business.SiteFolder.Exists(String folderName) +5
> mojoPortal.Business.WebHelpers.VirtualFolderEvaluator.VirtualFolderName() +527
> mojoPortal.Web.UrlRewriter.RewriteUrl(HttpApplication app) +83
> mojoPortal.Web.UrlRewriter.UrlRewriter_BeginRequest(Object sender, EventArgs e) +368
> System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
> System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
> Boolean& completedSynchronously) +64
>
>
>
>
> ----------------------------------------------------------------------
> ---------- Version Information: Microsoft .NET Framework
> Version:2.0.50727.42; ASP.NET Version:2.0.50727.210
>
>

8/10/2007 6:53:57 PM
Gravatar
Total Posts 18439

Re: New Install - mp_SiteFolder_Exists Error

Is there a user.config file with UseFoldersInsteadOfHostnamesForMultipleSites=true?

Can you look in the db and tell me

  • are there any rows in mp_SchemaScriptHistory with errors? If so we need to resolve the errors and then delete those rows so the script can run again
  • what version is in mp_SchemaVersion table?
  • any rows in mp_Sites?
  • when you uploaded are you sure you copied all the files under the Web/Setup folder? maybe not all the upgrade scripts made it

Hope it helps,

Joe

8/10/2007 6:55:31 PM
Gravatar
Total Posts 18439

Re: New Install - mp_SiteFolder_Exists Error

ps, if all else fails, I'm making a new release with a much nicer setup process soon, possibly even tomorrow.

Joe

8/10/2007 9:03:18 PM
Gravatar
Total Posts 8

Re: New Install - mp_SiteFolder_Exists Error

> Is there a user.config file with UseFoldersInsteadOfHostnamesForMultipleSites=true?

All I had was the user.config.sample.  I have renamed it and included my MSSQLConnectionString.  No improvement.

> are there any rows in mp_SchemaScriptHistory with errors? If so we need to resolve the errors and then delete those rows so the script can run again

Yes, four.  mp_SchemaScriptHistory_SelectByApp doesn't exist.  And, it doesn't exist in 2CreateTables.sql.

System.Data.SqlClient.SqlException: Invalid object name ''dbo.mp_SchemaScriptHistory_SelectByApp''.
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.RunScript(String script, String overrideConnectionString)
at mojoPortal.Business.DatabaseHelper.RunScript(Guid applicationID, FileInfo scriptFile, String overrideConnectionString)


> what version is in mp_SchemaVersion table?

2.2.3.3


> any rows in mp_Sites?

None.

> when you uploaded are you sure you copied all the files under the Web/Setup folder? maybe not all the upgrade scripts made it

Just re-verified.  Actually, I was able to upload the .zip and unzip at the website.  Harder to miss anything.

Thanks again.....

8/10/2007 9:15:55 PM
Gravatar
Total Posts 8

Re: New Install - mp_SiteFolder_Exists Error

>>> are there any rows in mp_SchemaScriptHistory with errors? If so we need to resolve the errors and then delete those rows so the script can run again

>> Yes, four. mp_SchemaScriptHistory_SelectByApp doesn't exist. And, it doesn't exist in 2CreateTables.sql.

Things that make you say hmmmmm?  I cleared the records from mp_SchemaScriptHistory, changed web.config and reran Setup.  Same error, but no errors in mp_SchemaScriptHistory.

Later....

8/11/2007 10:30:23 PM
Gravatar
Total Posts 8

Re: New Install - mp_SiteFolder_Exists Error

Hey -

Well, I got it working.  I cleaned out my database of all tables and store procedures.  Then I re-installed.  The 3CreateStoredProcedures.sql times out on my ISP, so I had broken it up into 5 files.  I didn't save them, but I'm guessing that I must have left something out.  This time, I broke it up, saved them, concatenated them back together and diffed against the original and they were the same.  Ran the 5 scripts.  When I ran mysite.com/mojoportal/Setup/Default.aspx, it too timed out the first time, but the second time, it came up telling me I was running in Medium Trust and I needed to include <add Lucene....>, which I did, reran, badda boom, I was in.  Created my site, and I am now moving forward.

Thanks.  I'll keep you informed and forward a link to the finished works in a week or so.

-- Tim

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