amarwadi-gmail
-
1/28/2011 2:55:55 PM
RE:Error loading the layout - masterpage.ascx' does not exist
Hello, Here are the details: 1. We develop on VS2010 for the Kentico project. 2. Every time we need to make a release, we go to Site Administrator in Kentico, and then do "Save all virtual objects to disk". This creates the folders for AdHocTemplateLayouts etc. 3. We then go ahead and build the site and do an XCOPY based deployment. 4. Once the deployment is done, I go ahead and delete the virtual objects from my folder. The following are the folders that I delete:
Document transformations: ~/CMSTransformations Shared layouts: ~/CMSLayouts Custom page template layouts: ~/CMSTemplateLayouts Web part layouts: ~/CMSWebPartLayouts Ad-hoc template layouts: ~/CMSAdhocTemplateLayouts
The above approach is the only approach that works for us since we're deploying in a medium trust environment.
Lately though, as we started doing more releases, we've noticed that after we delete the above mentioned folders, we cannot run the Kentico site in development anymore.
I can access CmsDesk and CmsSitemanager, but I cannot access any of the pages. I cannot just run the site in DEBUG mode because it apparently is looking for those folders.
If I go to Site Admin and save these virtual objects to disk again, I can see the site again. However, why should I need to deploy these objects to disk for my development purposes? These objects are already in the database.
Is there a setting in either the web.config or SiteAdmin/CmsDesk that tells the site to not look for these objects?
We're at a halt on our development right now because of this issue. In the worst case scenario, I can add all the virtual folders to source control, but I really don't think that is ideal.
Hoping this helps. Please let me know if there are any other questions.
|