HFM EPMA application deployment aborted with error Object reference not set

HFM EPMA application deployment aborted with error Object reference not set to an instance of an object when trying to validate/deploy any HFM application in EPMA. This has started happending after we have deleted a Dimension in one of HFM applications. The deleted dimension is a shared dimension.
We are facing this issue in a distributed environment with version 11.1.2.1. This applications are built here newly.
Following is the error log entry
16] ERROR Object reference not set to an instance of an object.
at Hyperion.DimensionServer.CompareCriteria.<>c__DisplayClass5.<GetMemberClassProperties>b__4(Dimension dim)
at Hyperion.DimensionServer.Library.IterateDimensions(Action`1 action)
at Hyperion.DimensionServer.CompareCriteria.GetMemberClassProperties(ApplicationClass appClass, DimensionClass dimClass, MemberClass mbrClass)
at Hyperion.DimensionServer.CompareCriteria.GetCommonMemberClassProperties(RelationshipMember fromMember, RelationshipMember toMember, ApplicationClass fromAppClass, ApplicationClass toAppClass)
at Hyperion.DimensionServer.CompareMemberEvaluator.CompareProperties(RelationshipMember fromMember, RelationshipMember toMember, ApplicationClass fromAppClass, ApplicationClass toAppClass, List`1 propertyDifferences)
at Hyperion.DimensionServer.CompareMemberEvaluator.Compare(RelationshipMember sourceMember, Application sourceApp, Application targetApp, Boolean firstPass, Int32 level, Boolean continueCheckingAfterDifferences)
at Hyperion.DimensionServer.CompareMemberEvaluator.Compare(List`1 sourceTopMembers, List`1 targetTopMembers, Application sourceApp, Application targetApp, Boolean firstPass, Boolean continueCheckingAfterDifferences)
at Hyperion.DimensionServer.CompareMemberEvaluator.Execute(List`1 fromTopMembers, List`1 toTopMembers, Dimension fromDimension, Dimension toDimension, Boolean continueCheckingAfterDifferences)
at Hyperion.DimensionServer.CompareDimensionEvaluator.Execute(Dimension fromDimension, Dimension toDimension, ApplicationClass fromAppClass, ApplicationClass toAppClass)
at Hyperion.DimensionServer.CompareEngine.CompareDimensions(Dimension fromDimension, Dimension toDimension)
at Hyperion.DimensionServer.CompareEngine.StartCompare()
at Hyperion.DimensionServer.Validations.HFMApplicationValidation.CheckStaticDimension(Library snapShot, Dimension dim, Application oldApp, String[] skipProperties)
at Hyperion.DimensionServer.Validations.HFMApplicationValidation.CheckStaticDimensions(Application baselineApp)
at Hyperion.DimensionServer.Validations.ApplicationValidation.ValidateAgainstBaseline()
at Hyperion.DimensionServer.Validations.HFMApplicationValidation.InternalValidate()
at Hyperion.DimensionServer.Validations.ApplicationValidation.Validate()
at Hyperion.DimensionServer.Validations.ApplicationValidation.<ValidateAsync>b__0()System.NullReferenceException: Object reference not set to an instance of an object.
at Hyperion.DimensionServer.CompareCriteria.<>c__DisplayClass5.<GetMemberClassProperties>b__4(Dimension dim)
at Hyperion.DimensionServer.Library.IterateDimensions(Action`1 action)
at Hyperion.DimensionServer.CompareCriteria.GetMemberClassProperties(ApplicationClass appClass, DimensionClass dimClass, MemberClass mbrClass)
at Hyperion.DimensionServer.CompareCriteria.GetCommonMemberClassProperties(RelationshipMember fromMember, RelationshipMember toMember, ApplicationClass fromAppClass, ApplicationClass toAppClass)
at Hyperion.DimensionServer.CompareMemberEvaluator.CompareProperties(RelationshipMember fromMember, RelationshipMember toMember, ApplicationClass fromAppClass, ApplicationClass toAppClass, List`1 propertyDifferences)
at Hyperion.DimensionServer.CompareMemberEvaluator.Compare(RelationshipMember sourceMember, Application sourceApp, Application targetApp, Boolean firstPass, Int32 level, Boolean continueCheckingAfterDifferences)
at Hyperion.DimensionServer.CompareMemberEvaluator.Compare(List`1 sourceTopMembers, List`1 targetTopMembers, Application sourceApp, Application targetApp, Boolean firstPass, Boolean continueCheckingAfterDifferences)
at Hyperion.DimensionServer.CompareMemberEvaluator.Execute(List`1 fromTopMembers, List`1 toTopMembers, Dimension fromDimension, Dimension toDimension, Boolean continueCheckingAfterDifferences)
at Hyperion.DimensionServer.CompareDimensionEvalua
There was a bug in earlier releases for deleting dimensions with children, making the children orphans.
Heard from release notes that it has been fixed, but we are seeing this issue in 11.1.2.1 again.
Please help us out in resolving this error.

Hi,
I always ask this first, have you installed all the planning and epma patches as there have been many issues addressed in 9.3.1
Cheers
John
http://john-goodwin.blogspot.com/

