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