<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>rousso.eu &#187; Community Server</title>
	<atom:link href="http://rousso.eu/?feed=rss2&#038;cat=10" rel="self" type="application/rss+xml" />
	<link>http://rousso.eu</link>
	<description>a Greek guy, writing from Sweden, his blog in the States.</description>
	<lastBuildDate>Tue, 22 Jun 2010 16:51:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>CS:Editor ViewState</title>
		<link>http://rousso.eu/?p=16</link>
		<comments>http://rousso.eu/?p=16#comments</comments>
		<pubDate>Tue, 19 Sep 2006 07:58:00 +0000</pubDate>
		<dc:creator>rousso</dc:creator>
				<category><![CDATA[Community Server]]></category>

		<guid isPermaLink="false">http://rousso.gr/Lists/Posts/ViewPost.aspx?ID=5</guid>
		<description><![CDATA[Quick Tip: CommunityServer 2.1 uses TinyMCE as a rich text editor. They use what appears to be a wrapper to TinyMCE: CommunityServer.Controls.Editor. As I am developing an application on top of CS 2.1 I am using the same rich text editor and encountered the following problem: I was setting declaratively the Height Property of the [...]]]></description>
			<content:encoded><![CDATA[<div class="ExternalClass4096C33E55EC4ED5A2769FF5CB88A56C">
<div>
<p><span><strong>Quick Tip:</strong></span></p>
<p><span>CommunityServer 2.1 uses TinyMCE as a rich text editor. They use what appears to be a wrapper to TinyMCE: CommunityServer.Controls.Editor. As I am developing an application on top of CS 2.1 I am using the same rich text editor and encountered the following problem:</span></p>
<p><span>I was setting declaratively the Height Property of the Editor control, but it could not retain it&#8217;s value after postbacks. </span></p>
<p><span>Look at the ASPX part:</span></p>
<pre class="brush: xml;">&lt;%@ Register Assembly=&quot;CommunityServer.Controls&quot; Namespace=&quot;CommunityServer.Controls&quot; TagPrefix=&quot;CS&quot; %&gt;
&lt;CS:Editor ID=&quot;edtNotes&quot; runat=&quot;server&quot; Height=&quot;160px&quot; /&gt;</pre>
<p><span>So far so good but, after a postback the Editor control returned to its default height (messing-up my layout). </span></p>
<p><span>To make a long story short, it figured that something is wrong either with timing or with implementation. I mean that either the wrapper, or the wrapped control do not assign the value of Height before ViewState is saved, or they assign it to either a Property that is not saved in view state, or during an Event that fires before LoadViewState.</span></p>
<p><span>So what I did to work-around the issue was just disable ViewState in the Editor control.</span></p>
<pre class="brush: xml;">&lt;CS:Editor ID=&quot;edtNotes&quot; runat=&quot;server&quot; Height=&quot;160px&quot; EnableViewState=&quot;false&quot; /&gt;</pre>
<p><span>The problem has gone away and that means that LoadViewState was overwriting my value.</span></p>
<p><span>I did not devote any time in looking further into this matter so I&#8217;m just posting this work-around, but if I do, I &#8216;ll let you know the details.</span></p>
</p></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://rousso.eu/?feed=rss2&amp;p=16</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MetaBlogAPI for CS 1.1</title>
		<link>http://rousso.eu/?p=25</link>
		<comments>http://rousso.eu/?p=25#comments</comments>
		<pubDate>Sat, 06 Aug 2005 08:35:00 +0000</pubDate>
		<dc:creator>rousso</dc:creator>
				<category><![CDATA[Community Server]]></category>

		<guid isPermaLink="false">http://rousso.gr/Lists/Posts/ViewPost.aspx?ID=28</guid>
		<description><![CDATA[I wanted to test w.Bloggar and BlogJet today for posting in a CS 1.1 blog. MetaBlogAPI comes as a separate download from CS 1.1 so I tried to find and get it. Believe me I had a real hard time! After an hour or so of googling around for it, a friend from dotnetzone.gr finally [...]]]></description>
			<content:encoded><![CDATA[<div>
<p>I wanted to test <a href="http://www.wbloggar.com/" target="_blank">w.Bloggar </a>and <a href="http://blogjet.com/" target="_blank">BlogJet</a> today for posting in a <a href="http://communityserver.org/">CS 1.1</a> blog. MetaBlogAPI comes as a separate download from CS 1.1 so I tried to find and get it. Believe me I had a real hard time!</p>
<p>After an hour or so of googling around for it, a <a href="http://www.dotnetzone.gr/cs/forums/4042/ShowPost.aspx" target="_blank">friend from dotnetzone.gr</a> finally pointed me to it.</p>
<p>Here it is:</p>
<blockquote><p><a href="http://www.telligentsystems.com/Solutions/license.aspx?File=cs_1.1_metablog">http://www.telligentsystems.com/Solutions/license.aspx?File=cs_1.1_metablog</a></p></blockquote>
<p>If you need it, go get it… </p>
<p>The other versions found in various posts in <a href="http://communityserver.org/forums/" target="_blank">communityserver.org/forums</a> are usually older versions and will just give you a <em>&#8220;Method not found: System.Collections.ArrayList COmmunityServer.Blogs.Components.Weblogs.GetWebLogs(CommunityServer.ComponentsUser,  Boolean, Boolean, Boolean). (EGetRecentError)&#8221;</em> error message. </p>
<p>I wish they had a more standard place for it on the web than just a form post…</p>
<p></em></div>
]]></content:encoded>
			<wfw:commentRss>http://rousso.eu/?feed=rss2&amp;p=25</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CS default language problems</title>
		<link>http://rousso.eu/?p=26</link>
		<comments>http://rousso.eu/?p=26#comments</comments>
		<pubDate>Fri, 05 Aug 2005 08:23:00 +0000</pubDate>
		<dc:creator>rousso</dc:creator>
				<category><![CDATA[Community Server]]></category>

		<guid isPermaLink="false">http://rousso.gr/Lists/Posts/ViewPost.aspx?ID=20</guid>
		<description><![CDATA[I run into an issue today regarding Community Server 1.1 (CS 1.1). I changed the default language in communityServer.config from en-US to el-GR, only to get a runtime error. The change: &#60;Core defaultLanguage=&#34;el-GR&#34; &#8230; &#62; The error: Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace [...]]]></description>
			<content:encoded><![CDATA[<p>I run into an issue today regarding Community Server 1.1 (CS 1.1).</p>
<p>I changed the default language in communityServer.config from en-US to el-GR, only to get a runtime error.</p>
<p>The change:</p>
<div style="border-right: gray 1px solid; padding-right: 4px; border-top: gray 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: gray 1px solid; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; padding-top: 4px; border-bottom: gray 1px solid; font-family: consolas, &#39;&#13;&#10;    courier new&#39; , courier, monospace; BACKGROUND-COLOR: #f4f4f4">
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39; courier new&#39;&#13;&#10;        , courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #0000ff">&lt;</span><span style="color: #800000">Core</span> <span style="color: #ff0000">defaultLanguage</span><span style="color: #0000ff">=&quot;el-GR&quot;</span> &#8230; <span style="color: #0000ff">&gt;</span></pre>
</div>
<p>The error:</p>
<table style="border-right: black 1px solid; border-top: black 1px solid; border-left: black 1px solid; border-bottom: black 1px solid; background-color: #fbfbfb" width="500">
<tbody>
<tr>
<td style="padding-right: 4px; padding-left: 4px; padding-bottom: 4px; padding-top: 4px" valign="top" width="500">
<p dir="ltr"><font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "><b><font face="Verdana">Description: </font></b>An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.</font> </p>
<p dir="ltr"><b><font face="Verdana">Exception Details: </font></b>System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.</p>
<p dir="ltr"><b><font face="Verdana">Source Error:</font></b></p>
<p dir="ltr" style="margin-right: 0px">
<table width="100%" bgcolor="#ffffcc">
<tbody>
<tr>
<td><code>Line 49: message = FindControl(&quot;Message&quot;) as Literal;<br />
                    <br />Line 50: if(message != null) </p>
<p><font color="#ff0000">Line 51: message.Text = string.Format(ResourceManager.GetString(&quot;DisplayUserWelcome_AlternateUserWelcome&quot;), CSContext.Current.SiteSettings.SiteName);<br />
                      <br /></font></code></td>
</tr>
</tbody>
</table>
<p dir="ltr"><b><font face="Verdana">Source File: </font></b>C:\Documents and Settings\rousso\My Documents\Visual Studio Projects\CS\1.1\50615src\src\Controls\User\AnonymousUserControl.cs<b><font face="Verdana">&#160;&#160;&#160; Line: </font></b>51</p>
<p dir="ltr"><b><font face="Verdana">Stack Trace:</font></b></p>
<p dir="ltr" style="margin-right: 0px">
<table width="100%" bgcolor="#ffffcc">
<tbody>
<tr>
<td><code>[FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.] System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args) +1232<br />
                    <br />System.String.Format(IFormatProvider provider, String format, Object[] args) +65 </p>
<p>System.String.Format(String format, Object arg0) +47 </p>
<p>CommunityServer.Controls.AnonymousUserControl.AttachChildControls()&#160; <br />CommunityServer.Controls.TemplatedWebControl.CreateChildControls()&#160; <br />System.Web.UI.Control.EnsureChildControls() +100 </p>
<p>... </p>
<p>System.Web.UI.Control.PreRenderRecursiveInternal() +125 </p>
<p>System.Web.UI.Page.ProcessRequestMain() +1499 </p>
<p></code></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p dir="ltr">After meddling around a a little bit I pin pointed the problem to a translation error.</p>
<p>I turns out that the Greek language resource files located in /Languages/el-GR/Resources.xml were not properly (if at all) converted to reflect changes in code between version 1.0 and 1.1 of CS.</p>
<p>This line was the problem:</p>
<div style="border-right: gray 1px solid; padding-right: 4px; border-top: gray 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: gray 1px solid; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; padding-top: 4px; border-bottom: gray 1px solid; font-family: consolas, &#39;&#13;&#10;    courier new&#39; , courier, monospace; BACKGROUND-COLOR: #f4f4f4">
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39; courier new&#39;&#13;&#10;        , courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #0000ff">&lt;</span><span style="color: #800000">resource</span> <span style="color: #ff0000">name</span><span style="color: #0000ff">=&quot;DisplayUserWelcome_AlternateUserWelcome&quot;</span><span style="color: #0000ff">&gt;</span>&#922;&#945;&#955;ώ&#962; &#959;&#961;ί&#963;&#945;&#964;&#949; &#963;&#964;&#959; {0} {1}resource<span style="color: #0000ff">&gt;</span></pre>
</div>
<p>There, two String.Format arguments are obviously expected. On the other hand, line 51 of AnonymousUserControl.cs, only passes one (see source error above).</p>
<p>Removing the second placeholder from the format string solves the problem:</p>
<div style="border-right: gray 1px solid; padding-right: 4px; border-top: gray 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: gray 1px solid; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; padding-top: 4px; border-bottom: gray 1px solid; font-family: consolas, &#39;&#13;&#10;    courier new&#39; , courier, monospace; BACKGROUND-COLOR: #f4f4f4">
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39; courier new&#39;&#13;&#10;        , courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #0000ff">&lt;</span><span style="color: #800000">resource</span> <span style="color: #ff0000">name</span><span style="color: #0000ff">=&quot;DisplayUserWelcome_AlternateUserWelcome&quot;</span><span style="color: #0000ff">&gt;</span>&#922;&#945;&#955;ώ&#962; &#959;&#961;ί&#963;&#945;&#964;&#949; &#963;&#964;&#959; {0}resource<span style="color: #0000ff">&gt;</span></pre>
</div>
<p>The same stands for fr-FR (French) language resources I checked. Probably for others too.</p>
<p>If you can read Greek see <a href="http://www.dotnetzone.gr/cs/forums/4025/ShowPost.aspx" target="_blank">my relevant posts in dotnetzone.gr</a>. Also if you are looking to solve the same problem for the Greek (Hellenic) language see <a href="http://www.dotnetzone.gr/cs/forums/3013/ShowPost.aspx#3013" target="_blank">these posts in dotnetzone.gr</a> where you can get the corrected translation for Greek text and buttons (it is attached to the post).</p>
]]></content:encoded>
			<wfw:commentRss>http://rousso.eu/?feed=rss2&amp;p=26</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