Similar Messages

  • Error occurred in deployment step 'Activate Features': Object reference not set to an instance of an object.

    I am trying to create a custom timer job and while deploying it getting the error as:
    Error occurred in deployment step 'Activate Features': Object reference not set to an instance of an object.
    where am i going wrong?please suggest...
    Thanks
    Suu30

    I am not able to get the errors.So attaching the error log files here.Please help
    08/21/2012 17:35:03  1  INF  Entering function PsconfigUserInterfaceMain.Main
    08/21/2012 17:35:03  1  INF    Entering function Common.SetCurrentThreadCultureToInstalledCulture
    08/21/2012 17:35:03  1  INF      Entering function Common.SetThreadCultureToInstalledCulture
    08/21/2012 17:35:03  1  INF        Current thread culture is English (United States), current thread ui culture is English (United States), installed culture is English (United States)
    08/21/2012 17:35:03  1  INF      Leaving function Common.SetThreadCultureToInstalledCulture
    08/21/2012 17:35:03  1  INF      The current ui culture English (United States) is NOT right to left
    08/21/2012 17:35:03  1  INF    Leaving function Common.SetCurrentThreadCultureToInstalledCulture
    08/21/2012 17:35:03  1  INF    Creating the psconfig application context
    08/21/2012 17:35:03  1  INF    Entering function PsconfigApplicationContext.PsconfigApplicationContext
    08/21/2012 17:35:03  1  INF      Entering function UserInterface.UserInterface
    08/21/2012 17:35:03  1  INF      Leaving function UserInterface.UserInterface
    08/21/2012 17:35:03  1  INF      Entering function TaskDriver.TaskDriver
    08/21/2012 17:35:03  1  INF        Entering function TaskDriver.BuildCommandCollection
    08/21/2012 17:35:03  1  INF          Entering function CommandCollectionBase.CommandCollectionBase
    08/21/2012 17:35:03  1  INF          Leaving function CommandCollectionBase.CommandCollectionBase
    08/21/2012 17:35:03  1  INF          Entering function CommandCollection.CommandCollection
    08/21/2012 17:35:03  1  INF          Leaving function CommandCollection.CommandCollection
    08/21/2012 17:35:03  1  INF          Entering function CommandCollectionBase.CommandCollectionBase
    08/21/2012 17:35:03  1  INF          Leaving function CommandCollectionBase.CommandCollectionBase
    08/21/2012 17:35:03  1  INF            Creating the APPLICATION bool exposed parameter
    08/21/2012 17:35:03  1  INF          Leaving function BoolExposedParameter.BoolExposedParameter
    08/21/2012 17:35:03  1  INF          Entering function BoolInternalParameter.BoolInternalParameter
    08/21/2012 17:35:03  1  INF            Creating the APPLICATION bool internal parameter
    08/21/2012 17:35:03  1  INF          Leaving function BoolInternalParameter.BoolInternalParameter
    08/21/2012 17:35:03  1  INF          Entering function Parameter.Parameter
    08/21/2012 17:35:03  1  INF            Entering function Parameter.Initialze
    08/21/2012 17:35:03  1  INF            Leaving function Parameter.Initialze
    08/21/2012 17:35:03  1  INF            Creating the SINGLESERVER bool exposed parameter
    08/21/2012 17:35:03  1  INF          Leaving function BoolExposedParameter.BoolExposedParameter
    08/21/2012 17:35:03  1  INF          Entering function BoolInternalParameter.BoolInternalParameter
    08/21/2012 17:35:03  1  INF            Creating the SINGLESERVER bool internal parameter
    08/21/2012 17:35:03  1  INF          Leaving function BoolInternalParameter.BoolInternalParameter
    08/21/2012 17:35:03  1  INF          Entering function Parameter.Parameter
    08/21/2012 17:35:03  1  INF            Entering function Parameter.Initialze
    08/21/2012 17:35:03  1  INF            Leaving function Parameter.Initialze
    08/21/2012 17:35:03  1  INF          Leaving function Parameter.Parameter
    08/21/2012 17:35:03  1  INF          Entering function BoolExposedParameter.BoolExposedParameter
    08/21/2012 17:35:03  1  INF            Creating the V2V_INPLACE_UPGRADE bool exposed parameter
    08/21/2012 17:35:03  1  INF          Leaving function BoolExposedParameter.BoolExposedParameter
    08/21/2012 17:35:03  1  INF          Entering function BoolInternalParameter.BoolInternalParameter
    08/21/2012 17:35:03  1  INF            Creating the V2V_INPLACE_UPGRADE bool internal parameter
    08/21/2012 17:35:03  1  INF          Leaving function BoolInternalParameter.BoolInternalParameter
    08/21/2012 17:35:03  1  INF          Entering function Parameter.Parameter
    08/21/2012 17:35:03  1  INF            Entering function Parameter.Initialze
    08/21/2012 17:35:03  1  INF            Leaving function Parameter.Initialze
    08/21/2012 17:35:03  1  INF          Leaving function Parameter.Parameter
    08/21/2012 17:35:03  1  INF          Entering function BoolExposedParameter.BoolExposedParameter
    08/21/2012 17:35:03  1  INF            Creating the CLEAN_INSTALL bool exposed parameter
    08/21/2012 17:35:03  1  INF          Leaving function BoolExposedParameter.BoolExposedParameter
    08/21/2012 17:35:03  1  INF          Entering function BoolInternalParameter.BoolInternalParameter
    08/21/2012 17:35:03  1  INF            Creating the CLEAN_INSTALL bool internal parameter
    08/21/2012 17:35:03  1  INF          Leaving function BoolInternalParameter.BoolInternalParameter
    08/21/2012 17:35:03  1  INF          Entering function Parameter.Parameter
    08/21/2012 17:35:03  1  INF            Entering function Parameter.Initialze
    08/21/2012 17:35:03  1  INF            Leaving function Parameter.Initialze
    08/21/2012 17:35:03  1  INF          Leaving function Parameter.Parameter
    08/21/2012 17:35:03  1  INF          Entering function BoolExposedParameter.BoolExposedParameter
    08/21/2012 17:35:03  1  INF            Creating the B2B_UPGRADE bool exposed parameter
    08/21/2012 17:35:03  1  INF          Leaving function BoolExposedParameter.BoolExposedParameter
    08/21/2012 17:35:03  1  INF          Entering function BoolInternalParameter.BoolInternalParameter
    08/21/2012 17:35:03  1  INF            Creating the B2B_UPGRADE bool internal parameter
    08/21/2012 17:35:03  1  INF          Leaving function BoolInternalParameter.BoolInternalParameter
    08/21/2012 17:35:03  1  INF          Entering function Parameter.Parameter
    08/21/2012 17:35:03  1  INF            Entering function Parameter.Initialze
    08/21/2012 17:35:03  1  INF            Leaving function Parameter.Initialze
    08/21/2012 17:35:03  1  INF          Leaving function Parameter.Parameter
    08/21/2012 17:35:03  1  INF          Entering function BoolExposedParameter.BoolExposedParameter
    08/21/2012 17:35:03  1  INF            Creating the SKU2SKU_UPGRADE bool exposed parameter
    08/21/2012 17:35:03  1  INF          Leaving function BoolExposedParameter.BoolExposedParameter
    08/21/2012 17:35:03  1  INF          Entering function BoolInternalParameter.BoolInternalParameter
    08/21/2012 17:35:03  1  INF            Creating the SKU2SKU_UPGRADE bool internal parameter
    08/21/2012 17:35:03  1  INF          Leaving function BoolInternalParameter.BoolInternalParameter
    08/21/2012 17:35:03  1  INF          Entering function Parameter.Parameter
    08/21/2012 17:35:03  1  INF            Entering function Parameter.Initialze
    08/21/2012 17:35:03  1  INF            Leaving function Parameter.Initialze
    08/21/2012 17:35:03  1  INF          Leaving function Parameter.Parameter
    08/21/2012 17:35:03  1  INF          Entering function BoolExposedParameter.BoolExposedParameter
    08/21/2012 17:35:03  1  INF            Creating the runningupgrade bool exposed parameter
    08/21/2012 17:35:03  1  INF          Leaving function BoolExposedParameter.BoolExposedParameter
    08/21/2012 17:35:03  1  INF          Entering function BoolInternalParameter.BoolInternalParameter
    08/21/2012 17:35:03  1  INF            Creating the runningupgrade bool internal parameter
    08/21/2012 17:35:03  1  INF          Leaving function BoolInternalParameter.BoolInternalParameter
    08/21/2012 17:35:03  1  INF          Entering function Parameter.Parameter
    08/21/2012 17:35:03  1  INF            Entering function Parameter.Initialze
    08/21/2012 17:35:03  1  INF            Leaving function Parameter.Initialze
    08/21/2012 17:35:03  1  INF          Leaving function Parameter.Parameter
    08/21/2012 17:35:03  1  INF          Entering function BoolExposedParameter.BoolExposedParameter
    08/21/2012 17:35:03  1  INF            Creating the LanguagePackInstalled bool exposed parameter
    08/21/2012 17:35:03  1  INF          Leaving function BoolExposedParameter.BoolExposedParameter
    08/21/2012 17:35:03  1  INF          Entering function BoolInternalParameter.BoolInternalParameter
    08/21/2012 17:35:03  1  INF            Creating the LanguagePackInstalled bool internal parameter
    08/21/2012 17:35:03  1  INF          Leaving function BoolInternalParameter.BoolInternalParameter
    08/21/2012 17:35:03  1  INF          Entering function Parameter.Parameter

  • Failing to Delete/Remove Project Server Service Application, giving error "Object reference not set to an instance of an object"

    I have installed Project Server 2013 on SharePoint 2013, and installed the first PWA which worked. But I needed to change some configurations and so I deleted the PWA instances, but now I cannot delete the Project Server Service Application. Every attempt
    to delete the Service Application it gives the error above, namely:
    Sorry, something went wrong
    Object reference not set to an instance of an object.
    Technical Details
    Troubleshoot issues with Microsoft SharePoint Foundation.
    Correlation ID: ecaeaf9c-9fec-3049-ba23-d9a18337b9e2
    Date and Time: 8/18/2014 12:55:31 PM
    I'd urgently appreciate help.

    Thanks Paul for the reply. Here's the error, and the logs below covering the time the error occurred.
    I've tried to extract a section of the log file below:
    ==========================================================                                                        
    08/18/2014 19:20:19.07 w3wp.exe (0x542C)                      
    0x6DF4 SharePoint Foundation                 DistributedCache                             
    00000    Unexpected       SPDistributedCachePointerWrapper::InitializeDataCacheFactory - No cache hosts are present or running in the farm.
    08/18/2014 19:20:19.07 w3wp.exe (0x542C)                      
    0x6DF4 SharePoint Foundation                 DistributedCache                             
    ah24w   Unexpected       Unexpected Exception in SPDistributedCachePointerWrapper::InitializeDataCacheFactory for usage 'DistributedLogonTokenCache' - Exception 'System.InvalidOperationException: SPDistributedCachePointerWrapper::InitializeDataCacheFactory
    - No cache hosts are present or running in the farm.     at Microsoft.SharePoint.DistributedCaching.SPDistributedCachePointerWrapper.InitializeDataCacheFactory()'.     
    08/18/2014 19:20:19.07 w3wp.exe (0x542C)                      
    0x6DF4 SharePoint Foundation                 DistributedCache                             
    air4g      Monitorable       Token Cache: Failed to initialize SPDistributedSecurityTokenCache  Exception: 'System.InvalidOperationException: SPDistributedCachePointerWrapper::InitializeDataCacheFactory
    - No cache hosts are present or running in the farm.     at Microsoft.SharePoint.DistributedCaching.SPDistributedCachePointerWrapper.InitializeDataCacheFactory()     at Microsoft.SharePoint.DistributedCaching.SPDistributedCache..ctor(String
    name, TimeSpan timeToLive, SPDistributedCacheContainerType containerType, Boolean encryptData)     at Microsoft.SharePoint.IdentityModel.SPDistributedSecurityTokenCache..ctor(String name, TimeSpan timeToLive, SPDistributedCacheContainerType
    containerType, Boolean encrptyData, TimeSpan minimumTokenExpirationWindow)     at Microsoft.SharePoint.IdentityModel.SPDistributedSecurityTokenC...   
    08/18/2014 19:20:19.07*               w3wp.exe (0x542C)                      
    0x6DF4 SharePoint Foundation                         DistributedCache             
                   air4g      Monitorable       ...acheInitializer.Init(Object state)'.        
    08/18/2014 19:20:19.07 w3wp.exe (0x7240)                      
    0x7370  SharePoint Foundation                 General                      
                    af4yd     High       [Forced due to logging gap, cached @ 08/18/2014 19:20:18.99, Original Level: Verbose] TenantAppEtag
    record requested but there is no sitesubscription or tenantId for site {0} so we will use the WebApp Id for the cache.               f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
    08/18/2014 19:20:19.07 w3wp.exe (0x7240)                      
    0x7370  SharePoint Foundation                 Asp Runtime                                  
    aj1kp     High       [Forced due to logging gap, Original Level: Verbose] SPRequestModule.PreSendRequestHeaders     f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
    08/18/2014 19:20:19.10 w3wp.exe (0x7240)                      
    0x7370  Project Server                   Unified Logging Service                      
    b8fx       High       ULS Init Completed (w3wp.exe, Microsoft.Office.Project.Server.Native.dll)        f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
    08/18/2014 19:20:19.15 w3wp.exe (0x7240)                      
    0x7370                                  0x6FB7007                    
          6t8h       High                    [Forced due to logging gap, cached @ 08/18/2014 19:20:19.07, Original
    Level: Verbose] {0}            f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
    08/18/2014 19:20:19.15 w3wp.exe (0x7240)                      
    0x7370  Project Server                   Provisioning                      
    9or8                High       [Forced due to logging gap, Original Level: Verbose] Unprovisioning service app {0}        
    f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
    08/18/2014 19:20:19.16 w3wp.exe (0x7240)                       
    0x7370  Project Server                   Provisioning                      
    8ig5                High       Unregistering project psi shared application timer job.   f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
    08/18/2014 19:20:19.21 w3wp.exe (0x7240)                      
    0x7370  SharePoint Foundation                 General                      
                    8nca       Medium               Application error when access /_admin/ServiceApplicationDelete.aspx,
    Error=Object reference not set to an instance of an object.   at Microsoft.Office.Project.Server.Administration.PsiServiceApplication.get_ServiceAppTimerJob()     at Microsoft.Office.Project.Server.Administration.ProjectPSISharedApplicationTimerJob.Unregister(PsiServiceApplication
    psi)     at Microsoft.Office.Project.Server.Administration.PsiServiceApplication.Unprovision(Boolean deleteData)     at Microsoft.SharePoint.ApplicationPages.ServiceApplicationDeletePage.OkButton_Click(Object sender,
    EventArgs e)     at System.EventHandler.Invoke(Object sender, EventArgs e)     at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)     at System.Web.UI.Page.ProcessRequestMain(Boolean
    includeStagesBeforeAsyn...             f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
    08/18/2014 19:20:19.21*               w3wp.exe (0x7240)                      
    0x7370  SharePoint Foundation                 General                      
                    8nca       Medium               ...cPoint, Boolean includeStagesAfterAsyncPoint)           
    f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
    08/18/2014 19:20:19.23 w3wp.exe (0x7240)                      
    0x7370  SharePoint Foundation                 Runtime                                      
    tkau       Unexpected       System.NullReferenceException: Object reference not set to an instance of an object.    at Microsoft.Office.Project.Server.Administration.PsiServiceApplication.get_ServiceAppTimerJob()    
    at Microsoft.Office.Project.Server.Administration.ProjectPSISharedApplicationTimerJob.Unregister(PsiServiceApplication psi)     at Microsoft.Office.Project.Server.Administration.PsiServiceApplication.Unprovision(Boolean deleteData)    
    at Microsoft.SharePoint.ApplicationPages.ServiceApplicationDeletePage.OkButton_Click(Object sender, EventArgs e)     at System.EventHandler.Invoke(Object sender, EventArgs e)     at System.Web.UI.WebControls.Button.RaisePostBackEvent(String
    eventArgument)     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoin... f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
    08/18/2014 19:20:19.23*               w3wp.exe (0x7240)                      
    0x7370  SharePoint Foundation                 Runtime                      
                    tkau       Unexpected       ...t)         f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
    08/18/2014 19:20:19.24 w3wp.exe (0x7240)                      
    0x7370  SharePoint Foundation                 General                      
                    ajlz0       High       Getting Error Message for Exception System.Web.HttpUnhandledException (0x80004005): Exception
    of type 'System.Web.HttpUnhandledException' was thrown. ---> System.NullReferenceException: Object reference not set to an instance of an object.     at Microsoft.Office.Project.Server.Administration.PsiServiceApplication.get_ServiceAppTimerJob()    
    at Microsoft.Office.Project.Server.Administration.ProjectPSISharedApplicationTimerJob.Unregister(PsiServiceApplication psi)     at Microsoft.Office.Project.Server.Administration.PsiServiceApplication.Unprovision(Boolean deleteData)    
    at Microsoft.SharePoint.ApplicationPages.ServiceApplicationDeletePage.OkButton_Click(Object sender, EventArgs e)     at System.EventHandler.Invoke(Object sender, EventArgs e)     at System.Web.UI.WebControls.Button.Rais...               
    f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
    08/18/2014 19:20:19.24*               w3wp.exe (0x7240)                      
    0x7370  SharePoint Foundation                 General                      
                    ajlz0       High       ...ePostBackEvent(String eventArgument)     at System.Web.UI.Page.ProcessRequestMain(Boolean
    includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     at System.Web.UI.Page.HandleError(Exception e)     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)    
    at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     at System.Web.UI.Page.ProcessRequest()     at System.Web.UI.Page.ProcessRequest(HttpContext context)    
    at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()     at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)   f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
    08/18/2014 19:20:19.32 w3wp.exe (0x14A4)                      
    0x6508  SharePoint Foundation                 DistributedCache                             
    00000    Unexpected       SPDistributedCachePointerWrapper::InitializeDataCacheFactory - No cache hosts are present or running in the farm. 67c4af9c-afed-3049-ba23-d538b7dde463
    08/18/2014 19:20:19.32 w3wp.exe (0x14A4)                      
    0x6508  SharePoint Foundation                 DistributedCache                             
    ah24w   Unexpected       Unexpected Exception in SPDistributedCachePointerWrapper::InitializeDataCacheFactory for usage 'DistributedLogonTokenCache' - Exception 'System.InvalidOperationException: SPDistributedCachePointerWrapper::InitializeDataCacheFactory
    - No cache hosts are present or running in the farm.     at Microsoft.SharePoint.DistributedCaching.SPDistributedCachePointerWrapper.InitializeDataCacheFactory()'.               
    67c4af9c-afed-3049-ba23-d538b7dde463
    08/18/2014 19:20:19.32 w3wp.exe (0x14A4)                      
    0x6508  SharePoint Foundation                 DistributedCache                             
    air4g      Monitorable       Token Cache: Failed to initialize SPDistributedSecurityTokenCache  Exception: 'System.InvalidOperationException: SPDistributedCachePointerWrapper::InitializeDataCacheFactory
    - No cache hosts are present or running in the farm.     at Microsoft.SharePoint.DistributedCaching.SPDistributedCachePointerWrapper.InitializeDataCacheFactory()     at Microsoft.SharePoint.DistributedCaching.SPDistributedCache..ctor(String
    name, TimeSpan timeToLive, SPDistributedCacheContainerType containerType, Boolean encryptData)     at Microsoft.SharePoint.IdentityModel.SPDistributedSecurityTokenCache..ctor(String name, TimeSpan timeToLive, SPDistributedCacheContainerType
    containerType, Boolean encrptyData, TimeSpan minimumTokenExpirationWindow)     at Microsoft.SharePoint.IdentityModel.SPDistributedSecurityTokenC...               
    67c4af9c-afed-3049-ba23-d538b7dde463
    08/18/2014 19:20:19.32*               w3wp.exe (0x14A4)                      
    0x6508  SharePoint Foundation                         DistributedCache             
                   air4g      Monitorable       ...acheInitializer.Init(Object state)'.        
    67c4af9c-afed-3049-ba23-d538b7dde463
    08/18/2014 19:20:19.38 w3wp.exe (0x7240)                      
    0x7370  SharePoint Foundation                 Upgrade                      
                    aiaih       High       [Forced due to logging gap, Original Level: Verbose] desiredVersion: {0}               
    f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
    08/18/2014 19:20:19.41 w3wp.exe (0x7240)                      
    0x7370  SharePoint Foundation                 General                      
                    aat87     Monitorable                      f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
    08/18/2014 19:20:19.43 w3wp.exe (0x7240)                      
    0x7370  SharePoint Foundation                 DistributedCache                             
    00000    Unexpected       SPDistributedCachePointerWrapper::InitializeDataCacheFactory - No cache hosts are present or running in the farm. f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
    08/18/2014 19:20:19.43 w3wp.exe (0x7240)                      
    0x7370  SharePoint Foundation                 DistributedCache                             
    ah24w   Unexpected       Unexpected Exception in SPDistributedCachePointerWrapper::InitializeDataCacheFactory for usage 'DistributedViewStateCache' - Exception 'System.InvalidOperationException: SPDistributedCachePointerWrapper::InitializeDataCacheFactory
    - No cache hosts are present or running in the farm.     at Microsoft.SharePoint.DistributedCaching.SPDistributedCachePointerWrapper.InitializeDataCacheFactory()'.               
    f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
    08/18/2014 19:20:19.43 w3wp.exe (0x7240)                      
    0x7370  SharePoint Foundation                 General                      
                    ajb4s     Monitorable       ViewStateLog: Failed to write to the velocity cache:
    http://sharepoint:48488/_admin/ServiceApplicationDelete.aspx?id=24024e6bfd8f486ea7ab0b68658ce165&IsDlg=1               
    f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
    08/18/2014 19:20:19.46 w3wp.exe (0x7240)                      
    0x7370  SharePoint Foundation                 Monitoring                                   
    b4ly        Medium               Leaving Monitored Scope (Request (POST:http://sharepoint:48488/_admin/ServiceApplicationDelete.aspx?id=24024e6bfd8f486ea7ab0b68658ce165&IsDlg=1)).
    Execution Time=550.415729455012 f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
    08/18/2014 19:20:20.08 w3wp.exe (0x542C)                      
    0x6EC4  SharePoint Foundation                 DistributedCache                             
    00000    Unexpected       SPDistributedCachePointerWrapper::InitializeDataCacheFactory - No cache hosts are present or running in the farm.
    08/18/2014 19:20:20.08 w3wp.exe (0x542C)                      
    0x6EC4  SharePoint Foundation                 DistributedCache                             
    ah24w   Unexpected       Unexpected Exception in SPDistributedCachePointerWrapper::InitializeDataCacheFactory for usage 'DistributedLogonTokenCache' - Exception 'System.InvalidOperationException: SPDistributedCachePointerWrapper::InitializeDataCacheFactory
    - No cache hosts are present or running in the farm.     at Microsoft.SharePoint.DistributedCaching.SPDistributedCachePointerWrapper.InitializeDataCacheFactory()'.     
    08/18/2014 19:20:20.08 w3wp.exe (0x542C)                      
    0x6EC4  SharePoint Foundation                 DistributedCache                             
    air4g      Monitorable       Token Cache: Failed to initialize SPDistributedSecurityTokenCache  Exception: 'System.InvalidOperationException: SPDistributedCachePointerWrapper::InitializeDataCacheFactory
    - No cache hosts are present or running in the farm.     at Microsoft.SharePoint.DistributedCaching.SPDistributedCachePointerWrapper.InitializeDataCacheFactory()     at Microsoft.SharePoint.DistributedCaching.SPDistributedCache..ctor(String
    name, TimeSpan timeToLive, SPDistributedCacheContainerType containerType, Boolean encryptData)     at Microsoft.SharePoint.IdentityModel.SPDistributedSecurityTokenCache..ctor(String name, TimeSpan timeToLive, SPDistributedCacheContainerType
    containerType, Boolean encrptyData, TimeSpan minimumTokenExpirationWindow)     at Microsoft.SharePoint.IdentityModel.SPDistributedSecurityTokenC...   
    08/18/2014 19:20:20.08*               w3wp.exe (0x542C)                      
    0x6EC4  SharePoint Foundation                         DistributedCache             
                   air4g      Monitorable       ...acheInitializer.Init(Object state)'.        
    08/18/2014 19:20:20.30 OWSTIMER.EXE (0x09C4)                             
    0x09F8  SharePoint Foundation                 Monitoring                                   
    nasq      Medium               Entering monitored scope (Timer Job SchedulingUnpublish). Parent No acba9844-723f-4477-901c-adfdcae98e4e
    08/18/2014 19:20:20.30 OWSTIMER.EXE (0x09C4)                             
    0x09F8  SharePoint Foundation                 Logging Correlation Data               xmnv    
    Medium               Name=Timer Job SchedulingUnpublish  f1c4af9c-ffd4-3049-ba23-d4fe1cc1d1d7
    08/18/2014 19:20:20.31 OWSTIMER.EXE (0x09C4)                             
    0x0A10 SharePoint Foundation                 Monitoring                                   
    nasq      Medium               Entering monitored scope (Timer Job SchedulingUnpublish). Parent No 5dbf5387-ba14-4980-bc61-5ba5490870fa
    ==============================================
    Thanks for the attention.

  • Error occurred in deployment step 'Activate Features': Object reference not set to an instance of an object: feature receiver error

    I cretaed a Visual web part in SP 2013. It needs a SharePoint list. So wrote below code in web part feature receiver. When I deploy the solution I get error says Error occurred in deployment step 'Activate Features': Object reference not set to an instance
    of an object. I set ActivateOnDefault="FALSE" and AlwaysForceInstall="TRUE" . Take a look on my feature manifest file.
    I cretaed a Visual web part in SP 2013. It needs a SharePoint list. So wrote below code in web part feature receiver. When I deploy the solution I get error says Error occurred in deployment step 'Activate Features': Object reference not set to an instance
    of an object. I set ActivateOnDefault="FALSE" and AlwaysForceInstall="TRUE" . Take a look on my feature manifest file.
    <Feature xmlns="http://schemas.microsoft.com/sharepoint/" Title="SharePointProject1 Feature1" ActivateOnDefault="FALSE" AlwaysForceInstall="TRUE" Id="8f7163d5-6c65-40d8-9045-8f74192f07d7" ReceiverAssembly="SharePointProject1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9c2f0c3a8e22f6a0" ReceiverClass="SharePointProject1.Features.Feature1.Feature1EventReceiver" Scope="Site">
    <ElementManifests>
    <ElementManifest Location="VisualWebPart1\Elements.xml" />
    <ElementFile Location="VisualWebPart1\VisualWebPart1.webpart" />
    </ElementManifests>
    </Feature>
    This is my Feature1EventReceiver code.
    SPWeb spWeb = properties.Feature.Parent as SPWeb;
    SPList laptopList = spWeb.Lists["Laptops"];
    if (laptopList != null)
    laptopList.Delete();
    SPListCollection lists = spWeb.Lists;
    lists.Add("Laptops", "The Laptops", SPListTemplateType.GenericList);
    laptopList = spWeb.Lists["Laptops"];
    laptopList.Fields.Add("Name", SPFieldType.Text, true);
    laptopList.Fields.Add("Model", SPFieldType.Text, true);
    laptopList.Fields.Add("Image", SPFieldType.URL, false);
    I can deploy if I have only below code
    SPWeb spWeb = properties.Feature.Parent as SPWeb;

    hi
    features containing webparts must be site scoped, so you must get spweb as bellow:
    SPSite spSite = properties.Feature.Parent as SPSite;
    SPWeb spWeb = spSite.RootWeb;
    yaşamak bir eylemdir

  • QAAWS Log in Error - Object reference not set to an instance of an object

    I get the following error when trying to log into QAAWS query designer:-
    "Object reference not set to an instance of an object"
    I'm trying to get this working on a virtual workstation, version 3.1 base install. My host is set up correctly, as the same config works on my desktop machine.
    e.g.
    http://xxxxxxxdev:8080/dswsbobje/services/Session
    I'm using Windows AD in conjunction with SAP authentication. I have installed the SAP GUI and the integration kit.
    When I click details, QAAWs credentials dialog, I do not have any language in the drop down, even though I installed English (required). I believe this could be the cause of the error.
    It should be noted that all works well with Live Office and I can authenticate and connect to BW, via a Live Office query. Designer also connects to BW successfully.
    Other people have experienced this error, but I have seen no resolution.
    Any ideas?
    Cheers,
    Mark.
    Edited by: Mr Mark on May 27, 2011 11:29 AM

    Hi David,
    Thank you for the reposnse.
    Its quite a generic error to be fair.
    Due to this:-
    *as the same config works on my desktop machine. *
    I don't believe that this is the issue.
    Also, I'm not trying to connect to a universe at this point, I'm purely trying to log in.
    Cheers,
    Mark.

  • SSAS Tabular - Adding Column to a table gives error "Object reference not set to instance of object"

    If I make changes to a table in SSAS Tabular Visual Studio, the newly added column gives error as "Object
    reference not set to instance of object"

    Hi VikasJain13,
    According to your description, you get the "Object reference not set to instance of object" error when adding columns in Tabular. Right?
    Generally, it throws this error when the internal code is accessing the property of an empty object. As you mentioned it happens when you make changes on a table, mostly it means that table is already a empty object. Please re-process your tabular to see
    if this table is still existing. 
    If you have any question, please feel free to ask.
    Simon Hou
    TechNet Community Support

  • ERROR: Object reference not set to an instance to an object.

    Hello every one. I want to export data from DataGridView to PDF file. but this error occur when I click on Export Pdf.
    The code is given Below.
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    using System.IO;
    using System.Data;
    using System.Reflection;
    using iTextSharp.text.pdf;
    using iTextSharp.text;
    namespace Final_Design
        public partial class pdf : Form
            public pdf()
                InitializeComponent();
            private void button1_Click(object sender, EventArgs e)
             //   dataGridView1.DataSource = connclass.mysql_query("fyp", string.Format(" select * from user_login "));
            private void pdf_Load(object sender, EventArgs e)
                dataGridView1.DataSource = connclass.mysql_query("fyp", string.Format(" select * from user_login "));
            private void button2_Click(object sender, EventArgs e)
                try 
        //Creating iTextSharp Table from the DataTable data
        PdfPTable pdfTable = new PdfPTable(dataGridView1.ColumnCount);
        pdfTable.DefaultCell.Padding = 3;
        pdfTable.WidthPercentage = 30;
        pdfTable.HorizontalAlignment = Element.ALIGN_LEFT;
        pdfTable.DefaultCell.BorderWidth = 1;
        //Adding Header row
        foreach (DataGridViewColumn column in dataGridView1.Columns)
            PdfPCell cell = new PdfPCell(new Phrase(column.HeaderText));
          //  cell.BackgroundColor = new iTextSharp.text.color(240, 240, 240);
            pdfTable.AddCell(cell);
        //Adding DataRow
        foreach (DataGridViewRow row in dataGridView1.Rows)
            foreach (DataGridViewCell cell in row.Cells)
                pdfTable.AddCell(cell.Value.ToString());
        //Exporting to PDF
        string folderPath = "C:\\PDFs\\";
        if (!Directory.Exists(folderPath))
            Directory.CreateDirectory(folderPath);
        using (FileStream stream = new FileStream(folderPath + "DataGridViewExport.pdf", FileMode.Create))
            Document pdfDoc = new Document(PageSize.A2, 10f, 10f, 10f, 0f);
            PdfWriter.GetInstance(pdfDoc, stream);
            pdfDoc.Open();
            pdfDoc.Add(pdfTable);
            pdfDoc.Close();
            stream.Close();
                catch (Exception ex)
                    MessageBox.Show(ex.Message);

    Hi Sufian,
    What is PdfPCell in your code and why you need to new a instance of  iTextSharp.text.color here? Please modify your code there to set the BackgroundColor to a exist color.
    Regards, 
    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • WFA 3.1RC1 throws "Object reference not set to an instance of an object", worked in 3.0P1

    I am running a custom workflow to create volumes that has worked since WFA 2.x, and which works well in 3.0P1. With WFA 3.1RC1 it throws this error when attempting to apply a quota to the volume:   INFO  [Apply Quota Policy to Volume or Qtree] Started Quota resize on volume post_wfa31rc1_test2_w_mirror on vserver MySVM   ERROR [Apply Quota Policy to Volume or Qtree] Command failed for Workflow 'Create Volume (Schwab)' with error : Object reference not set to an instance of an object.  INFO  [Apply Quota Policy to Volume or Qtree] ***** Workflow Execution Failed ***** I have executed the PS commands from this code block in a PS shell with no errors. Has anyone else seen a similar issue with 3.1RC1?     Scott Lindley

    I have narrowed the problem down to a single command and can reproduce the problem very easily. However, I can't seem to fix it. But I believe importing this single custom command into both a WFA 3.0P1 and WFA 3.1RC1 system will easily show that it works in 3.0P1 and throws the odd 'Object reference not set to an insance of an object' error. I say that is an odd error because I'm only used to seeing that error at Preview time referring to an object reference in a Command Parameter field of a workflow. I know how to deal with that issue. However here, the error appears at the end a PowerShell command. Actually, the PowerShell command appears to me to execute entirely and correctly. It is just that at the end of running this exception error is thrown and that causes the command (and workflow if running within a workflow) to fail. But the comamnd correctly adds the 'default' quota policy to the volume and even enables quota resize as it should. So it works, but still blows up the workflow it is within. I'm going to attempt to attach these three things here:    1) screenshot showing the command running (with Command Test Button) fine under WFA-3.0P1,    2) a screenshot showing the command running but throwing the error on a WFA-3.1RC1 system    3) the ,dar file holding just the command: "Apply Quota Policy to Volume or Qtree" (I added .txt to the end of .dar file name) ------1) running OKay on 3.0P1  -------------------------- 2) running with the ERROR on WFA 3.1RC1  SOME NOTES: My lab environment where I re-created the problem:    The WFA 3.0P1 system is a Windows 2008R2 server that happens to have the original PowerShell 2.0 on it    The WFA 3.1RC1 system is a Windows 7 system that I have updated PowerShell to 4.0. The customer environment:    I'm less certain of details (maybe Scott can fill in)    The version of PowerShell is TBD (guessing 2.0) , but they are running the same PS version for both 3.0P1 and 3.1RC1 because they are upgrading/downgrading WFA on the same system  

  • Object reference not set to an instance of an object error with Import data

    Hi Experts,
    We are using BPC 7.5M with SQL Server 2008 in Multiserver environment, I am getting an error "Object reference not set to an instance of an object." while running Import data package, earlier we use to get this error sometime(once in a month) but it goes away if we reboot the application server but this time I have rebotted the Application server multiple times but still getting the same error.
    Please Advice.
    Thanks & Regards,
    Rohit

    Hi Rohit,
    please see the sap note 1615837, maybe this help you.
    Best regards
    Roberto Vidotti

  • "Object reference not set to an instance of an object" error in SAPBO 9.0 PL08

    Hi Experts,
    I developed Customized Addon and  created.ard file using B1 DE 2.2 version. But when we installed in the client place,Addon is connecting and status is showing "Connected" at the same time we are getting an error "Object reference not set to an instance of an object" . Please find the enclosed screen shot for your reference.
    In the debug mode, am not getting any error and addon is working perfectly.
    I need clarification --->PL08 SDK is required to create .ard file (OR)  PL05 SDK is sufficient ??
    Before this am getting error "You are not connected to the company" while connecting addon,that is resolved.
    Now am  facing this problem, Please help me  out to resolve this issue.
    Thanks & Regards
    KMJ

    Hi Maik Delly,
    I created the addons for SAPB1 8.81/8.82 SQL Server 2008 R2 environment  from the same source code which is working fine till now without any error.
    But why all of sudden we are getting this error for SAP B1 9.0 PL08 and SQL Server 2012 R2 environment.
    In my system i have .net framework 3.5 SP1  and .Net Compact framework 1.0 and 2.0 installed. Addon is connecting and working also without any error for the same environment.
    Some Clarification needed
    1)  SAP B1 9 PL05 SDK sufficient to create .ard file for SAP B1 9 PL08 environment ?
    Awaiting for suggestions and advices to resolve this issue.
    Thanks & Regards
    KMJ

  • "Object reference not set to an instance of an object" when opening designer

    I have a Windows Forms project which was originally developed in Visual Studio 2010. I migrated the project to VS2013, and now every time I open the project's main form, the designer complains of a null reference. If I hit "Ignore and Continue",
    the code compiles just fine. The error in question appears in the "Windows Form Designer generated code" region. Even more curious, the line in question is not the first reference to the object. It's as if the first few times it needs to interact
    with the object, it's fine, then at a certain point it becomes null.
    Here is the call stack for the error:
    at System.ComponentModel.ReflectPropertyDescriptor.SetValue(Object component,
    Object value)at
    Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkPropertyDescriptor.SetValue(Object
    component, Object value)at
    System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializePropertyAssignStatement(IDesignerSerializationManager
    manager, CodeAssignStatement statement, CodePropertyReferenceExpression
    propertyReferenceEx, Boolean reportError)at
    System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeAssignStatement(IDesignerSerializationManager
    manager, CodeAssignStatement statement)at
    System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager
    manager, CodeStatement statement) 
    And here is the code in question:
    this.optionsControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); 
    this.optionsControl.IsAsciiMode = false;           
    this.optionsControl.Location = new System.Drawing.Point(3, 3);
    this.optionsControl.LogControl = null;           
    this.optionsControl.Name = "optionsControl";           
    this.optionsControl.PlugInManager = null;           
    this.optionsControl.PortFacade = null;           
    this.optionsControl.Size = new System.Drawing.Size(613, 259);
    this.optionsControl.TabIndex = 0;
    The problem is reported at the third line, "this.optionsControl.Location = new System.Drawing.Point(3, 3);".

    Hi Eric,
    I have made a research about your issue, and I found it might be caused by the usercontrol in the project. Was “this.optionsControl” a UserControl? It seems that this issue was difficult to handle.
    If possible, I would recommend you recreate this control in a new project.
    In addition, I think you could turn to the links below, they may be useful to you:
    # How to get more information about exceptions thrown by the designer when switching from code to design view?
    http://community.sharpdevelop.net/forums/p/16124/43105.aspx
    # How to avoid WSODs in the Visual Studio 2005 Designer
    http://www.codeproject.com/Articles/13584/How-to-avoid-WSODs-in-the-Visual-Studio-Desig
    # design time error: object reference not set an instance of an object but runs fine
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/b3676bef-e457-4aac-b438-d3ed8a667e3f/design-time-error-object-reference-not-set-an-instance-of-an-object-but-runs-fine?forum=winforms
    Best Regards,
    Edward
    This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore,
    Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you
    completely understand the risk before retrieving any software from the Internet.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

  • "object reference not set to an instance of an object" after update datasource lightswitch

    I'm using Latest Visual Studio 2013 Ultimate (2013.3) and when I attempt to open "update datasource"  it throws an error
    "Object reference not set to instance of an object." 

    It's quite possibly an issue with the data source definition being dependent on a newer version of a lightswitch framework DLL.  When I've hit these kinds of issues I've simply deleted the datasource, run a nuget refresh and added the datasource again.
     If you have any code or queries, save a copy of the code-behind files and jot down the details of the queries before you try this.

  • "Object reference not set to an instance of an object" when using Sheel Shah's example

    I am attempting to use a custom add dialog as in http://blogs.msdn.com/b/lightswitch/archive/2011/07/07/creating-a-custom-add-or-edit-dialog.aspx and
    I get the error "Object reference not set to an instance of an object." when clicking my button to AddEntity().  My code to call the control is:
    User u = new User();
    userdialoghelper.AddEntity(u);
    Any ideas as to why I'm getting this error?  I "think" that I've set up the class properly?
    Scott

    I may be a couple of years late to the party here (using VS2013) but I also had some issues adapting to Yann's improvements over Sheel's code.
    Sheel's screen code as provided has the word "Old in the InitializeDataWorkspace and the created methods. this does not work when copy/pasted. ALso removed the "UI" from "InitialiseUI()"
    Following code can be used with Yann's Helper Class.
    Namespace LightSwitchApplication
    Public Class EditableCustomersGrid
    Private customersDialogHelper As ModalWindow
    Private Sub EditableCustomersGrid_InitializeDataWorkspace(saveChangesTo As System.Collections.Generic.List(Of Microsoft.LightSwitch.IDataService))
    customersDialogHelper = New ModalWindow(Me.Customers, "CustomerViewDialog")
    End Sub
    Private Sub EditableCustomersGrid_Created()
    customersDialogHelper.Initialise()
    End Sub
    Private Sub gridAddAndEditNew_CanExecute(ByRef result As Boolean)
    customersDialogHelper.CanAdd()
    End Sub
    Private Sub gridAddAndEditNew_Execute()
    customersDialogHelper.AddEntity()
    End Sub
    Private Sub gridEditSelected_CanExecute(ByRef result As Boolean)
    customersDialogHelper.CanView()
    End Sub
    Private Sub gridEditSelected_Execute()
    customersDialogHelper.ViewEntity()
    End Sub
    Private Sub EditDialogOk_Execute()
    customersDialogHelper.DialogOk()
    End Sub
    Private Sub EditDialogCancel_Execute()
    customersDialogHelper.DialogCancel()
    End Sub
    End Class
    End Namespace

  • "Object reference not set to an instance of an object." in Visual Studio 2012 Entity Framework Model-First

    Hello
    We're trying to use a Model-First with Entity Framework in Visual Studio, targeting an Oracle XE 11g installation.
    No matter from what angle we're approaching the issue, we always end up with an "Object reference not set to an instance of an object" in Visual Studio:
    First way:
    - Add new ADO.NET Entity Framework Model to a .NET Framework 4.5 project
    - Empty model
    - Add some entities and associations
    - Set Database Generation Workflow to "Generate Oracle Via T4 (TPT).xaml"
    - Set DDL Generation Template to "SSDLToOracle.tt"
    - Generate Database From Model
    - VS asks for DB connection ==> Click "New Connection"
    - Enter the connection properties to the Oracle XE database. "Test Connection" tells me the connection is okay.
    - Click OK. Visual Studio shows the following error message:
    (here's the image if it's not visible: https://dl.dropboxusercontent.com/u/35614983/vs2012_oracle_ef_error.png)
    We also tried to generate the model in VS2010 and then manually transform it to an EF5 / VS2012 model. At the "Generate Database from Model" step, the same error appeared.
    We also tried to generate the model from database (Database-First approach). Same error.
    My configuration:
    - Windows 7 Ultimate 64-bit
    - Installed Oracle client: ODTwithODAC1120320_32bit.zip, so the version is 11.2.0.3.20
    - Visual Studio 2012 Update 3 (11.0.60610.01)
    Thanks for any hints!
    EDIT: I just read that ODP.NET doesn't seem to support Entity Framework 5, so I tried a new project with Entity Framework 4.1, but I get the same errors.
    EDIT 2: On a 32-bit Windows 7 virtual machine, everything works fine. Seems the problem is only there on my 64-bit Windows 7 machine.

    Sorry for the delay on this one. Let me know if you are still seeing this and I will see if we can get more diagnostic info somehow.
    That error is basically an exception fault. It means a bug or a misconfiguration of Oracle Developer Tools. Can you try to reinstall ODT and see if you notice any unusual errors during install.. and see if a reinstall fixes the problem?

  • Content source is throwing Object reference not set to an instance of an object

    we have migrated SharePoint 2010 data to share point 2013 . after migrating web application when we try configure content source we are getting below error in logs. when we are opening content source in search service application.
    Application error when access /_admin/search/listcontentsources.aspx, Error=Object reference not set to an instance of an object.   at Microsoft.Office.Server.Search.Internal.UI.SearchCentralAdminPageBase.ErrorHandler(Object sender, EventArgs e)  
      at Microsoft.Office.Server.Search.Internal.UI.SearchCentralAdminPageBase.OnError(EventArgs e)     at System.Web.UI.Page.HandleError(Exception e)     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,
    Boolean includeStagesAfterAsyncPoint)     at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     at System.Web.UI.Page.ProcessRequest()     at System.Web.UI.Page.ProcessRequest(HttpContext
    context)     at System.Web.HttpApplication.CallHandlerExecutionStep.S...        c503ba9c-dabd-00a4-69f1-8ce1acd494bf
    Disable loop check is done on web and app server.
    Appreciate your quick help!
    Regards,
    -Naveen.
    -Naveen

    Try to run below command check if it helps
    PSConfig.exe -cmd upgrade -inplace b2b -force -cmd applicationcontent -install -cmd installfeatures
    Also let us know exact error in ULS Logs. If possible share ULS logs
    If this helped you resolve your issue, please mark it Answered

Maybe you are looking for