<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Null Exception when creating an entity</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Null Exception when creating an entity</description>
  <pubDate>Sun, 12 Apr 2026 21:02:59 -700</pubDate>
  <lastBuildDate>Thu, 29 Sep 2011 08:35:38 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=2982</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Null Exception when creating an entity : Hi Sam and mseeli,Please upload...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2982&amp;PID=11739#11739</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 2982<br /><strong>Posted:</strong> 29-Sep-2011 at 8:35am<br /><br />Hi Sam and mseeli,<div><br></div><div>Please upload a sample solution reproducing the issue. (against NorthwindIB please)</div><div><br></div><div>Thanks,</div><div>&nbsp; &nbsp;Silvio.</div>]]>
   </description>
   <pubDate>Thu, 29 Sep 2011 08:35:38 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2982&amp;PID=11739#11739</guid>
  </item> 
  <item>
   <title>Null Exception when creating an entity : I am struggling with a similar...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2982&amp;PID=11738#11738</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=945" rel="nofollow">mseeli</a><br /><strong>Subject:</strong> 2982<br /><strong>Posted:</strong> 29-Sep-2011 at 7:07am<br /><br />I am struggling with a similar problem:<div>CodeEntity is a DevForce Entity<br><div><span ="Apple-style-span" style="font-family: C&#111;nsolas; font-size: 13px; line-height: 18px; white-space: pre; "><span style="color:#2b91af;"><br></span></span></div><div><span ="Apple-style-span" style="font-family: C&#111;nsolas; font-size: 13px; line-height: 18px; white-space: pre; "><span style="color:#2b91af;">CodeEntity</span>&nbsp;ce&nbsp;=&nbsp;<span style="color:blue;">new</span>&nbsp;<span style="color:#2b91af;">CodeEntity</span>();</span></div><div><span ="Apple-style-span" style="font-family: C&#111;nsolas; font-size: 13px; line-height: 18px; white-space: pre; "><br></span></div><div><span ="Apple-style-span" style="font-family: C&#111;nsolas; font-size: 13px; line-height: 18px; white-space: pre; ">causes a null reference exception.</span></div><div><font ="Apple-style-span" face="C&#111;nsolas" size="2"><span ="Apple-style-span" style="line-height: 18px; white-space: pre;">All I want to do is to create a new empty CodeEntity.</span></font></div><div><font ="Apple-style-span" face="C&#111;nsolas" size="2"><span ="Apple-style-span" style="white-space: pre;">Without attaching it do a manager or accessing a database</span></font></div><div><font ="Apple-style-span" face="C&#111;nsolas" size="2"><span ="Apple-style-span" style="white-space: pre;"><br></span></font></div><div><font ="Apple-style-span" face="C&#111;nsolas" size="2"><span ="Apple-style-span" style="line-height: 18px; white-space: pre;">Could it have something to do that I try to do that in a console application&nbsp;</span></font></div><div><font ="Apple-style-span" face="C&#111;nsolas" size="2"><span ="Apple-style-span" style="line-height: 18px; white-space: pre;">and I only have DevForce for Silverlight?</span></font></div><div><font ="Apple-style-span" face="C&#111;nsolas" size="2"><span ="Apple-style-span" style="line-height: 18px; white-space: pre;"><br></span></font></div><div><font ="Apple-style-span" face="C&#111;nsolas" size="2"><span ="Apple-style-span" style="line-height: 18px; white-space: pre;">The same code works fine in Silverlight.</span></font></div><div><font ="Apple-style-span" face="C&#111;nsolas" size="2"><span ="Apple-style-span" style="line-height: 18px; white-space: pre;"><br></span></font></div><div><font ="Apple-style-span" face="C&#111;nsolas" size="2"><span ="Apple-style-span" style="line-height: 18px; white-space: pre;"><br></span></font></div><div><pre style="font-family:C&#111;nsolas;font-size:13;color:black;:white;"><br></pre><pre style="font-family:C&#111;nsolas;font-size:13;color:black;:white;"><br></pre></div></div>]]>
   </description>
   <pubDate>Thu, 29 Sep 2011 07:07:05 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2982&amp;PID=11738#11738</guid>
  </item> 
  <item>
   <title>Null Exception when creating an entity : It&amp;#039;s when I split the Silverlight...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2982&amp;PID=11734#11734</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1281" rel="nofollow">Sam</a><br /><strong>Subject:</strong> 2982<br /><strong>Posted:</strong> 28-Sep-2011 at 7:04pm<br /><br />It's when I split the Silverlight side out, so that the Model (shared code) is in a&nbsp;separate&nbsp;SL project to the SL app.<div><br></div><div>Nothing in DebugLog other than saying it's listening.</div><div>It will connect to the server and give a IsConnected=true.</div><div><br></div><div>If I put the shared code in the SL app and not the SL project file, then it works fine.</div><div><br></div><div>Regards,<br>Sam.</div><div><br><br></div>]]>
   </description>
   <pubDate>Wed, 28 Sep 2011 19:04:11 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2982&amp;PID=11734#11734</guid>
  </item> 
  <item>
   <title>Null Exception when creating an entity : I&amp;#039;ve had this problem before....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2982&amp;PID=11729#11729</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=449" rel="nofollow">smi-mark</a><br /><strong>Subject:</strong> 2982<br /><strong>Posted:</strong> 28-Sep-2011 at 2:21pm<br /><br />I've had this problem before. I can't quite remember what the issue was though, I think it was in a unit test project. <br><br>Is anything showing up in the debuglog?<br>]]>
   </description>
   <pubDate>Wed, 28 Sep 2011 14:21:45 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2982&amp;PID=11729#11729</guid>
  </item> 
  <item>
   <title>Null Exception when creating an entity : Hi Sam,If I understand correctly...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2982&amp;PID=11727#11727</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 2982<br /><strong>Posted:</strong> 28-Sep-2011 at 11:45am<br /><br />Hi Sam,<div><br></div><div>If I understand correctly you are trying to have your model in a project separated from the Web project.&nbsp;</div><div><br></div><div>If that's the case, have you taken a look at the steps provided in the <a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/separate-model-project" target="_blank">DevForce Resource Center</a>?</div><div><br></div><div>If not, could you upload a simple solution reproducing the issue?</div><div><br></div><div>Thanks.</div><div>&nbsp; &nbsp;Silvio.</div>]]>
   </description>
   <pubDate>Wed, 28 Sep 2011 11:45:33 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2982&amp;PID=11727#11727</guid>
  </item> 
  <item>
   <title>Null Exception when creating an entity : Hello,Can someone help me?I have...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2982&amp;PID=11725#11725</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1281" rel="nofollow">Sam</a><br /><strong>Subject:</strong> 2982<br /><strong>Posted:</strong> 28-Sep-2011 at 5:30am<br /><br /><div>Hello,</div><div>Can someone help me?</div><div><br></div><div>I have a very simple model/web to Silverlight App that is functioning fine.</div><div><br></div><div>However; if I move the DomainModel generated code to it's own Silverlight Library project, add all the same references that are in the Silverlight Application, reference the SL library and run the same thing... When I try to create an entity (any entity), I'm getting a null exception.</div><div><br></div><div>e.g.&nbsp;</div><div>var myHero = new Hero();</div><div>Object reference not set to an instance of an object.</div><div>&nbsp;at IdeaBlade.EntityModel.Entity..ctor()</div><div><br></div><div>Any suggestions on what the issue is or where I can start looking?</div><div>Regards,</div><div>Sam.</div><div><br></div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Wed, 28 Sep 2011 05:30:23 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2982&amp;PID=11725#11725</guid>
  </item> 
 </channel>
</rss>