<?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 : Error in custom .Create() method</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : Error in custom .Create() method</description>
  <pubDate>Thu, 16 Apr 2026 12:03:41 -700</pubDate>
  <lastBuildDate>Mon, 04 Oct 2010 10:41:46 -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=2208</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>Error in custom .Create() method : ok finally i found the problem... i...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2208&amp;PID=8701#8701</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=239" rel="nofollow">sherpedro</a><br /><strong>Subject:</strong> 2208<br /><strong>Posted:</strong> 04-Oct-2010 at 10:41am<br /><br />ok finally i found the problem...<DIV>i was using an entity from a particular entitymanager as an &nbsp;argument to .Create() method of an entity from a different entitymanager. I was connected&nbsp;through an EntityServer_XXX, so the error returned was not precise enough to find out about the problem. Switch back to local mode for debugging and then the error became more precise. </DIV>]]>
   </description>
   <pubDate>Mon, 04 Oct 2010 10:41:46 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2208&amp;PID=8701#8701</guid>
  </item> 
  <item>
   <title>Error in custom .Create() method : Hi, i have problems with new entity...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2208&amp;PID=8689#8689</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=239" rel="nofollow">sherpedro</a><br /><strong>Subject:</strong> 2208<br /><strong>Posted:</strong> 01-Oct-2010 at 11:43am<br /><br />Hi, i have problems with new entity creation process through .Create() method. <DIV>&nbsp;</DIV><DIV>Here is the stack trace error i received on the .AddToManager line of code</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityManager.CheckForPkIdentityProperty(EntityWrapper wrapper)<BR>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityManager.AddEntity(Object entity)<BR>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityAspect.AddToManager()<BR>&nbsp;&nbsp; at Qualicode.MayaModel.T_Maya_UserSetting.Create(EntityManager manager, String pBaseRootNameSpace, T_Maya_User poUser) in C:\RepertoireDeTravail\MAYA\Qualicode.DomainModel\T_Maya_UserSetting.cs:line 38<BR>&nbsp;&nbsp; at Qualicode.Business.WinClient.Model.MayaPortalModel.GetNewUserSetting(T_Maya_User poOwnerUser, String pBaseRootNameSpace) in C:\RepertoireDeTravail\MAYA\Qualicode.Business.WinClient\Model\MayaPortalModel.cs:line 133<BR>&nbsp;&nbsp; at Qualicode.Business.WinClient.Presenter.MayaEngine.UserSettingManager_NewUserSettingsNeeded(Object sender, NewUserSettingsEventArgs e) in C:\RepertoireDeTravail\MAYA\Qualicode.Business.WinClient\Presenter\MayaEngine.cs:line 1961<BR>&nbsp;&nbsp; at Qualicode.Core.UserSettingManager.Key(String pNameSpace) in C:\RepertoireDeTravail\MAYA\Qualicode.Core\UserSettingManager.cs:line 82<BR>&nbsp;&nbsp; at Qualicode.Business.WinClient.View.frmMain.SaveUserSettings(UserSettingManager&amp; poUserSettingManager) in C:\RepertoireDeTravail\MAYA\Qualicode.Business.WinClient\View\frmMain.cs:line 333<BR>&nbsp;&nbsp; at Qualicode.Business.WinClient.Presenter.MayaEngine._MainForm_FormClosing(Object poSender, FormClosingEventArgs poEventArgs) in C:\RepertoireDeTravail\MAYA\Qualicode.Business.WinClient\Presenter\MayaEngine.cs:line 1932<BR>&nbsp;&nbsp; at System.Windows.Forms.Form.OnFormClosing(FormClosingEventArgs e)</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>I see that the error is raise on the IdeaBlade.EntityModel.EntityManager.<strong>CheckForPkIdentityProperty</strong> call.</DIV><DIV>The error i received is <strong>"Object reference not set to an instance of an object."</strong></DIV><DIV>&nbsp;</DIV><DIV>Everything was working fine couple of days ago, but now we just can't add new entities. Fetching and updating existing data actually works fine!</DIV><DIV>&nbsp;</DIV><DIV>We're working on a n-tiers architecture with multiple Domain models (different DataSourceKeyName) each with multiple KeyExtensions (allowing lan&nbsp;or wan acces to data).</DIV><DIV>&nbsp;</DIV><DIV>Any help would be great. Thanks.</DIV><DIV>Pierre</DIV><DIV>&nbsp;</DIV><span style="font-size:10px"><br /><br />Edited by sherpedro - 05-Oct-2010 at 10:38am</span>]]>
   </description>
   <pubDate>Fri, 01 Oct 2010 11:43:44 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2208&amp;PID=8689#8689</guid>
  </item> 
 </channel>
</rss>