General error after installation

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.
2/16/2007 5:31:38 PM
Gravatar
Total Posts 17

General error after installation

Hello everyone,

I am trying to install mojoportal on a windows based hosting web (ASP.NET 2.0) with a MS SQL Server 2005 database.

So far I did the following:

1. Modify the web.config file so it contains the appropriate connection string

2. Upload the entire directory to the /cms folder of my web

3. Run the SQL scripts to create all tables and stored procedures

 

Now when trying to invoke the web I get a screen with the following message:

"We're sorry but a server error has occurred while trying to process your request.

The error has been logged and will be reviewed by our staff as soon as possible. It is possible that the error was just a momentary hiccup and you may wish to use the back button and try again or go back to the home page."

Obviously that does not tell very much about the problem. Where can I find that log mentioned? Or does anyone here have an idea what the problem could be?

I'd really like to use MojoPortal for my websites since here it looks just great! Appreciate any help!

 

Best Regards,

Benny

2/16/2007 5:44:33 PM
Gravatar
Total Posts 18439

Re: General error after installation

Currently there is a security setting that is making the friendly error page display instead of showing us the error.
First thing we need to do is find out what the error is so edit Web.config, look for setting near bottom

<customErrors mode="RemoteOnly" defaultRedirect="Error.htm" />

change it to this:

<customErrors mode="Off" defaultRedirect="Error.htm" />

and re-upload your web.config, then we should be able to see what the error is and go from there.

After everything is working you should change this setting back so it doesn't show the error.

Joe
2/16/2007 6:07:46 PM
Gravatar
Total Posts 18439

Re: General error after installation

You can find the log file at webroot/Data/currentlog.config file

However if there is an error that prevents logging or if the Data folder is not writable by the web worker process the log file will not exist.

Hope it helps,

Joe
2/17/2007 6:47:44 PM
Gravatar
Total Posts 17

Re: General error after installation

Hello Joe,

thanx for the quick reply.

The following error now appears when trying to access the root folder of the web.

 

Input string was not in a correct format.
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.FormatException: Input string was not in a correct format.

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:


[FormatException: Input string was not in a correct format.]
System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +2753603
System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +102
System.String.System.IConvertible.ToInt32(IFormatProvider provider) +43
System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider) +214
System.Data.SqlClient.SqlParameter.CoerceValue(Object value, MetaType destinationType) +561

[FormatException: Failed to convert parameter value from a String to a Int32.]
mojoPortal.Data.dbPortal.SiteSettings_Create(String SiteName, String Skin, String Logo, String Icon, Boolean AllowNewRegistration, Boolean AllowUserSkins, Boolean AllowPageSkins, Boolean AllowHideMenuOnPages, Boolean UseSecureRegistration, Boolean EncryptPasswords, Boolean UseSSLOnAllPages, String DefaultPageKeywords, String DefaultPageDescription, String DefaultPageEncoding, String DefaultAdditionalMetaTags, Boolean IsServerAdminSite, Boolean useLdapAuth, Boolean autoCreateLDAPUserOnFirstLogin, String ldapServer, Int32 ldapPort, String ldapRootDN, String ldapUserDNKey, Boolean allowUserFullNameChange, Boolean useEmailForLogin, Boolean reallyDeleteUsers, String editorSkin, String defaultFriendlyUrlPattern) +3817
mojoPortal.Business.SiteSettings.Create() +184
mojoPortal.Business.mojoSetup.CreateInitialData(String templateFolderPath) +302
mojoPortal.Web.Global.Application_Start(Object sender, EventArgs e) +91


2/17/2007 7:02:32 PM
Gravatar
Total Posts 18439

Re: General error after installation

What version of mojoPortal are you using? Data creation used to happen in Application_Start event but that was changed a few versions back when we added the Setup page.

Can you try the latest files from here?

Also, what language do you have your web browser set to? I think that could be a factor in this error.

Joe
2/25/2007 9:31:02 AM
Gravatar
Total Posts 17

Re: General error after installation

Hello Joe,

 

I installed the most recent version now. Now I get a message, that the Default.aspx page or one of it's dependencies is not present. I uploaded the entire web though.

Changing the CustomError-Setting does not affect the error message!

2/25/2007 9:35:32 AM
Gravatar
Total Posts 18439

Re: General error after installation

Make sure your hosting setup is configured for ASP.NET 2.0 not 1.1

Also it is possible that not all files uploaded even if you think they did, sometimes ftp clients can timeout.
If the Default.aspx file is there make sure the /bin/mojoPortal.Web.dll file is also there

Hope it helps,

Joe
2/25/2007 10:50:10 AM
Gravatar
Total Posts 17

Re: General error after installation

Sorry, this didn't bring any success...

 

My hosting environment is running the .NET Framework 2.0, there is no choice about that.

Both files (Default.aspx and /bin/mojoportal.Web.dll) are present.

 

I performed a complete reset on my webspace and uploaded the MP-Files again to the root of the site.

 

Still it displays the same error.

2/25/2007 11:00:50 AM
Gravatar
Total Posts 18439

Re: General error after installation

Can you post the exact error message?
2/25/2007 11:03:11 AM
Gravatar
Total Posts 17

Re: General error after installation

Server Error in '/' Application.
--------------------------------------------------------------------------------

The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Requested URL: /Default.aspx
2/25/2007 11:11:50 AM
Gravatar
Total Posts 18439

Re: General error after installation

Are you sure the web root is where the Default.aspx file is located?
Can you tell me the pubic url?

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