Technical support This forum is closed.
Version 1.x > Technical support > vs2005 cmsmetadatafolder question View modes: 
User avatar
Member
Member
forrester - 9/12/2006 11:01:37 PM
   
vs2005 cmsmetadatafolder question
I am doing a little experiment with a test site in asp.net2.0/c#/vs2005. I have put the following CMSMetadataFolder value in my web.config:

<add key="CMSMetadataFolder" value="~/CMSDesk/Metadata" />
<add key="CMSFilesFolder" value="" />
<add key="CMSLicenseKey" value="license key" />
<add key="CMSParentFrameName" value="application" />
<add key="CMSCacheMinutes" value="0" />
<add key="CMSCachePageInfoMinutes" value="0" />
<add key="CMSWebSiteBaseAliasPath" value="" />
<add key="CMSUseFriendlyURLs" value="true" />
<add key="CMSWebApplicationVirtualPath" value="" />
<add key="CMSUseMultilingualSupport" value="true" />
<add key="CMSDefaultCultureCode" value="en-us" />
<add key="CMSSendWorkflowEmails" value="true" />
<add key="CMSSchedulerInterval" value="120" />
<add key="CMSSMTPServer" value="localhost" />
<add key="CMSSendWorkflowEmailsFrom" value="myname@domain.com" />
<add key="CMSSecuredAreas" value="/partners" />
<add key="CMSSecuredAreasLogonPage" value="~/WebLogon.aspx" />
<add key="CMSWysiwygEditor" value="FCKEditor" />
<add key="CMSStoreFilesInDatabase" value="false" />
<add key="CMSFriendlyURLStyle" value=".aspx" />
<add key="CMSExcludedDirectories" value="/ControlsExamples" />
<add key="CMSUseOutputFilter" value="true" />
<add key="CMSFixFormAction" value="true" />
<add key="CMSGenerateFriendlyUrlFiles" value="true" />
<add key="CMSSendNewslettersFrom" value="myname@domain.com" />
<add key="CMSDefaultAliasPath" value="" />
<add key="CMSSendForumPostsFrom" value="myname@domain.com" />
<add key="CMSForbiddenFileSystemCharacters" value=" " />
<add key="CMSFileUpload" value="/Upload" />

After I did this, I migrated my test site (also set up as multilingual) from my localhost to a production site (http://www.domain.com/customer_area/Templates/TemplateTwo). The site shows up and works, but when I log into the cmsdesk and click on the "content" I get the following error on each page:

#########################
Server Error in '/customer_area/TestSite' Application.
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Requested URL: /customer_area/TestSite/cmsdesk/content/~/Contact.aspx

Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
#########################

I noticed that it adds the tildy (~) sign before the page name. I saw in a previous thread that you have not tested this, but I was wondering if you might have any thoughts on it. If there is a solution to this, it would be easier to use the tildy sign than making sure my virtual path is correct when I deploy a site.

Thanks,
forrester

User avatar
Guest
admin - 9/13/2006 10:01:55 AM
   
Re: vs2005 cmsmetadatafolder question
Hello,

you should set the values like these:

<add key="CMSMetadataFolder" value="/CMSDesk/Metadata" />
<add key="CMSWebApplicationVirtualPath" value="/" />

Regards,

User avatar
Member
Member
forrester - 9/13/2006 3:25:17 PM
   
Re: vs2005 cmsmetadatafolder question
When I try this, I get an error because the test site is not under the root of the domain, but under a subfolder (i.e. www.domain.com/customer_area/Test). This was why I was experimenting with the (~) sign to see if I could do this:

<add key="CMSMetadataFolder" value="~/CMSDesk/Metadata" />
<add key="CMSWebApplicationVirtualPath" value="" />

instead of

<add key="CMSMetadataFolder" value="customer_area/Test/CMSDesk/Metadata" />
<add key="CMSWebApplicationVirtualPath" value="customer_area/Test/" />

Just curious...thanks.

forrester

User avatar
Guest
admin - 9/13/2006 5:53:39 PM
   
Re: vs2005 cmsmetadatafolder question
No, unfortunately, you need to use absolute URLs.

Best Regards,