Hi, i have problems with new entity creation process through .Create() method.
Here is the stack trace error i received on the .AddToManager line of code
at IdeaBlade.EntityModel.EntityManager.CheckForPkIdentityProperty(EntityWrapper wrapper)
at IdeaBlade.EntityModel.EntityManager.AddEntity(Object entity)
at IdeaBlade.EntityModel.EntityAspect.AddToManager()
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
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
at Qualicode.Business.WinClient.Presenter.MayaEngine.UserSettingManager_NewUserSettingsNeeded(Object sender, NewUserSettingsEventArgs e) in C:\RepertoireDeTravail\MAYA\Qualicode.Business.WinClient\Presenter\MayaEngine.cs:line 1961
at Qualicode.Core.UserSettingManager.Key(String pNameSpace) in C:\RepertoireDeTravail\MAYA\Qualicode.Core\UserSettingManager.cs:line 82
at Qualicode.Business.WinClient.View.frmMain.SaveUserSettings(UserSettingManager& poUserSettingManager) in C:\RepertoireDeTravail\MAYA\Qualicode.Business.WinClient\View\frmMain.cs:line 333
at Qualicode.Business.WinClient.Presenter.MayaEngine._MainForm_FormClosing(Object poSender, FormClosingEventArgs poEventArgs) in C:\RepertoireDeTravail\MAYA\Qualicode.Business.WinClient\Presenter\MayaEngine.cs:line 1932
at System.Windows.Forms.Form.OnFormClosing(FormClosingEventArgs e)
I see that the error is raise on the IdeaBlade.EntityModel.EntityManager.CheckForPkIdentityProperty call.
The error i received is "Object reference not set to an instance of an object."
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!
We're working on a n-tiers architecture with multiple Domain models (different DataSourceKeyName) each with multiple KeyExtensions (allowing lan or wan acces to data).
Any help would be great. Thanks.
Pierre
Edited by sherpedro - 05-Oct-2010 at 10:38am