Mosso w/MSsql 2008 Install Issues, no Admin Access

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.
8/27/2010 2:00:37 AM
Gravatar
Total Posts 22

Mosso w/MSsql 2008 Install Issues, no Admin Access

Hello,

MSsql Server 2008
mojoportal-2-3-5-1-mssql-net35-deploymentfiles
ASP.NET Mosso Cloud

I have reviewed as much documentation and forum posts as I could and it seems the subject has come up many times with varied causes.

Fortunately, Mosso provided a step by step on the install, coupled with your data, and 6 hours of troubleshooting, I got it up.

a.) data and app_data are set as 777, including subfolders and files.

b.) impersonate was completed

c.) I had to manually create sub folders as described in the forum, within the data folder.

... and misc. other items, like turning off custom error.

No edits outside instructions have been done.

The site appears to come up.

I am able to register a fresh account... but am looking for admin access.

Found that I should use, admin@admin.com admin does not login, in any way.

Password recovery states the user does not exist.

I logged into Mosso's DB manager tool and find the single user I registered by hand, but no record of an Admin Account.

Viewed another page of yours with a video, using sqlexpress and I noticed a db structure...

security/login/

but in mine

security/login does not exist

I do have below security

users, roles, schemas, asymetric keys, certificates, symetric keys

mlmworldguide.com

Any help is greatly appreciated.

It seems to me the MSSql Installer may not be perfected.

I cleared the log file and ran the install twice to see If I could provide additional hints...

"2010-08-27 01:45:11,028 INFO mojoPortal.Web.Global - Application Started.
2010-08-27 01:45:11,059 ERROR mojoPortal.Web.Global - Application_Start Could not register VirtualPathProvider, this error is expected when running in Medium trust or lower
System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
at mojoPortal.Web.Global.RegisterVirtualPathProvider()
at mojoPortal.Web.Global.Application_Start(Object sender, EventArgs e)
The action that failed was:
InheritanceDemand
The type of the first permission that failed was:
System.Web.AspNetHostingPermission
The Zone of the assembly that failed was:
Intranet" 

Thank you,

Scott H Leonard

scott@bizlocal.com

8/27/2010 6:35:59 AM
Gravatar
Total Posts 18439

Re: Mosso w/MSsql 2008 Install Issues, no Admin Access

Hi Scott,

The Setup page should have created the admin user for you if no user exists in the site, but once you registered a user it won't try to fix it.

The only solution is to go into the database and wire up your existing user to the Admins role. Look in the mp_Roles table, get the id of the Admins role, then create a row in mp_UserRoles with the id of your user and the id of the role. There should already be at least one row in there where your user was added to the Authenticated Users role, so yu should see the userid there, but if not look for it in mp_Users.

After wiring up your user to the Admins role, sign out and then sign in again to get a new role cookie and then you should be an admin.

Hope it helps,

Joe

8/27/2010 1:39:17 PM
Gravatar
Total Posts 22

Re: Mosso w/MSsql 2008 Install Issues, no Admin Access

Hello Joe, thank you for the directives.

When viewing the DB yesterday and the single registration I made, I also considered that possibility.

When editing the DB to add the user in roles, some long hash strings seemed to be needed for me to actually wire it up.

I will review it again and perhaps you can direct me.

Thank you,

-Scott

8/27/2010 1:42:19 PM
Gravatar
Total Posts 18439

Re: Mosso w/MSsql 2008 Install Issues, no Admin Access

You can get UserGuid from the user row in mp_Users and RoleGuid from the role row mp_Roles

Hope it helps,

Joe

8/27/2010 4:36:16 PM
Gravatar
Total Posts 22

Re: Mosso w/MSsql 2008 Install Issues, no Admin Access

Hello Joe,

I have had several conferences today and returning to this when I have a break.

Ok... mp_Roles

There are no entries, i.e., there is no admin role created.

I selected to add a record and find:

SiteID
RoleName
DisplayName
SiteGUID
RoleGUID

I chose not to continue as the RoleGuid and SuteGuid, I will most probably need from another location.

It really seems as though the system did not fully create the Sql records needed.

-Scott

8/27/2010 4:43:13 PM
Gravatar
Total Posts 18439

Re: Mosso w/MSsql 2008 Install Issues, no Admin Access

I would try deleting the user you registered and then visit the /Setup/Default.aspx page again and maybe it will create the default site content.

If all else fails, I'd try creating a new empty db, set the connection string, recycle the app pool and then visit /Setup/Default.aspx and let it run the sql scripts again from the start. Maybe it will go better this time.

It might be wise to first re-upload the /Setup folder just in case some of the scripts did not make it last time or are missing, something like that might also cause this kind of problem.

Hope it helps,

Joe

8/27/2010 6:41:17 PM
Gravatar
Total Posts 22

Re: Mosso w/MSsql 2008 Install Issues, no Admin Access

Hello Joe,

1.) Re-Uploaded the Setup Folder to insure there were no missing items.
2.) Logged into sql and removed the user, I registered through the site.
3.) Ran the page /Setup/Default.aspx

a.) Checked Sql and there is a new User!!! Admin.
b.) Went to site and logged in with credentials for Admin.

Joe, thank you for your assistance.

It is a pleasure to explore an open source app and have quick assistance when you hit a bump in the road.

Cheers!

-Scott H Leonard
 

8/28/2010 7:20:10 AM
Gravatar
Total Posts 18439

Re: Mosso w/MSsql 2008 Install Issues, no Admin Access

Excellent! Glad to hear it is working.

Best,

Joe

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