Print Page | Close Window

Exception in Release Mode

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=1907
Printed Date: 21-Apr-2026 at 12:19pm


Topic: Exception in Release Mode
Posted By: robdrye
Subject: Exception in Release Mode
Date Posted: 22-Jun-2010 at 4:24pm
We recently upgraded our solution to VS 2010, .NET 4, DevForce 2010, & SL4 and all works as expected when built in Debug mode and deployed to a test server (Windows Server 2008 R2 / IIS 7).  However when we build in Release mode and then deploy to the same server we receive the following Exception the first time we execute an EntityQuery:
 
{EntityServerException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at IdeaBlade.EntityModel.NavigationListEntityProperty`2.GetEntityReference(EntityWrapper wrapper)
   at IdeaBlade.EntityModel.NavigationListEntityProperty`2.GetValueForSerialization(EntityWrapper ew)
   at PBI.Workspace.Objects.MetaDatabase.get_ChildFields() in C:\BuildServer\Build\Projects\Idaho_v6.0.20102_Daily\Desktop\PBI.Workspace\Objects\MasterEDM.IB.Designer.cs:line 2001
   at lambda_method(Closure , Object )
   at System.Data.Objects.Internal.EntityProxyFactory.<>c__DisplayClass5.<CreateBaseGetter>b__4(Object entity)
   at System.Data.Objects.Internal.PocoPropertyAccessorStrategy.GetNavigationPropertyValue(RelatedEnd relatedEnd)
   at IdeaBlade.EntityModel.EntityManager.HandleEntityServerException(Exception pException, Boolean pTryToHandle, PersistenceOperation pOperation)
   at IdeaBlade.EntityModel.EntityManager.<ExecuteQueryAsyncCore>b__4e[T](EntityQueryOperation`1 op)
   at IdeaBlade.EntityModel.AsyncProcessor`1.<Execute>b__5(Object x)}
 
We realize this most likely is not an issue being caused directly by DevForce however wanted to see if anyone else had run into similar problems or had any insights.
 
Thanks!



Replies:
Posted By: ting
Date Posted: 22-Jun-2010 at 8:03pm
Are you using 6.0.3.1?  We just fixed an issue which had those symptoms.  See this post:
http://www.ideablade.com/forum/forum_posts.asp?TID=1880 - http://www.ideablade.com/forum/forum_posts.asp?TID=1880
 
and this one for more detail:
http://www.ideablade.com/forum/forum_posts.asp?TID=1848 - http://www.ideablade.com/forum/forum_posts.asp?TID=1848
 



Print Page | Close Window