<?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 : NullReferenceException during Entity creation</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : NullReferenceException during Entity creation</description>
  <pubDate>Wed, 13 May 2026 22:41:08 -700</pubDate>
  <lastBuildDate>Thu, 28 Jul 2011 09:40:39 -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=2843</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>NullReferenceException during Entity creation : Thanks this solved my problem....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2843&amp;PID=11324#11324</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1061" rel="nofollow">nazbrok</a><br /><strong>Subject:</strong> 2843<br /><strong>Posted:</strong> 28-Jul-2011 at 9:40am<br /><br />Thanks this solved my problem.<div><br></div><div><br></div>]]>
   </description>
   <pubDate>Thu, 28 Jul 2011 09:40:39 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2843&amp;PID=11324#11324</guid>
  </item> 
  <item>
   <title>NullReferenceException during Entity creation :   Hi nazbrok,Since the problem...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2843&amp;PID=11319#11319</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 2843<br /><strong>Posted:</strong> 28-Jul-2011 at 8:06am<br /><br />Hi nazbrok,<div>&nbsp;</div><div>Since the problem only occurs the first time you construct the entity, it's likely a timing issue between DevForce's loading of metadata for the dynamic content and your constructor call.&nbsp;&nbsp; </div><div>&nbsp;</div><div>When dynamic content is loaded there are two possible events to listen for, depending on how you load the content.&nbsp; The CompositionHost will fire a Recomposed event, and if you're using a DynamicXap, that will fire a Loaded event.&nbsp; In either case, the event signals that DevForce has finished loading the dynamic content.&nbsp; In your case, DevForce hasn't yet constructed&nbsp;metadata for entities in your model, so that ugly NullReferenceException is thrown because the metdata is missing.</div><div>&nbsp;</div><div>Here's information from the DRC on the various ways to load dynamic content, and how to listen for its events - <a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/&#111;n-demand-discovery" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/on-demand-discovery</a>.</div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Thu, 28 Jul 2011 08:06:42 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2843&amp;PID=11319#11319</guid>
  </item> 
  <item>
   <title>NullReferenceException during Entity creation : Well I still have the problem.during...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2843&amp;PID=11318#11318</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1061" rel="nofollow">nazbrok</a><br /><strong>Subject:</strong> 2843<br /><strong>Posted:</strong> 28-Jul-2011 at 6:29am<br /><br /><div>Well I still have the problem.&nbsp;</div><div><br></div><div>during the ctor of my ViewModel I want to create an entity and<b><u> it fails the first time </u></b>but will success all the others times.</div><div>It's like the first time something is missing (an assembly not loaded or found ?).</div><div><br></div><div><br></div><div>in the server I have :</div><div>Patients.Server.Domain : this is were the edmx is located. This assembly is perfectly added into the CompositionHost&nbsp;</div><div><br></div><div>In the client I have :</div><div>Patients.Server.Domain : hosting the Designer.cs file and my repository from the edmx above.</div><div>PreAdmission.Client.Implementation : hosting the Views/Viewmodels, this assembly have a reference to Patients.Server.Domain (copy local is set to true)</div><div><br></div><div><br></div><div>Here is the method loading the xap where my view/vewmodel is located.</div><div><br></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">&nbsp; &nbsp; &nbsp; &nbsp;void LoadXap(){</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var catalog = new DeploymentCatalog(this._webUrl);</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; catalog.DownloadCompleted += (s, a) =&gt;{</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (a.Error == null){</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono"><br></font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IdeaBlade.Core.Composition.CompositionHost.Add(catalog);</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ...</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; };</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; catalog.DownloadAsync(); &nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">&nbsp; &nbsp; &nbsp; &nbsp;}</font></div><div><br></div><div>The uri of the catalog is "\ClientBin\PreAdmission\PreAdmission.Client.Implementation.xap" which is the assembly&nbsp;</div><div>having a reference to Patients.Client.Domain</div><div><br></div><div><br></div><div>the exception raised by the first access to "<font ="Apple-style-span" face="'Courier New', Courier, mono">var patient = new Patient();</font>" :</div><div><br></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">{System.NullReferenceException: La référence d'objet n'est pas définie à une instance d'un objet.</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">&nbsp; &nbsp;à IdeaBlade.EntityModel.Entity..ctor()</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">&nbsp; &nbsp;à Patients.Server.Domain.Patient..ctor()</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">&nbsp; &nbsp;à Patients.Server.Domain.Patient.InternalCreatePatient()</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">&nbsp; &nbsp;à Patients.Server.Domain.Patient.CreatePatient()</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">&nbsp; &nbsp;à Patients.Client.Domain.PatientClientRepository.CreatePatient()&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">&nbsp; &nbsp;à PreAdmission.Client.Implementation.PreAdAccueilViewModel..ctor(IUnityContainer container, INavigationManager navigationManager)</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">&nbsp; &nbsp;à BuildUp_PreAdmission.Client.Implementation.PreAdAccueilViewModel(IBuilderContext )</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">&nbsp; &nbsp;à Microsoft.Practices.ObjectBuilder2.DynamicMethodBuildPlan.BuildUp(IBuilderContext context)</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">&nbsp; &nbsp;à Microsoft.Practices.ObjectBuilder2.BuildPlanStrategy.PreBuildUp(IBuilderContext context)</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">&nbsp; &nbsp;à Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context)}</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">&nbsp; &nbsp;</font></div><div>&nbsp; &nbsp;</div><div>&nbsp;Below, the Logfile</div><div>&nbsp;</div><div>&nbsp;</div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">&nbsp;2011-07-28 15:17:36 &nbsp;IdeaBlade.Core.TraceFileXmlLogger:GetLogHeader ------------ Log Created ------------&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:35 &nbsp;IdeaBlade.Core.IdeaBladeConfig:Initialize Initializing configuration ...&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:35 &nbsp;IdeaBlade.Core.Composition.PartsCatalog:LoadCatalog MEF assembly probing started: 28/07/2011 15:17:35. If this takes a long time, use IdeaBlade.Core.Composition.CompositionHost to specify/restrict which assemblies to probe.&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:35 &nbsp;IdeaBlade.Core.Composition.PartsCatalog:LoadCatalog MEF assembly probing completed: 28/07/2011 15:17:35&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:35 &nbsp;IdeaBlade.Core.Composition.CompositionHost:.ctor Probe Assemblies: Common.Domain, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null :: Patients.Server.Domain, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null :: Server.Domain, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null If this list is unnecessarily large, use CompositionHost.SearchPatterns to modify the search critieria for probed assemblies. If this list does not contain the assembly(ies) holding your a) domain model, b) custom interface implementations, and c) POCO/known types then your application may not work correctly. Ensure that these assemblies are available in the exe/bin folder, and if using CompositionHost.SearchPatterns that the patterns are set appropriately.&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:35 &nbsp;IdeaBlade.Core.IdeaBladeConfig:InitializationStatusCallback IdeaBlade License: 'DataCenterServer, EnterpriseUniv', KeyDate: 07/01/2011, AllowedSessions: 10000. Found on Assembly: 'Patients.Server.Domain, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:35 &nbsp;IdeaBlade.Core.Configuration.ServerSettingsElement:ConstrainSettingsBasedOnLicenseCore The configured SupportedClientApplicationType is Both&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:35 &nbsp;IdeaBlade.Core.Configuration.ServerSettingsElement:ConstrainSettingsBasedOnLicenseCore Could not find a valid license to enable session-agnostic load balancing.&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:36 &nbsp;IdeaBlade.Core.Configuration.ServerSettingsElement:ConstrainSettingsBasedOnLicenseCore Could not find a valid license to enable session-agnostic load balancing.&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:36 &nbsp;IdeaBlade.Core.Composition.CompositionHost:CheckMultiExport CompositionContext: '-IbDefault-' - Probed for non-default 'ITraceLoggerProvider' and found no matching exports.&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:36 &nbsp;IdeaBlade.Core.Composition.CompositionHost:CheckSingleExport CompositionContext: '-IbDefault-' - Probed for default 'ITraceLoggerProvider' and found 'IdeaBlade.Core.DefaultLoggerProvider'.&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:36 &nbsp;IdeaBlade.Core.TraceFns:CompleteTracingInitialization IdeaBladeConfig resolution: File: C:\{Dev.SL}\DT\{Dev}\MyGap\Root\Web\Server.Web\web.config - found but failed to deserialize&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:36 &nbsp;IdeaBlade.Core.TraceFns:CompleteTracingInitialization IdeaBladeConfig resolution: File: C:\{Dev.SL}\DT\{Dev}\MyGap\Root\Web\Server.Web\logging.config - found but failed to deserialize&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:36 &nbsp;IdeaBlade.Core.TraceFns:CompleteTracingInitialization IdeaBladeConfig resolution: File: C:\{Dev.SL}\DT\{Dev}\MyGap\Root\Web\Server.Web\packages.config - found but failed to deserialize&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:36 &nbsp;IdeaBlade.Core.TraceFns:CompleteTracingInitialization IdeaBladeConfig resolution: File: C:\{Dev.SL}\DT\{Dev}\MyGap\Root\Web\Server.Web\Web.config - found but failed to deserialize&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:36 &nbsp;IdeaBlade.Core.TraceFns:CompleteTracingInitialization IdeaBladeConfig resolution: File: C:\{Dev.SL}\DT\{Dev}\MyGap\Root\Web\Server.Web\Web.Debug.config - found but failed to deserialize&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:36 &nbsp;IdeaBlade.Core.TraceFns:CompleteTracingInitialization IdeaBladeConfig resolution: File: C:\{Dev.SL}\DT\{Dev}\MyGap\Root\Web\Server.Web\Web.Release.config - found but failed to deserialize&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:36 &nbsp;IdeaBlade.Core.TraceFns:CompleteTracingInitialization IdeaBladeConfig resolution: Warning: No .config file found - using default configuration.&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:36 &nbsp;IdeaBlade.Core.TraceFns:CompleteTracingInitialization IdeaBladeConfig resolution: Logging file: C:\{Dev.SL}\DT\{Dev}\MyGap\Root\Web\Server.Web\log/DebugLog.xml&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:36 &nbsp;IdeaBlade.Core.TraceFns:CompleteTracingInitialization Bound to .NET runtime version 4.0.30319.235&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:36 &nbsp;IdeaBlade.Core.TraceFns:CompleteTracingInitialization DevForce version 6.1.1.1&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:57 &nbsp;IdeaBlade.EntityModel.RemoteServiceFns:AddSerializationBehavior Using DC serializer for EntityService&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:57 &nbsp;IdeaBlade.Core.Composition.CompositionHost:CheckSingleExport CompositionContext: '-IbDefault-' - Probed for any 'ServiceHostEvents' and found 'IdeaBlade.EntityModel.Server.ServiceHostEvents'.&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:57 &nbsp;IdeaBlade.EntityModel.Server.EntityServiceHostFactory:CreateServiceHost EntityService listening on http://localhost:27829/EntityService.svc&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:57 &nbsp;IdeaBlade.EntityModel.Server.EntityServiceHostFactory:CreateServiceHost EntityService listening on http://localhost:27829/EntityService.svc/sl&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:57 &nbsp;IdeaBlade.Core.Composition.CompositionHost:CheckSingleExport CompositionContext: '-IbDefault-' - Probed for any 'EntityServiceApplication' and found 'IdeaBlade.EntityModel.EntityServiceApplication'.&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:57 &nbsp;IdeaBlade.EntityModel.EntityServiceApplication:OnServiceStartup EntityService created&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:57 &nbsp;IdeaBlade.EntityModel.Server.EntityServer:.ctor EntityServer created for DataSourceExtension: &#091;None&#093;, CompositionContext: -IbDefault-&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:57 &nbsp;IdeaBlade.Core.Composition.CompositionHost:CheckMultiExport CompositionContext: '-IbDefault-' - Probed for any 'IEntityQueryExecutor' and found 'IdeaBlade.EntityModel.Edm.EdmQueryExecutor'.&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:57 &nbsp;IdeaBlade.Core.Composition.CompositionHost:CheckMultiExport CompositionContext: '-IbDefault-' - Probed for any 'IEntityQueryExecutor' and found 'IdeaBlade.EntityModel.Edm.PassthruEsqlQueryExecutor'.&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:57 &nbsp;IdeaBlade.Core.Composition.CompositionHost:CheckMultiExport CompositionContext: '-IbDefault-' - Probed for any 'IEntityQueryExecutor' and found 'IdeaBlade.EntityModel.Edm.StoredProcQueryExecutor'.&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:57 &nbsp;IdeaBlade.Core.Composition.CompositionHost:CheckMultiExport CompositionContext: '-IbDefault-' - Probed for any 'IEntityQueryExecutor' and found 'IdeaBlade.EntityModel.Edm.UdtQueryExecutor'.&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:57 &nbsp;IdeaBlade.EntityModel.Server.SessionManager:GetLoginManager Anonymous access: enabled&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:57 &nbsp;IdeaBlade.Core.Composition.CompositionHost:CheckSingleExport CompositionContext: '-IbDefault-' - Probed for non-default 'IEntityLoginManager' and found no matching exports.&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:57 &nbsp;IdeaBlade.EntityModel.Server.SessionManager:GetLoginManager No Login Manager found. User will always be logged in as Guest, regardless of credentials.&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:57 &nbsp;IdeaBlade.EntityModel.KnownTypeHelper:&lt;GetMarkedKnownTypes&gt;b__13 Probed for known types and found Common.Domain.DtEntityBase&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:57 &nbsp;IdeaBlade.EntityModel.KnownTypeHelper:&lt;GetMarkedKnownTypes&gt;b__13 Probed for known types and found Patients.Server.Domain.Patient&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:57 &nbsp;IdeaBlade.EntityModel.KnownTypeHelper:&lt;GetMarkedKnownTypes&gt;b__13 Probed for known types and found Patients.Server.Domain.Tier&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:57 &nbsp;IdeaBlade.EntityModel.KnownTypeHelper:&lt;GetMarkedKnownTypes&gt;b__13 Probed for known types and found Patients.Server.Domain.Nationalites&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:57 &nbsp;IdeaBlade.EntityModel.KnownTypeHelper:&lt;GetMarkedKnownTypes&gt;b__13 Probed for known types and found Patients.Server.Domain.PatientObservations&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:57 &nbsp;IdeaBlade.EntityModel.KnownTypeHelper:&lt;GetMarkedKnownTypes&gt;b__13 Probed for known types and found Patients.Server.Domain.Personne&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:57 &nbsp;IdeaBlade.Core.Composition.CompositionHost:CheckMultiExport CompositionContext: '-IbDefault-' - Probed for non-default 'IKnownTypeProvider' and found no matching exports.&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:57 &nbsp;IdeaBlade.EntityModel.RemoteServiceFns:AddSerializationBehavior Using DC serializer for EntityServer&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:57 &nbsp;IdeaBlade.EntityModel.Server.EntityServerHostFactory:CreateServiceHost EntityServer listening on http://localhost:27829/EntityServer.svc&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:57 &nbsp;IdeaBlade.EntityModel.Server.EntityServerHostFactory:CreateServiceHost EntityServer listening on http://localhost:27829/EntityServer.svc/sl&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:58 Guest - 1 IdeaBlade.Core.Composition.CompositionHost:CheckSingleExport CompositionContext: '-IbDefault-' - Probed for any 'EntityServerQueryInterceptor' and found 'IdeaBlade.EntityModel.Server.EntityServerQueryInterceptor'.&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:58 Guest - 1 IdeaBlade.EntityModel.Server.EntityServerQueryInterceptor:ExecuteQuery Fetch ... value(IdeaBlade.EntityModel.EntityQueryProxy`1&#091;Patients.Server.Domain.Patient&#093;)&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:58 Guest - 1 IdeaBlade.Core.Composition.CompositionHost:CheckSingleExport CompositionContext: '-IbDefault-' - Probed for default 'IDataSourceKeyResolver' and found 'IdeaBlade.EntityModel.DefaultDataSourceKeyResolver'.&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:58 Guest - 1 IdeaBlade.Core.Composition.CompositionHost:CheckSingleExport CompositionContext: '-IbDefault-' - Probed for non-default 'IDataSourceKeyResolver' and found no matching exports.&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:58 Guest - 1 IdeaBlade.Core.Composition.CompositionHost:CheckMultiExport CompositionContext: '-IbDefault-' - Probed for any 'IIdGenerator' and found 'IdeaBlade.EntityModel.StoreGeneratedIdGenerator'.&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:58 Guest - 1 IdeaBlade.Core.Composition.CompositionHost:CheckMultiExport CompositionContext: '-IbDefault-' - Probed for non-default 'IConcurrencyStrategy' and found no matching exports.&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:58 Guest - 1 IdeaBlade.Core.Composition.CompositionHost:CheckSingleExport CompositionContext: '-IbDefault-' - Probed for default 'IConcurrencyStrategy' and found 'IdeaBlade.EntityModel.DefaultConcurrencyValueSetter'.&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:58 Guest - 1 IdeaBlade.EntityModel.Edm.EdmKey:FindClientAssembly DataSourceKey probing started at 28/07/2011 15:17:58&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:17:58 Guest - 1 IdeaBlade.EntityModel.Edm.EdmKey:FindClientAssembly DataSourceKey: 'PatientEntities' found in assembly 'Patients.Server.Domain, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' at 28/07/2011 15:17:58&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">2011-07-28 15:21:08 &nbsp;IdeaBlade.EntityModel.Server.RemoteEntityService:ShutdownEntityServers Shutting down Entity Servers&nbsp;</font></div><div><br></div>]]>
   </description>
   <pubDate>Thu, 28 Jul 2011 06:29:24 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2843&amp;PID=11318#11318</guid>
  </item> 
  <item>
   <title>NullReferenceException during Entity creation : It&amp;#039;s ok I found it !IdeaB...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2843&amp;PID=11301#11301</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1061" rel="nofollow">nazbrok</a><br /><strong>Subject:</strong> 2843<br /><strong>Posted:</strong> 26-Jul-2011 at 3:16am<br /><br />It's ok I found it !<div><pre style="font-family:C&#111;nsolas;font-size:13;color:black;:white;">IdeaBlade.Core.Composition.<span style="color:#2b91af;">CompositionHost</span>.Add(catalog);</pre></div>]]>
   </description>
   <pubDate>Tue, 26 Jul 2011 03:16:09 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2843&amp;PID=11301#11301</guid>
  </item> 
  <item>
   <title>NullReferenceException during Entity creation :  HiHi Denisk,You were right....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2843&amp;PID=11300#11300</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1061" rel="nofollow">nazbrok</a><br /><strong>Subject:</strong> 2843<br /><strong>Posted:</strong> 26-Jul-2011 at 2:13am<br /><br />Hi&nbsp;<span ="Apple-style-span" style="font-family: 'Times New Roman'; line-height: normal; font-size: medium; "><span ="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 16px; ">Hi Denisk,</span><div style=": rgb255, 255, 255; margin-left: 1px; margin-top: 1px; margin-right: 1px; margin-bottom: 1px; font-family: Verdana, Arial, Helvetica, sans-serif; color: rgb0, 0, 0; font-size: 12px; line-height: 1.4; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; -: n&#111;ne; "><div><br></div><div>You were right. I forgot to add the .Clear and I didn't put it in the right place in the global.asax. Now it's the first operation I do on startutp and it probes my assembly.</div><div><br></div><div>The model isn't in the client, I didn't explain it right (english issue on my side :))</div><div><br></div><div>The model is in an assembly (name it AssemblyA) on the server.&nbsp;</div><div>On the client I have another assembly (AssemblyB) where I did put the xxx.Designer.cs file and my repository.</div><div>Another assembly have my ViewModel (AssemblyC) and use the assemblyB.&nbsp;</div><div><br></div><div>To works, I still have to put a reference of AssemblyB in my Silverlight Application. It doesn't discover the service ... Is this part also related to the CompositionHost ?</div><div><br></div><div><br></div><div>&nbsp;&nbsp;</div><div><br></div></div></span>]]>
   </description>
   <pubDate>Tue, 26 Jul 2011 02:13:00 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2843&amp;PID=11300#11300</guid>
  </item> 
  <item>
   <title>NullReferenceException during Entity creation : Hi nazbrok;Did you clear the SearchPatterns...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2843&amp;PID=11297#11297</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 2843<br /><strong>Posted:</strong> 25-Jul-2011 at 6:19pm<br /><br />Hi nazbrok;<div><br></div><div>Did you clear the SearchPatterns before adding to it? i.e.</div><div><br></div><div>IdeaBlade.Core.Composition.CompositionHost.SearchPatterns.Clear();</div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; ">IdeaBlade.Core.Composition.CompositionHost.SearchPatterns.Add("MyClientAssemblyWithMyModel.dll");</span></div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><br></span></div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; ">If the above doesn't work, could you post the following information?</span></div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><br></span></div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; ">1. Your debug log or trace messages after adding the above 2 lines.</span></div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><br></span></div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; ">2. How your project is structured. A screenshot of your solution would help. I'm particularly interested in why you're hosting your models in the client application and not on your web project. Maybe I just misunderstood your statement.</span></div>]]>
   </description>
   <pubDate>Mon, 25 Jul 2011 18:19:15 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2843&amp;PID=11297#11297</guid>
  </item> 
  <item>
   <title>NullReferenceException during Entity creation : Hi,I found out the problem, here...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2843&amp;PID=11289#11289</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1061" rel="nofollow">nazbrok</a><br /><strong>Subject:</strong> 2843<br /><strong>Posted:</strong> 25-Jul-2011 at 1:56pm<br /><br />Hi,<div><br></div><div>I found out the problem, here is&nbsp;what I did :</div><div><br></div><div>1. I added to my silverlight application a reference to the assembly on the client hosting our Devforce autogenerated file. Before this reference existed only in the assembly where I have my ViewModel.</div><div>2. then I added to the web.config the connection string for my model.</div><div><br></div><div>Now I don't like this solution because I lose all the benefits from MEF, I need to be able to discover those services.</div><div><br></div><div>I tried to add in the global.asax (as suggested in the error message) the following line (without adding a reference to my assembly in the client) but it doesn't work :&nbsp;</div><div>IdeaBlade.Core.Composition.CompositionHost.SearchPatterns.Add("MyClientAssemblyWithMyModel.dll");&nbsp;</div><div><br></div><div>Is there a way to not have to add a reference to all my assemblies hosting my models &nbsp;in the client application ?</div><div><br></div><div><br></div><div>regards,</div>]]>
   </description>
   <pubDate>Mon, 25 Jul 2011 13:56:21 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2843&amp;PID=11289#11289</guid>
  </item> 
  <item>
   <title>NullReferenceException during Entity creation : Hi,I have a problem accessing...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2843&amp;PID=11277#11277</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1061" rel="nofollow">nazbrok</a><br /><strong>Subject:</strong> 2843<br /><strong>Posted:</strong> 24-Jul-2011 at 2:10pm<br /><br /><div>Hi,</div><div><br></div><div>I have a problem accessing DevForce entities and &nbsp;EntityManager from my silverlight app. It's an application using Unity and MEF for service discovery. The architecture of this application was initialy done for a RIA approach but I am testing it with DevForce.</div><div><br></div><div>In the ViewModel, whenever I try to create a new entity (using the syntax "new myentity()" or "myentitymanager.CreateEntity&lt;myentity&gt;().") I get a NullReferenceException.</div><div><br></div><div>In the .web service I added all the ideablade reference with copy local to true. In the global.asax I added &nbsp;HostingEnvironment.RegisterVirtualPathProvider(new IdeaBlade.EntityModel.Web.ServiceVirtualPathProvider());</div><div><br></div><div>http://localhost:27829/EntityService.svc show a page saying something like "the metadata is actually desactivated"</div><div><br></div><div>Any idea what could be the problem or where should I look &nbsp;?</div><div><br></div><div><br></div><div>Here is the exception log :</div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">&nbsp; &nbsp;à IdeaBlade.EntityModel.Entity..ctor()</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">&nbsp; &nbsp;à MyApp.Server.Web.Patients..ctor()</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">&nbsp; &nbsp;à MyApp.Client.Implementation.PreAdAccueilViewModel..ctor(IUnityContainer container, INavigationManager navigationManager)</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">&nbsp; &nbsp;à BuildUp_MyApp.Client.Implementation.PreAdAccueilViewModel(IBuilderContext )</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">&nbsp; &nbsp;à Microsoft.Practices.ObjectBuilder2.DynamicMethodBuildPlan.BuildUp(IBuilderContext context)</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">&nbsp; &nbsp;à Microsoft.Practices.ObjectBuilder2.BuildPlanStrategy.PreBuildUp(IBuilderContext context)</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">&nbsp; &nbsp;à Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context)&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">&nbsp;</font></div><div>Here are the TraceViewer's log :</div><div><font ="Apple-style-span" face="'Courier New', Courier, mono"><br></font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">21<span ="Apple-tab-span" style="white-space:pre">	</span>24/07/2011 22:39:49<span ="Apple-tab-span" style="white-space:pre">		</span>IdeaBlade.EntityModel.RemoteServiceFns:AddSerializationBehavior<span ="Apple-tab-span" style="white-space:pre">	</span>Using DC serializer for EntityService</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">22<span ="Apple-tab-span" style="white-space:pre">	</span>24/07/2011 22:39:49<span ="Apple-tab-span" style="white-space:pre">		</span>IdeaBlade.Core.Composition.CompositionHost:CheckSingleExport<span ="Apple-tab-span" style="white-space:pre">	</span>CompositionContext: '-IbDefault-' - Probed for any 'ServiceHostEvents' and found 'IdeaBlade.EntityModel.Server.ServiceHostEvents'.</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">23<span ="Apple-tab-span" style="white-space:pre">	</span>24/07/2011 22:39:49<span ="Apple-tab-span" style="white-space:pre">		</span>IdeaBlade.EntityModel.Server.EntityServiceHostFactory:CreateServiceHost<span ="Apple-tab-span" style="white-space:pre">	</span>EntityService listening on http://localhost:27829/EntityService.svc</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">24<span ="Apple-tab-span" style="white-space:pre">	</span>24/07/2011 22:39:49<span ="Apple-tab-span" style="white-space:pre">		</span>IdeaBlade.EntityModel.Server.EntityServiceHostFactory:CreateServiceHost<span ="Apple-tab-span" style="white-space:pre">	</span>EntityService listening on http://localhost:27829/EntityService.svc/sl</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">25<span ="Apple-tab-span" style="white-space:pre">	</span>24/07/2011 22:39:49<span ="Apple-tab-span" style="white-space:pre">		</span>IdeaBlade.Core.Composition.CompositionHost:CheckSingleExport<span ="Apple-tab-span" style="white-space:pre">	</span>CompositionContext: '-IbDefault-' - Probed for any 'EntityServiceApplication' and found 'IdeaBlade.EntityModel.EntityServiceApplication'.</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">26<span ="Apple-tab-span" style="white-space:pre">	</span>24/07/2011 22:39:49<span ="Apple-tab-span" style="white-space:pre">		</span>IdeaBlade.EntityModel.EntityServiceApplication:OnServiceStartup<span ="Apple-tab-span" style="white-space:pre">	</span>EntityService created</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">27<span ="Apple-tab-span" style="white-space:pre">	</span>24/07/2011 22:39:49<span ="Apple-tab-span" style="white-space:pre">		</span>IdeaBlade.EntityModel.Server.EntityServer:.ctor<span ="Apple-tab-span" style="white-space:pre">	</span>EntityServer created for DataSourceExtension: &#091;None&#093;, CompositionContext: -IbDefault-</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">28<span ="Apple-tab-span" style="white-space:pre">	</span>24/07/2011 22:39:49<span ="Apple-tab-span" style="white-space:pre">		</span>IdeaBlade.Core.Composition.CompositionHost:CheckMultiExport<span ="Apple-tab-span" style="white-space:pre">	</span>CompositionContext: '-IbDefault-' - Probed for any 'IEntityQueryExecutor' and found 'IdeaBlade.EntityModel.Edm.EdmQueryExecutor'.</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">29<span ="Apple-tab-span" style="white-space:pre">	</span>24/07/2011 22:39:49<span ="Apple-tab-span" style="white-space:pre">		</span>IdeaBlade.Core.Composition.CompositionHost:CheckMultiExport<span ="Apple-tab-span" style="white-space:pre">	</span>CompositionContext: '-IbDefault-' - Probed for any 'IEntityQueryExecutor' and found 'IdeaBlade.EntityModel.Edm.PassthruEsqlQueryExecutor'.</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">30<span ="Apple-tab-span" style="white-space:pre">	</span>24/07/2011 22:39:49<span ="Apple-tab-span" style="white-space:pre">		</span>IdeaBlade.Core.Composition.CompositionHost:CheckMultiExport<span ="Apple-tab-span" style="white-space:pre">	</span>CompositionContext: '-IbDefault-' - Probed for any 'IEntityQueryExecutor' and found 'IdeaBlade.EntityModel.Edm.StoredProcQueryExecutor'.</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">31<span ="Apple-tab-span" style="white-space:pre">	</span>24/07/2011 22:39:49<span ="Apple-tab-span" style="white-space:pre">		</span>IdeaBlade.Core.Composition.CompositionHost:CheckMultiExport<span ="Apple-tab-span" style="white-space:pre">	</span>CompositionContext: '-IbDefault-' - Probed for any 'IEntityQueryExecutor' and found 'IdeaBlade.EntityModel.Edm.UdtQueryExecutor'.</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">32<span ="Apple-tab-span" style="white-space:pre">	</span>24/07/2011 22:39:49<span ="Apple-tab-span" style="white-space:pre">		</span>IdeaBlade.EntityModel.Server.SessionManager:GetLoginManager<span ="Apple-tab-span" style="white-space:pre">	</span>Anonymous access: enabled</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">33<span ="Apple-tab-span" style="white-space:pre">	</span>24/07/2011 22:39:49<span ="Apple-tab-span" style="white-space:pre">		</span>IdeaBlade.Core.Composition.CompositionHost:CheckSingleExport<span ="Apple-tab-span" style="white-space:pre">	</span>CompositionContext: '-IbDefault-' - Probed for non-default 'IEntityLoginManager' and found no matching exports.</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">34<span ="Apple-tab-span" style="white-space:pre">	</span>24/07/2011 22:39:49<span ="Apple-tab-span" style="white-space:pre">		</span>IdeaBlade.EntityModel.Server.SessionManager:GetLoginManager<span ="Apple-tab-span" style="white-space:pre">	</span>No Login Manager found. User will always be logged in as Guest, regardless of credentials.</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">35<span ="Apple-tab-span" style="white-space:pre">	</span>24/07/2011 22:39:49<span ="Apple-tab-span" style="white-space:pre">		</span>IdeaBlade.Core.Composition.CompositionHost:CheckMultiExport<span ="Apple-tab-span" style="white-space:pre">	</span>CompositionContext: '-IbDefault-' - Probed for non-default 'IKnownTypeProvider' and found no matching exports.</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">36<span ="Apple-tab-span" style="white-space:pre">	</span>24/07/2011 22:39:49<span ="Apple-tab-span" style="white-space:pre">		</span>IdeaBlade.EntityModel.RemoteServiceFns:AddSerializationBehavior<span ="Apple-tab-span" style="white-space:pre">	</span>Using DC serializer for EntityServer</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">37<span ="Apple-tab-span" style="white-space:pre">	</span>24/07/2011 22:39:49<span ="Apple-tab-span" style="white-space:pre">		</span>IdeaBlade.EntityModel.Server.EntityServerHostFactory:CreateServiceHost<span ="Apple-tab-span" style="white-space:pre">	</span>EntityServer listening on http://localhost:27829/EntityServer.svc</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">38<span ="Apple-tab-span" style="white-space:pre">	</span>24/07/2011 22:39:49<span ="Apple-tab-span" style="white-space:pre">		</span>IdeaBlade.EntityModel.Server.EntityServerHostFactory:CreateServiceHost<span ="Apple-tab-span" style="white-space:pre">	</span>EntityServer listening on http://localhost:27829/EntityServer.svc/sl</font></div><div><br></div>]]>
   </description>
   <pubDate>Sun, 24 Jul 2011 14:10:42 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2843&amp;PID=11277#11277</guid>
  </item> 
 </channel>
</rss>