New Posts New Posts RSS Feed: Exception in Release Mode
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Exception in Release Mode

 Post Reply Post Reply
Author
robdrye View Drop Down
Newbie
Newbie
Avatar

Joined: 05-Aug-2009
Posts: 22
Post Options Post Options   Quote robdrye Quote  Post ReplyReply Direct Link To This Post Topic: Exception in Release Mode
    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!


Edited by robdrye - 22-Jun-2010 at 7:24pm
Back to Top
ting View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 27-Mar-2009
Location: San Francisco
Posts: 427
Post Options Post Options   Quote ting Quote  Post ReplyReply Direct Link To This Post 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:
 
and this one for more detail:
 


Edited by ting - 22-Jun-2010 at 9:09pm
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down