<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	>
<channel>
	<title>Comments on: C# scripting in OpenSim</title>
	<atom:link href="http://justincc.org/blog/2008/11/21/c-scripting-in-opensim/feed/" rel="self" type="application/rss+xml" />
	<link>http://justincc.org/blog/2008/11/21/c-scripting-in-opensim/</link>
	<description>Justin Clark-Casey's personal website</description>
	<pubDate>Fri, 12 Mar 2010 07:26:57 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Dimple</title>
		<link>http://justincc.org/blog/2008/11/21/c-scripting-in-opensim/comment-page-1/#comment-2362</link>
		<dc:creator>Dimple</dc:creator>
		<pubDate>Sat, 14 Nov 2009 13:36:49 +0000</pubDate>
		<guid isPermaLink="false">http://justincc.wordpress.com/?p=285#comment-2362</guid>
		<description>Hey Justin,

It works!!! You add the reference and wallah ....

Thanks alot for your timely help!!!

Regards,
Dimple</description>
		<content:encoded><![CDATA[<p>Hey Justin,</p>
<p>It works!!! You add the reference and wallah &#8230;.</p>
<p>Thanks alot for your timely help!!!</p>
<p>Regards,<br />
Dimple</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: justincc</title>
		<link>http://justincc.org/blog/2008/11/21/c-scripting-in-opensim/comment-page-1/#comment-2351</link>
		<dc:creator>justincc</dc:creator>
		<pubDate>Fri, 13 Nov 2009 18:06:53 +0000</pubDate>
		<guid isPermaLink="false">http://justincc.wordpress.com/?p=285#comment-2351</guid>
		<description>@Dimple.  I just spent a bit of time investigating this and found out that it works fine under Mono (on Linux) and only fails under .NET on Windows.  I'm thinking of a more radical fix in the trunk line (possibly by allowing a full class to be used including using statements).

Unfortunately, in 0.6.7 things are a little more difficult since I don't really want to start putting in arbitrary hardcoded references.  If you're desparate, in Compiler.cs in the OpenSim.Region.ScriptEngine.Shared.CodeTools project, you could try adding an extra reference in the CompileFromDotNetText() method.  That is, where you see

            parameters.ReferencedAssemblies.Add(Path.Combine(rootPath,
                    "OpenSim.Region.ScriptEngine.Shared.dll"));
            parameters.ReferencedAssemblies.Add(Path.Combine(rootPath,
                    "OpenSim.Region.ScriptEngine.Shared.Api.Runtime.dll"));

you could try adding something like

            parameters.ReferencedAssemblies.Add("System.Xml.dll");

though I couldn't guarantee this will work.  If you try it, I'd be interested in the feedback.</description>
		<content:encoded><![CDATA[<p>@Dimple.  I just spent a bit of time investigating this and found out that it works fine under Mono (on Linux) and only fails under .NET on Windows.  I&#8217;m thinking of a more radical fix in the trunk line (possibly by allowing a full class to be used including using statements).</p>
<p>Unfortunately, in 0.6.7 things are a little more difficult since I don&#8217;t really want to start putting in arbitrary hardcoded references.  If you&#8217;re desparate, in Compiler.cs in the OpenSim.Region.ScriptEngine.Shared.CodeTools project, you could try adding an extra reference in the CompileFromDotNetText() method.  That is, where you see</p>
<p>            parameters.ReferencedAssemblies.Add(Path.Combine(rootPath,<br />
                    &#8220;OpenSim.Region.ScriptEngine.Shared.dll&#8221;));<br />
            parameters.ReferencedAssemblies.Add(Path.Combine(rootPath,<br />
                    &#8220;OpenSim.Region.ScriptEngine.Shared.Api.Runtime.dll&#8221;));</p>
<p>you could try adding something like</p>
<p>            parameters.ReferencedAssemblies.Add(&#8221;System.Xml.dll&#8221;);</p>
<p>though I couldn&#8217;t guarantee this will work.  If you try it, I&#8217;d be interested in the feedback.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dimple</title>
		<link>http://justincc.org/blog/2008/11/21/c-scripting-in-opensim/comment-page-1/#comment-2322</link>
		<dc:creator>Dimple</dc:creator>
		<pubDate>Thu, 12 Nov 2009 10:43:08 +0000</pubDate>
		<guid isPermaLink="false">http://justincc.wordpress.com/?p=285#comment-2322</guid>
		<description>Justin/Su,

I am getting same System.XML error (Error CS0234: The type or namespace name ‘Xml’ does not exist in the namespace ‘System’ (are you missing an assembly reference?)
, it recognizes System.IO, but cannot recognize System.XML. 

I am working on 0.6.7 opensim. Any ideas? Please Help!!!

Regards,
Dimple</description>
		<content:encoded><![CDATA[<p>Justin/Su,</p>
<p>I am getting same System.XML error (Error CS0234: The type or namespace name ‘Xml’ does not exist in the namespace ‘System’ (are you missing an assembly reference?)<br />
, it recognizes System.IO, but cannot recognize System.XML. </p>
<p>I am working on 0.6.7 opensim. Any ideas? Please Help!!!</p>
<p>Regards,<br />
Dimple</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: justincc</title>
		<link>http://justincc.org/blog/2008/11/21/c-scripting-in-opensim/comment-page-1/#comment-1060</link>
		<dc:creator>justincc</dc:creator>
		<pubDate>Mon, 28 Sep 2009 19:30:12 +0000</pubDate>
		<guid isPermaLink="false">http://justincc.wordpress.com/?p=285#comment-1060</guid>
		<description>@su - Not to my knowledge.  But I'd be happy to take a look at your code if you e-mail me your OpenSim.ini and the exact text of what you're trying to run.</description>
		<content:encoded><![CDATA[<p>@su - Not to my knowledge.  But I&#8217;d be happy to take a look at your code if you e-mail me your OpenSim.ini and the exact text of what you&#8217;re trying to run.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: su</title>
		<link>http://justincc.org/blog/2008/11/21/c-scripting-in-opensim/comment-page-1/#comment-1027</link>
		<dc:creator>su</dc:creator>
		<pubDate>Sat, 26 Sep 2009 03:49:13 +0000</pubDate>
		<guid isPermaLink="false">http://justincc.wordpress.com/?p=285#comment-1027</guid>
		<description>@justincc- yes i was using the full names. Sine my own code was not working, I just copy-pasted your example code. Is there anything else we have to add to your code?</description>
		<content:encoded><![CDATA[<p>@justincc- yes i was using the full names. Sine my own code was not working, I just copy-pasted your example code. Is there anything else we have to add to your code?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: justincc</title>
		<link>http://justincc.org/blog/2008/11/21/c-scripting-in-opensim/comment-page-1/#comment-847</link>
		<dc:creator>justincc</dc:creator>
		<pubDate>Tue, 22 Sep 2009 17:35:46 +0000</pubDate>
		<guid isPermaLink="false">http://justincc.wordpress.com/?p=285#comment-847</guid>
		<description>@su - I just tried the script I have in the blogpost on the most uptodate OpenSim (97c18caa766e2dd72b152b78827ef554f2054f8c, 22nd Sept 2009) and it works fine (and this under XEngine).  Are you using the full names of types (e.g. System.Xml.XmlTextReader rather than just XmlTextReader)?  Unfortunately, C#'s normal using statements will not work with OpenSim's C# 'scripts'.</description>
		<content:encoded><![CDATA[<p>@su - I just tried the script I have in the blogpost on the most uptodate OpenSim (97c18caa766e2dd72b152b78827ef554f2054f8c, 22nd Sept 2009) and it works fine (and this under XEngine).  Are you using the full names of types (e.g. System.Xml.XmlTextReader rather than just XmlTextReader)?  Unfortunately, C#&#8217;s normal using statements will not work with OpenSim&#8217;s C# &#8217;scripts&#8217;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: justincc</title>
		<link>http://justincc.org/blog/2008/11/21/c-scripting-in-opensim/comment-page-1/#comment-697</link>
		<dc:creator>justincc</dc:creator>
		<pubDate>Wed, 16 Sep 2009 20:09:30 +0000</pubDate>
		<guid isPermaLink="false">http://justincc.wordpress.com/?p=285#comment-697</guid>
		<description>@su - Hmm, thanks for the data, I'll go back and give this a test when I can.  It sounds a little strange to me.</description>
		<content:encoded><![CDATA[<p>@su - Hmm, thanks for the data, I&#8217;ll go back and give this a test when I can.  It sounds a little strange to me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: su</title>
		<link>http://justincc.org/blog/2008/11/21/c-scripting-in-opensim/comment-page-1/#comment-674</link>
		<dc:creator>su</dc:creator>
		<pubDate>Wed, 16 Sep 2009 00:01:55 +0000</pubDate>
		<guid isPermaLink="false">http://justincc.wordpress.com/?p=285#comment-674</guid>
		<description>i reported a bug to mantis (http://opensimulator.org/mantis/view.php?id=4137) and according to the response I got from Melanie, the allowed references are hardcoded into the compiler. But since it is working for you, does it mean that you can  change the compiler settings to include the references needed?</description>
		<content:encoded><![CDATA[<p>i reported a bug to mantis (http://opensimulator.org/mantis/view.php?id=4137) and according to the response I got from Melanie, the allowed references are hardcoded into the compiler. But since it is working for you, does it mean that you can  change the compiler settings to include the references needed?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: su</title>
		<link>http://justincc.org/blog/2008/11/21/c-scripting-in-opensim/comment-page-1/#comment-529</link>
		<dc:creator>su</dc:creator>
		<pubDate>Fri, 11 Sep 2009 05:39:41 +0000</pubDate>
		<guid isPermaLink="false">http://justincc.wordpress.com/?p=285#comment-529</guid>
		<description>I was able to resolve the second error. problem there was with the Script Engine. In my case, when the script engine was "XEngine", it did not work. Then I changed it to "ScriptEngine.DotNetEngine" and now the compiler detects C#. but the error with the compiler not being able to detect System.Xml is still there</description>
		<content:encoded><![CDATA[<p>I was able to resolve the second error. problem there was with the Script Engine. In my case, when the script engine was &#8220;XEngine&#8221;, it did not work. Then I changed it to &#8220;ScriptEngine.DotNetEngine&#8221; and now the compiler detects C#. but the error with the compiler not being able to detect System.Xml is still there</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: su</title>
		<link>http://justincc.org/blog/2008/11/21/c-scripting-in-opensim/comment-page-1/#comment-527</link>
		<dc:creator>su</dc:creator>
		<pubDate>Fri, 11 Sep 2009 04:29:44 +0000</pubDate>
		<guid isPermaLink="false">http://justincc.wordpress.com/?p=285#comment-527</guid>
		<description>Hi justincc,
I installed Opensim in my machine in standalone mode and set
AllowedCompilers = lsl,cs

I am also getting the same error that Robert got: “Primitive: Error compiling script:
The compiler for language “cs” is not in list of allowed compilers. Script will not be executed!”

I am using OpenSimulator Server 0.6.6. 
Were you being able to figure out the reason for this?

Rgds,
Su</description>
		<content:encoded><![CDATA[<p>Hi justincc,<br />
I installed Opensim in my machine in standalone mode and set<br />
AllowedCompilers = lsl,cs</p>
<p>I am also getting the same error that Robert got: “Primitive: Error compiling script:<br />
The compiler for language “cs” is not in list of allowed compilers. Script will not be executed!”</p>
<p>I am using OpenSimulator Server 0.6.6.<br />
Were you being able to figure out the reason for this?</p>
<p>Rgds,<br />
Su</p>
]]></content:encoded>
	</item>
</channel>
</rss>
