Hosting Composite C1 using IIS with virtual directory

Topics: General, Troubleshooting
Dec 23, 2010 at 3:38 AM

I've already deployed C1 on my host using Virtual Directory but I can't access to edit page on developer GUI.

Finally, I figured out the problem is hosting using Virtual Directory. I'm really don't know exactly how to configure hostname on C1.

In my host, I've configured virtual directory which sample below:

http://[mypublicIp]/[virtualdirectoryname]

C1 raised me error "/Frontend/Config/VisualEditor/common.xml" while the file common.xml has already existed in my solution.

Thanks in advance.

Jan 4, 2011 at 10:16 AM

Hi, sorry for the belated answer - we have pretty much been in xmas/new year mode since your post.

Thanks for alerting us about this issue - it has been fixed in the beta andf we will sync with codeplex soon - you can apply the fix manually like this:

  1. Edit the file "~/Composite/content/misc/editors/visualeditor/visualeditor.js"
  2. On line 31, replace the code shown below ("old code") with the "new code" block.

Old code

var path = window.location.toString ();
if ( path.indexOf ( "config=" ) >-1 ) {
	conf = path.split ( "config=" )[ 1 ];
}
var url = "/Frontend/Config/VisualEditor/" + conf + ".xml";
New code

var editorpath = window.location.toString ();
if (editorpath.indexOf("config=") > -1) {
    conf = editorpath.split("config=")[1];
}
var sitepath = editorpath.substring(0, editorpath.toLowerCase().indexOf("/composite/content/"));
var relconfigpath = "/Frontend/Config/VisualEditor/" + conf + ".xml";
var url = sitepath + relconfigpath;

Jan 7, 2011 at 1:54 AM

Hi mawtex . 

The problem has been solved but some icons on toolbar of editor could not be found ( Italic , Underline , Bold ) and sometime  the editor automatically add several code lines as below 

 

<parsererror style="display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color: black">
	<h3>This page contains the following errors:</h3>
	<div style="font-family:monospace;font-size:12px">error on line 1 at column 1: Extra content at the end of the document</div>
	<h3>Below is a rendering of the page up to the first error.</h3>
</parsererror>

 

Thanks in advance.

Jan 10, 2011 at 12:34 PM

Could you please provide me with info about what browser you use (and full version), OS and what version of Composite C1 you use (see "Help | About Composite C1" in the C1 Console)?

Jan 11, 2011 at 1:42 AM

I currently use Composite C1 2.1 (BETA 2) Build 2.1.4003.15755 and my browser is Chrome 8.0.552.224 . ( Windows 7 Pro + IIS 7.5)

Tools --> Server log

Message :

    Expression = value(Composite.Data.Foundation.DataFacadeQueryable`1[Composite.Data.Types.IPageType]).OrderBy(data => data.Name)

Title :

DataElementTreeNode

Thanks in advance.

Jan 12, 2011 at 1:12 PM

likeno_another,

> some icons on toolbar of editor could not be found ( Italic , Underline , Bold )

The issue might occur when you access the administrative console by typing small 'c' in the URL: http://<hostname>/composite/top.aspx.

This is a known issue now and the fix is expected. If this is your case, then use the capital 'C' instead: http://<hostname>/Composite/top.aspx.

Hope this will help you

 

Jan 13, 2011 at 5:33 AM
wysocki wrote:

likeno_another,

> some icons on toolbar of editor could not be found ( Italic , Underline , Bold )

The issue might occur when you access the administrative console by typing small 'c' in the URL: http://<hostname>/composite/top.aspx.

This is a known issue now and the fix is expected. If this is your case, then use the capital 'C' instead: http://<hostname>/Composite/top.aspx.

Hope this will help you

 

Thank you very much .This problem has been solved . 

 

 

Jan 13, 2011 at 8:08 AM

We have solved this beta issue in the trunk source - fix is available next time we sync with the codeplex TFS. Until then the "Use capital 'C' in path" is the workaround (thanks for reporting it wysocki).

It's probably hubris that none of us in the core team never dreamt of writing '/Composite' with a small 'c' so this bug could go unnoticed ;-)

Jan 13, 2011 at 8:54 AM

Time for a sync soon...? haven't had any sync... since, well, last year... :)

Jan 13, 2011 at 10:15 PM
Edited Jan 13, 2011 at 10:17 PM

Lets make a deal - we sync when enough people have reviewed this project at http://www.microsoft.com/web/gallery/CompositeC1CMS.aspx so our rating show up on http://www.microsoft.com/web/gallery/Categories.aspx?category=ASPNET4 (instead of "Not enough ratings") - and we make sure the sources include a very sought after provider ;-)

Jan 13, 2011 at 10:50 PM
Edited Jan 13, 2011 at 10:52 PM

Hm... do you really have to install it in Webmatrix to be able to rate it, or am i just overlooking some button?

Update never mind, found it :P

Jan 13, 2011 at 10:52 PM

It's the subtle "Review this app" link above the existing reviews. It's not easily identified.