﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>c360 Forums / SDK for Microsoft CRM / Version 3 Product Questions / Installation  / NullReferenceException from local machine / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>c360 Forums</description><link>http://www.c360.com/Forums/</link><webMaster>support@c360.com</webMaster><lastBuildDate>Sat, 22 Nov 2008 14:11:48 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: NullReferenceException from local machine</title><link>http://www.c360.com/Forums/Topic1223-40-1.aspx</link><description>Thank you,&lt;/P&gt;&lt;P&gt;that fixed my problem.&lt;/P&gt;&lt;P&gt;Aki</description><pubDate>Thu, 01 Mar 2007 11:20:06 GMT</pubDate><dc:creator>Aki Rova</dc:creator></item><item><title>RE: NullReferenceException from local machine</title><link>http://www.c360.com/Forums/Topic1223-40-1.aspx</link><description>The problem you are experiencing is due to the fact that c360's Multi-Currency Manager (MCM) is installed on your CRM system but not on your dev machine. Our SDK Grid is designed to automatically convert Currency fields into the configured default currency but this feature is causing the error in your environment. &lt;P&gt;I received the following explanation from our dev group regarding your situation:&lt;/P&gt;&lt;P dir=ltr style="MARGIN-RIGHT: 0px"&gt;[quote]Here is what is happening that is causing this error with the customer’s SDK Grid.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;When the grid processes its result set it has a check to see if the MCM entities exist in CRM&lt;/LI&gt;&lt;LI&gt;If the MCM entities exist it processes the result set with the currency values defined in the MCM entities.&lt;/LI&gt;&lt;LI&gt;First though it tries to find the default currency symbol, this can either be the CRM Organization currency symbol or the Global default that is defined in MCM. &lt;/LI&gt;&lt;/UL&gt;&lt;P dir=ltr style="MARGIN-RIGHT: 0px"&gt;The problem is occurring when the MCM factory is trying to find the Config.dat file that MCM stores this Global default currency symbol. The MCM factory checks the registry for the c360ProductFolder key to help build a path to the Config.dat file, since this is an SDK install on a different machine this key and file do not exist on the system. And now we get this error.[/quote] &lt;/P&gt;&lt;P&gt;You can fix this problem by adding the registry key that the SDK is looking for. In this key, you specify a 'dummy' location and the SDK will realize that that the expected config file is not present and will simply use the global default currency symbol.&lt;OL&gt;&lt;LI&gt;Add a key called "c360" under "HKey_Local_Machine\Software&lt;/LI&gt;&lt;LI&gt;Add a key called "c360ProductFolder" under this new "c360" key.&lt;/LI&gt;&lt;LI&gt;Specify a 'dummy' value for this new key.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt; &lt;IMG src="http://www.c360.com/Forums/Uploads/Images/d6a38e3e-b4c2-4632-a718-d872.png"&gt;&lt;P&gt;However, our SDK should be a little more forgiving and it should be able to handle situations where the expect registry key is missing. I will report this as an enhancement request for a future version.&lt;P&gt;Let me know if this helps.</description><pubDate>Thu, 01 Mar 2007 11:12:26 GMT</pubDate><dc:creator>Jeremie Desautels</dc:creator></item><item><title>RE: NullReferenceException from local machine</title><link>http://www.c360.com/Forums/Topic1223-40-1.aspx</link><description>[quote][b]Jeremie Desautels (2/27/2007)[/b][hr]I just want to be sure I understand your scenario:&lt;OL&gt;&lt;LI&gt;CRM and c360 products are installed on a server&lt;/LI&gt;&lt;LI&gt;VS.NET, SDK and your custom code are a seperate machine&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Is this correct?&lt;/P&gt;&lt;P&gt;[/quote]&lt;/P&gt;&lt;P&gt;Correct.&lt;/P&gt;&lt;P&gt;[quote]&lt;/P&gt;&lt;P&gt;In the mean time, can you share with me what c360 products (other than the SDK) where installed on your dev machine if any?[/quote]&lt;P&gt;Dev machine has never had c360 products installed. &lt;P&gt;Aki Rova</description><pubDate>Wed, 28 Feb 2007 14:40:59 GMT</pubDate><dc:creator>Aki Rova</dc:creator></item><item><title>RE: NullReferenceException from local machine</title><link>http://www.c360.com/Forums/Topic1223-40-1.aspx</link><description>I just want to be sure I understand your scenario:&lt;OL&gt;&lt;LI&gt;CRM and c360 products are installed on a server&lt;/LI&gt;&lt;LI&gt;VS.NET, SDK and your custom code are a seperate machine&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Is this correct?&lt;/P&gt;&lt;P&gt;The reason I ask is because the error you are experiencing occurs when the SDK attempts to read the registry to get location of the MultiCurrency Management (MCM) in order to properly display the currency data in your grid. However, since MCM is installed on the server and not on your dev machine, the expected registry keys are not be found which causes the error.&lt;/P&gt;&lt;P&gt;The real question therefore is: how come the SDK "thinks" that MCM is installed on your dev machine and tries to read some of its registry keys when in fact MCM is not installed on your machine?&lt;/P&gt;&lt;P&gt;I can't answer that question. I will ask someone on ou dev group to help me fogure this out.&lt;/P&gt;&lt;P&gt;In the mean time, can you share with me what c360 products (other than the SDK) where installed on your dev machine if any?</description><pubDate>Tue, 27 Feb 2007 17:12:35 GMT</pubDate><dc:creator>Jeremie Desautels</dc:creator></item><item><title>NullReferenceException from local machine</title><link>http://www.c360.com/Forums/Topic1223-40-1.aspx</link><description>We have CRM server and SQL server in same box. Several c360 addons installed with license and are working. However, our box has ssl certificate for IFD site and I have not been able to make c360 addons to work using mscrmservices from that site, so it is pointed to:&lt;/P&gt;&lt;P&gt;&amp;lt;add key="WebServicesUrl" value="&lt;A href='http://PCRM4:5555/MSCRMServices/"/'&gt;http://PCRM4:5555/MSCRMServices/"/&lt;/A&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;We still have some kinds to straighten out with the configuration, for example if we navigate to an entity from outlook and try to use relationship explorer, it will ask for login even if we already are logged on to crm server. Once this login through web interface is done, user does not need to do it again. I assume it is because user needs to log on for both 5555 and IFD site's mscrmservices.&lt;/P&gt;&lt;P&gt;But that is mostly background, my main question is about SDK in local machine:&lt;/P&gt;&lt;P&gt;Installed SDK in local machine, examples running as long as it does not pull data from CRM server. This has been happening on all the grid examples, for example 4.3b. The following error happens whether or not MultiCurrency is installed on server or not:&lt;/P&gt;&lt;FONT size=1&gt;&lt;P&gt;Source:&lt;BR&gt;c360.Toolkit&lt;/P&gt;&lt;P&gt;Error Message:&lt;BR&gt;Object reference not set to an instance of an object.&lt;/P&gt;&lt;P&gt;Stack Trace:&lt;BR&gt;   at c360.Toolkit.MultiCurrency.Settings.get_GetInstalledFolder()&lt;BR&gt;   at c360.Toolkit.MultiCurrency.Settings..ctor(String addonid)&lt;BR&gt;   at c360.Toolkit.MultiCurrency.MultiCurrencyService.ᜁ()&lt;BR&gt;   at c360.Toolkit.MultiCurrency.MultiCurrencyService.ᜀ(XmlDocument A_0, Int32 A_1)&lt;BR&gt;   at c360.Toolkit.MultiCurrency.MultiCurrencyService.ProcessGridResultsData(XmlDocument objXmlData, Int32 entityType)&lt;BR&gt;   at c360.Toolkit.MsCrm.Pages.GridData.ᜀ(XmlDocument A_0, String A_1, String[] A_2, String[] A_3)&lt;BR&gt;   at c360.Toolkit.MsCrm.Pages.GridData.ExportToMedia(XmlDocument objXmlData, String strMedia, String[] strFieldsCaption, String[] strFieldsXPath)&lt;BR&gt;   at c360.Toolkit.MsCrm.Pages.GridData.ᜀ()&lt;BR&gt;   at c360.Toolkit.MsCrm.Pages.GridData.Render(HtmlTextWriter writer)&lt;BR&gt;   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)&lt;BR&gt;   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)&lt;BR&gt;   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)&lt;BR&gt;   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)&lt;/P&gt;&lt;P&gt;Assembly name: c360.Toolkit&lt;BR&gt;Assembly version: 3.0.8.220&lt;/P&gt;&lt;P&gt;Calling assembly name: WebDev.WebHost&lt;BR&gt;Calling assembly version: 8.0.0.0&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial size=2&gt;-Aki Rova&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Mon, 26 Feb 2007 12:18:30 GMT</pubDate><dc:creator>Aki Rova</dc:creator></item></channel></rss>