SiteGUID unexpected during site re-setup

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

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.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
1/13/2013 8:20:15 AM
Gravatar
Total Posts 70

SiteGUID unexpected during site re-setup

Hi all, this is not the bug, I think, but the behavior confused. I will try to explain:

My task was to re-setup my site from scratch during development. I have custom features and pages included into Setup/InitialContent/Pages in turn to setup site hierarhy automatically. OK.

My VisualStudo and MS SQL are up, the bunch of WebMAtrix are up also.

1. I've dropped and re-created my required DB at MS SQL, the DB owner assigned after that. OK.

2. I've re-compile and re-run my project from VS and site initial setup is seems to be correct.

3. I am logged in as admin@admin.com

4. At my new site pages which been created with all features required I am trying to press Feature Property links for my custom featureas and, voila, I have redirected to the page "Access Denied" in spite of my Admin privileges. I was confused.

5. During debug I can see what, at the ModuleSettings.aspx.cs->LoadSettings() line 1158: my module.SiteGuid is not equal the siteSettings.SiteGuid this way I am forced into canEdit = false.

            if (module.SiteGuid != siteSettings.SiteGuid)
            {
                canEdit = false;
            }

I've digged a bit the situation and, maybe, the problem caused by CacheProvider which seems to cach the site settings during 360 seconds and my site re-creation attempt got SiteGUD for the OLD site been removed? I am not sure.

Finally, I successfully re-created my site during development after a)DB was re-created at MS SQL and b) my VisualStudio been re-loaded, this way all web matrix was re-initialized.

I am not sure about my solution which, maybe, is not the perfect, anyway I was tryied to share the moment which was confused for me.

With warm regards, Happy New Year!

Igor

 

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