﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Coolite Forums / Coolite Toolkit / *Premium Help*  / Getting exception error when running in .Net 2.0 runtime / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Coolite Forums</description><link>http://www.coolite.com/forums/</link><webMaster>do-not-reply@coolite.com</webMaster><lastBuildDate>Fri, 12 Mar 2010 04:42:29 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Getting exception error when running in .Net 2.0 runtime</title><link>http://www.coolite.com/forums/Topic1765-16-1.aspx</link><description>[quote][b]stevejebson (9/16/2008)[/b][hr]  &lt;p&gt;I'd be interested to know if we are the only ones restrained by .Net 2.0 ? Are we the only ones fitting coolite into existing applications ?&lt;br&gt;&lt;/p&gt;[/quote]&lt;br&gt;&lt;br&gt;Hello,&lt;br&gt;&lt;br&gt;I thought I would chyme in here; we are using Coolite on an existing Microsoft .NET 2.0 application.  However, we own our production hosting servers and we have Microsoft .NET 3.5 installed.&lt;br&gt;&lt;br&gt;We had to install Microsoft .NET 3.5 on our production servers a month ago for other reasons; and required nothing from our developers.&lt;br&gt;&lt;br&gt;I'm going to install .NET 2.0 on a vmware when I get home tonight and try recompiling, I'll let you know how that goes.&lt;br&gt;&lt;br&gt;Cheers,&lt;br&gt;Timothy&lt;br&gt;</description><pubDate>Tue, 16 Sep 2008 09:01:57 GMT</pubDate><dc:creator>Timothy</dc:creator></item><item><title>RE: Getting exception error when running in .Net 2.0 runtime</title><link>http://www.coolite.com/forums/Topic1765-16-1.aspx</link><description>  &lt;P&gt;Hi Geoffrey,&lt;BR&gt;&lt;BR&gt;I tried the 0.6 with Json 1.3.0 as well. I remember you saying before that at some stage coolite was going to require 3.5 as a prerequisite, do you think we are at that stage now ? or do you think it's a possibility that you will get 0.6 to be 2.0, 3.0 &amp;amp; 3.5 independant ? It's just that you'll have a better idea of the possibility of replacing the Json.TextWriter with it's 1.3.0 equivalant. If you think it unlikely then we will probably just revert to 0.4.6 and try to develop from that as the base.&lt;BR&gt;&lt;BR&gt;I'd be interested to know if we are the only ones restrained by .Net 2.0 ? Are we the only ones fitting coolite into existing applications ?&lt;BR&gt;&lt;BR&gt;The only problem i can forsee is that i'm sure i'm going to want to raise questions and queries on 0.4.6 and if we truly are alone in this i can't see it working very well for you or us !&lt;BR&gt;&lt;BR&gt;Not looking good... shame 'cos i love the product, and so does the client !&lt;BR&gt;&lt;BR&gt;I might have to change my sig ;)&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;/P&gt;</description><pubDate>Tue, 16 Sep 2008 08:34:37 GMT</pubDate><dc:creator>stevejebson</dc:creator></item><item><title>RE: Getting exception error when running in .Net 2.0 runtime</title><link>http://www.coolite.com/forums/Topic1765-16-1.aspx</link><description>Hi Steve,&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I finally was able to add the v0.4.6 tag to the /tags/ folder. You should now be able to download and rebuild the .sln. &lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;</description><pubDate>Tue, 16 Sep 2008 05:13:47 GMT</pubDate><dc:creator>geoffrey.mcgill</dc:creator></item><item><title>RE: Getting exception error when running in .Net 2.0 runtime</title><link>http://www.coolite.com/forums/Topic1765-16-1.aspx</link><description>I might just have to send you the v0.4.6 source via email. Adding to the /tags/ directory is not going very well. I'll send an update shortly.&lt;div&gt;&lt;br&gt;&lt;/div&gt;</description><pubDate>Mon, 15 Sep 2008 15:13:02 GMT</pubDate><dc:creator>geoffrey.mcgill</dc:creator></item><item><title>RE: Getting exception error when running in .Net 2.0 runtime</title><link>http://www.coolite.com/forums/Topic1765-16-1.aspx</link><description>Hi Steve,&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I'm just committing v0.4.6 to the svn /tags/ directory. It's a big one and will take a few minutes to complete, but once committed you should be able to build v0.4.6 in .NET 2.0 with Json.NET 1.3.1.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I tried to compile the current v0.6 build against Json.NET 1.3.1, and of course it failed in several places. There was a spot in PropertyGrid.cs where we're using some LINQ JObject which we might be able to remove. &lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;</description><pubDate>Mon, 15 Sep 2008 14:36:53 GMT</pubDate><dc:creator>geoffrey.mcgill</dc:creator></item><item><title>RE: Getting exception error when running in .Net 2.0 runtime</title><link>http://www.coolite.com/forums/Topic1765-16-1.aspx</link><description>Hi Geoffrey,&lt;BR&gt;&lt;BR&gt;I've replaced the json verison 2.0 with 1.3.0 in a copy of 0.5.4&lt;BR&gt;&lt;BR&gt;It appears that references to json 2.0 go back to coolite vsn 0.5.0 is it possible to get a pre 0.5.0 version so i can see how to replace the JsonTextWriter (..core/ClientConfig.cs, ../utilities/json.cs) and i need to work out what the WriteStartConstructor in JavascriptExtDateTimeConvertor.cs needs converting to.&lt;BR&gt;&lt;BR&gt;&lt;FONT size=2&gt;&lt;/FONT&gt;</description><pubDate>Mon, 15 Sep 2008 12:20:15 GMT</pubDate><dc:creator>stevejebson</dc:creator></item><item><title>RE: Getting exception error when running in .Net 2.0 runtime</title><link>http://www.coolite.com/forums/Topic1765-16-1.aspx</link><description> Hi Geoffrey,&lt;BR&gt;&lt;BR&gt;I think we tried something along these lines already, i.e. reverting back to Json 1.3.1 and i think there was only 1 reference that caused any problems and that was to JsonTextWriter() so i think i'll need to trawl back and see what that was originally and see if we can make adjustments, bit tricky though as it's gonna be a bit hit and miss especially with my experience. Still, worth a try though.&lt;BR&gt;&lt;BR&gt;I'll let you know. If it's ok i may end up posting a couple of related questions within this topic to see if it prompts any memories or suggestions.&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;</description><pubDate>Mon, 15 Sep 2008 08:51:19 GMT</pubDate><dc:creator>stevejebson</dc:creator></item><item><title>RE: Getting exception error when running in .Net 2.0 runtime</title><link>http://www.coolite.com/forums/Topic1765-16-1.aspx</link><description>Hi Steve,&lt;br&gt;&lt;br&gt;Ya, from everything I've read, the .NET 3.5 framework must be installed on the machine. The IIS application does not necessarily need to run under .NET 3.5, but I guess the call to System.Core.dll (.NET 3.5) must be available. That's all very unfortunate. Adding the System.Core.dll to the projects /bin/ folder as outlined by Hanselman does seem like a good solution and "theoretically" should be sandboxed and not escape outside the walls of the current iis application. But, of course, that would be best tried on a box with a fairly low "oh shit... what have I just done??" factor. &lt;br&gt;&lt;br&gt;The Coolite.Ext.Web Project started with Json.NET 1.3.1 and we did not upgrade to Json.NET 2.0 until our v0.5 release. If I remember correctly, I think one area in Json.NET that changed from 1.3 -&amp;gt; 2.0 was inheriting from the JsonConverter class. You might need to make a few "adjustments" to our JsonConverter extensions in \trunk\Coolite.Ext.Web\Utility\JsonConverter\ to regress them back to the Json.NET 1.3 signature, although I have a sneaky suspecion they might just compile untouched. &lt;br&gt;&lt;br&gt;Just drop a compiled Json.NET 1.3.x .dll into the following location:&lt;br&gt;&lt;br&gt;\Coolite.Toolkit\trunk\Coolite.Ext.Web\Build\Resources\ReferenceAssemblies\Newtonsoft.Json\&lt;br&gt;&lt;br&gt;You'll have to delete and then re-add the Project Reference to the new Json.NET assembly. I believe the Assembly must also be StrongNamed (signed) or Coolite.Ext.Web might choke, but maybe not.&lt;br&gt;&lt;br&gt;</description><pubDate>Mon, 15 Sep 2008 08:25:38 GMT</pubDate><dc:creator>geoffrey.mcgill</dc:creator></item><item><title>RE: Getting exception error when running in .Net 2.0 runtime</title><link>http://www.coolite.com/forums/Topic1765-16-1.aspx</link><description>&lt;P&gt; Hi Geoffrey,&lt;BR&gt;&lt;BR&gt;JohnBartram has just joined the forum but can't reply in this forum due to his status, he's the developer guy that i've been working with, this is the post he wanted to make...&lt;BR&gt;&lt;BR&gt;[postbyproxy]&lt;BR&gt;&lt;BR&gt;Hi there, &lt;/P&gt;&lt;P&gt;As a developer with the company responsible for the hosting of the application that will ultimately contain the coolite components, I thought it might help to explain our situation?&lt;/P&gt;&lt;P&gt;The coolite dependant application is hosted on a shared platform along with a number of other varied applications that we have developed for our other clients. The common factor is that they have all been developed in .Net 2.0, unfortunately the next step in progressing the .Net versions all require that .Net 2.0 SP1 is applied and it is known that this introduced a number of changes to the framework that we, as the developers of the applications, would have to take account of and ultimately have to regression test for each individual project. &lt;/P&gt;&lt;P&gt;While in the future we will be doing this, the resource in both time and manpower is considerable, and until that time we cannot jeopardise the stability of the applications hosted on our servers.&lt;/P&gt;&lt;P&gt;We have attempted to rebuild both the coolite and json assemblies in .Net 2.0 however there is a dependency within the required implementation of JSON that needs .Net 3.5 – hence we seem to be a little stuck?&lt;/P&gt;&lt;P&gt;Thanks for your time &lt;/P&gt;&lt;P&gt;John Bartram&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;[/postbyproxy]&lt;BR&gt;&lt;BR&gt;&lt;/P&gt;</description><pubDate>Mon, 15 Sep 2008 07:50:45 GMT</pubDate><dc:creator>stevejebson</dc:creator></item><item><title>RE: Getting exception error when running in .Net 2.0 runtime</title><link>http://www.coolite.com/forums/Topic1765-16-1.aspx</link><description> thanks Geoffrey, i'm crossing my fingers here over the pond.&lt;BR&gt;&lt;BR&gt;</description><pubDate>Fri, 12 Sep 2008 13:01:33 GMT</pubDate><dc:creator>stevejebson</dc:creator></item><item><title>RE: Getting exception error when running in .Net 2.0 runtime</title><link>http://www.coolite.com/forums/Topic1765-16-1.aspx</link><description>I've confirmed that the samples.coolite.com web app is running under .NET 2.0, although I've also confirmed that the .NET 3.5 framework has been installed on the server. Probably got installed via Windows Update.&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;It does appear that the .NET 3.5 framework must be available on the server, although the application does not necessarily need to run under .NET 3.5.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I'm still investigating.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;</description><pubDate>Fri, 12 Sep 2008 12:50:46 GMT</pubDate><dc:creator>geoffrey.mcgill</dc:creator></item><item><title>RE: Getting exception error when running in .Net 2.0 runtime</title><link>http://www.coolite.com/forums/Topic1765-16-1.aspx</link><description> The problem is that they are not my servers, i can certainly try and convince them but the disclaimers are bound to make them nervous. I'd do it in a flash of course ;)&lt;BR&gt;&lt;BR&gt;Does this then confirm that we need 3.5 in some guise or another to run coolite ? I'm curious how you and Timothy are running as you've both intimated to me that you're running on runtime 2.0 servers ??&lt;BR&gt;&lt;BR&gt;</description><pubDate>Fri, 12 Sep 2008 10:35:23 GMT</pubDate><dc:creator>stevejebson</dc:creator></item><item><title>RE: Getting exception error when running in .Net 2.0 runtime</title><link>http://www.coolite.com/forums/Topic1765-16-1.aspx</link><description>Hi Steve,&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Scott Hanselman has a post which speaks to adding the .NET 3.5 System.Core.dll to your projects /bin/ folder, see &lt;a href="http://www.hanselman.com/blog/DeployingASPNETMVCOnASPNET20.aspx"&gt;http://www.hanselman.com/blog/DeployingASPNETMVCOnASPNET20.aspx&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;That may solve the problem, although he provides a list of disclaimers regarding the technique. &lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I'm doing some more research as well.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;</description><pubDate>Fri, 12 Sep 2008 10:08:02 GMT</pubDate><dc:creator>geoffrey.mcgill</dc:creator></item><item><title>RE: Getting exception error when running in .Net 2.0 runtime</title><link>http://www.coolite.com/forums/Topic1765-16-1.aspx</link><description> I've got 3.5 on my machine, running VS 2008, it's on the hosting machine that the problem is. Are you saying that we must have 3.5 on that machine ? If so why would we need (or anybody else) build to 2.0 ??&lt;BR&gt;&lt;BR&gt;</description><pubDate>Fri, 12 Sep 2008 09:30:42 GMT</pubDate><dc:creator>stevejebson</dc:creator></item><item><title>RE: Getting exception error when running in .Net 2.0 runtime</title><link>http://www.coolite.com/forums/Topic1765-16-1.aspx</link><description>You need to have the Microsoft .NET Framework 3.5 installed on your machine, you can download the framework free from Microsofts website; and its a boot pack for 2.0.&lt;br&gt;&lt;br&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=333325fd-ae52-4e35-b531-508d977d32a6&amp;amp;DisplayLang=en"&gt;Click here to download&lt;/a&gt;&lt;br&gt;&lt;br&gt;Let me know if you have any questions.&lt;br&gt;&lt;br&gt;Cheers,&lt;br&gt;Timothy&lt;br&gt;</description><pubDate>Fri, 12 Sep 2008 09:21:09 GMT</pubDate><dc:creator>Timothy</dc:creator></item><item><title>Getting exception error when running in .Net 2.0 runtime</title><link>http://www.coolite.com/forums/Topic1765-16-1.aspx</link><description>&lt;P&gt;I've built and targeted 2.0 as the runtime but it falls over with the error below i.e. Json has references to System.Core according to the Stack Trace. If coolite is using Json 2.0 that was built as 3.5 then how can this run under 2.0 Am i missing something in how i'm building and delpoying ?&lt;BR&gt;&lt;BR&gt;[code]&lt;BR&gt;Could not load file or assembly 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified. &lt;BR&gt;Description: 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. &lt;/P&gt;&lt;P&gt;Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.&lt;/P&gt;&lt;P&gt;Source Error: &lt;/P&gt;&lt;P&gt;An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  &lt;/P&gt;&lt;P&gt;Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' could not be loaded.&lt;/P&gt;&lt;P&gt;&lt;BR&gt;WRN: Assembly binding logging is turned OFF.&lt;BR&gt;To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.&lt;BR&gt;Note: There is some performance penalty associated with assembly bind failure logging.&lt;BR&gt;To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Stack Trace: &lt;/P&gt;&lt;P&gt;&lt;BR&gt;[FileNotFoundException: Could not load file or assembly 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.]&lt;BR&gt;   Newtonsoft.Json.JsonSerializer.Serialize(JsonWriter jsonWriter, Object value) +0&lt;BR&gt;   Coolite.Ext.Web.JSON.Serialize(Object obj) +177&lt;BR&gt;   Coolite.Ext.Web.ListItemCollectionJsonConverter.WriteJson(JsonWriter writer, Object value) +253&lt;BR&gt;   Coolite.Ext.Web.ClientConfig.ToExtConfig(PropertyInfo property, Object obj, ClientConfigAttribute attr) +4012&lt;BR&gt;   Coolite.Ext.Web.ClientConfig.Process(Object obj&lt;BR&gt; &lt;BR&gt;&lt;BR&gt;[/code]&lt;/P&gt;</description><pubDate>Fri, 12 Sep 2008 09:18:44 GMT</pubDate><dc:creator>stevejebson</dc:creator></item></channel></rss>