password 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.
2/9/2010 3:20:16 PM
Gravatar
Total Posts 76

password problem?!

Hello,

When i wanna enter my website at www.docreg.info i get following screen:

 

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.

 

When i wanna install my site again i get following error:

An Error Occurred:Password
Source:System.Data
Stack Trace at System.Data.ProviderBase.FieldNameLookup.GetOrdinal(String fieldName) at System.Data.SqlClient.SqlDataReader.GetOrdinal(String name) at System.Data.SqlClient.SqlDataReader.get_Item(String name) at mojoPortal.Business.SiteUser.GetUser(IDataReader reader) at mojoPortal.Business.SiteUser.GetUser(String loginInfo) at mojoPortal.Business.SiteUser..ctor(SiteSettings settings, String login) at mojoPortal.Business.SiteUser.GetRoles(SiteSettings siteSettings, String identity) at mojoPortal.Web.mojoRoleProvider.GetRolesAndSetCookie() at mojoPortal.Web.mojoRoleProvider.GetRolesForUser(String userName) at System.Web.Security.RolePrincipal.IsInRole(String role) at mojoPortal.Business.WebHelpers.WebUser.IsInRole(String role) at mojoPortal.Business.WebHelpers.WebUser.get_IsAdmin() at mojoPortal.Web.UI.Pages.SetupHome.Page_Load(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

 

What is this ????

2/9/2010 3:33:28 PM
Gravatar
Total Posts 0

Re: password problem?!

I now notice that when i clear the browser history i am able to enter the website.

But when i wanna sign in I get following error:

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.

I believe it's something with the login class in the mojo-core.

Can I reset/correct this?

Thnx in advanced....
 

2/10/2010 4:59:47 AM
Gravatar
Total Posts 18439

Re: password problem?!

Hi,

I think you are running a custom build you made yourself from Visual Studio not one of my pre-compiled packages. Recently we added the field Pwd and migrated data from the older Password field and then dropped the old field. This was to make the field larger so we can use stronger encryption in the future. If you use my build and visit /Setup it should run the scripts and this error would not happen. I have no way to solve it for your custom build since I do not know what is different than in my version. It sounds like your database schema is not up to date with the latest mojoportal, or else your schema is up to date but your code is not because your code is still looking for the field Password.

As far as generic error messages, I would point you to http://www.mojoportal.com/basic-troubleshooting.aspx

Hope it helps,

Joe

2/10/2010 11:09:25 AM
Gravatar
Total Posts 76

Re: password problem?!

Hi,

The only changes i made to the website are following:

  1. Added 2 tables and stored procedure to the database, didn't change existing tables or procedures.
  2. Added a CustomModule to the website.

But where the problem exists i believe is the following,

I downloaded the core-code (with tortoise SVN) and ran the code with VS2008sp1. I made a link to my existing database from my existing website.
So in fact two website are linked to the same database, my online running website and my local testing website on VS2008sp1.

Could above be the problem? Is it possible that my newer local code changed my online codefiles?????

Help very much appreciated! Loving this mojo-stuff...... :)

2/10/2010 11:16:52 AM
Gravatar
Total Posts 18439

Re: password problem?!

Hi Hanzie,

The problem is that your local code updated the database schema to the new version but the code running on your real site is not the same version so it expects the legacy field rather than the new field. There are other problems that will be caused by this approach as well, like if you edit content from your local machine it will not update the search index on the remote machine and if you add images from local they will not exist on production. It is best to use separate copy of the db on your dev machine. What I do is periodically get a backup from production and restore it on my local machine for testing.

Since you are using svn your local machine has newer code than any official release. To fix your site, now what you need to learn is how to produce your own deployment package using UnleashIt, then upgrade your site with the new package. Be careful not to overwrite the user.config file on your production site with the one from your local machine.

Hope it helps,

Joe

2/10/2010 11:24:33 AM
Gravatar
Total Posts 76

Re: password problem?!

Thnx again Joe for the quick reply!!

I understand the problem correctly now and gonna change the way i'm working now!

I think i completly reinstall the website with youre latest published code. It's not running that long so this is ok.

Let's get working on it! Thnx..

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