Error "Object refernce not set" when using http context in Eventreceiver for Document Library,

Hi,
Httpcontext returning null values when I used in item adding event of document library.
I have a document set home page which has document set properties(by default) and one OOTB document library is placed in the same page.When user clicking on upload documents in the ribbon I need to read the document set properties.
when uploading the docs if I pass the Hardcoded item id of the document set I am getting the values of the document set in the item added event.
now the problem, i have the id in the query string if i want to read the query string value using httpcontext in the itemadding event and pass it to item added event using httpruntime it is throwing "object reference error" .
if any body has any solution/workaround how to read the context in the document library event receiver,please help me out.
Thanks ,G1

Hi,
Did you use the HttpContext.Current method to get the current context?
You can use the HttpContext.Current to check whether it works.
There is a similar thread for your reference.
http://stackoverflow.com/questions/1601352/how-to-obtain-the-httpcontext-in-event-handler
Thanks,
Jason
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Jason Guo
TechNet Community Support

Similar Messages

  • 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.

  • 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/

  • 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

  • Size Property of OracleParameter is not set when used in constructor

    Hi
    I have an issue in using OracleParameter in my .net windows app(vb.net) . If I create a OracleParameter like this, ths size property is not set
    Dim opParam As New OracleParameter("v_Test", OracleDbType.Char, 120, ParameterDirection.Output)
    'Here 120 is the size I have set, but it is not getting assigned to the Size property
    MsgBox(opParam.Size) 'This will return 0
    'I have to assign like this explicitly to have the size property set.
    opParam .Size=120
    Is it a problem in ODP.Net or I am doing something stupid ?.
    Any answers would be greatly appreciated
    Cheers
    John

    Hi John,
    In looking at the constructor call you have this "format":
    string, OracleDbType, int, ParameterDirection
    This does not match to a constructor that does what you want. What it matches to is:
    string, OracleDbType, object, ParameterDirection (i.e. the value (object) is being set where it looks like you want to set the size).
    The closest matching constructor for what you want would be:
    string, OracleDbType, int, object, ParameterDirection
    i.e.
    Dim opParam As New OracleParameter("v_Test", OracleDbType.Char, 120, null, ParameterDirection.Output)Hope that helps a bit (assuming I have not misread, etc...)
    - Mark

  • 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.

  • Order Quantity (Config.) not set when using BAPI_SALESORDER_CREATEFROMDAT2

    Hi when I use BAPI_SALESORDER_CREATEFROMDAT2 order quantity is empty (missing also in the inclompent log in VA03)
    why ? what should be also set ? thanks a lot !
    I set this data:
    ls_order_header_in-doc_type    = 'TA'.
    ls_order_header_in-sales_org   = '1000'.
    ls_order_header_in-distr_chan  = '01'.
    ls_order_header_in-division    = '01'.
    ls_order_header_in-PURCH_NO_C  = 'test'.
    ls_order_partners-partn_role = 'AG'.
    ls_order_partners-partn_numb = 'CH10'.
    APPEND ls_order_partners TO lt_order_partners.
    ls_order_item_in-material = 'S-000'.
    APPEND ls_order_item_in TO lt_order_item_in.
    ls_order_cfgs_value-charc = 'S001'.
    ls_order_cfgs_value-value = '1'.
    APPEND ls_order_cfgs_value TO lt_order_cfgs_value.
    ls_order_cfgs_value-charc = 'S002'.
    ls_order_cfgs_value-value = '1'.
    APPEND ls_order_cfgs_value TO lt_order_cfgs_value.
    ls_order_cfgs_value-charc = 'S002'.
    ls_order_cfgs_value-value = '2'.
    APPEND ls_order_cfgs_value TO lt_order_cfgs_value.
    ls_order_cfgs_value-charc = 'S003'.
    ls_order_cfgs_value-value = '1'.
    APPEND ls_order_cfgs_value TO lt_order_cfgs_value.
    ls_order_cfgs_value-charc = 'S003'.
    ls_order_cfgs_value-value = '3'.
    APPEND ls_order_cfgs_value TO lt_order_cfgs_value.
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
      EXPORTING
    *   SALESDOCUMENTIN               =
        order_header_in               = ls_order_header_in
    *   ORDER_HEADER_INX              =
    *   SENDER                        =
    *   BINARY_RELATIONSHIPTYPE       =
    *   INT_NUMBER_ASSIGNMENT         =
    *   BEHAVE_WHEN_ERROR             =
    *   LOGIC_SWITCH                  =
    *   TESTRUN                       =
    *   CONVERT                       = ' '
    * IMPORTING
    *   SALESDOCUMENT                 =
      TABLES
        return                        = lt_return
        order_items_in                = lt_order_item_in
    *   ORDER_ITEMS_INX               =
        order_partners                = lt_order_partners
    *   ORDER_SCHEDULES_IN            =
    *   ORDER_SCHEDULES_INX           =
    *   ORDER_CONDITIONS_IN           =
    *   ORDER_CONDITIONS_INX          =
    *   ORDER_CFGS_REF                =
    *   ORDER_CFGS_INST               =
    *   ORDER_CFGS_PART_OF            =
        order_cfgs_value              = lt_order_cfgs_value.
    *   ORDER_CFGS_BLOB               =
    *   ORDER_CFGS_VK                 =
    *   ORDER_CFGS_REFINST            =
    *   ORDER_CCARD                   =
    *   ORDER_TEXT                    =
    *   ORDER_KEYS                    =
    *   EXTENSIONIN                   =
    *   PARTNERADDRESSES              =
    *   NFMETALLITMS                  =
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

    We use the same BAPI to process Web orders into SAP.  You have to have a corresponding ORDER_SCHEDULES_IN entry with matching ITM_NUMBER for every ORDER_ITEMS_IN entry.  Within ORDER_SCHEDULES_IN is where you put the quantity.  Should be stored in REQ_QTY.    We had to fill ITM_NUMBER and SCHED_LINE with the line number value in order to make it work.  Remember to fill in your corresponding X-structure fields as well.
    hope this helps,
    Chad

  • Very strange issue when using initial context to lookup for beans...

    hi, friends,
    I am currently try to call a bean from a remote ejbclient.
    I set the initialcontext like this with the url suppose to be:
    Properties p = new Properties();
    p.put(Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.jndi.WLInitialContextFactory");
    p.put(Context.PROVIDER_URL, url);
    ctx = new InitialContext(p);
    and look up home like this with the Name suppose to be:
    Object h = null;
    h = ctx.lookup(Name);
    but the strange thing is, the programme just stops when it is doing ctx.lookup(Name); However I try to log it, but it is just stopping there, without throwing any exceptions and errors.
    But, when I gave it a wrong name to like at, it could go through ctx.lookup(Name), and throw some exceptions like "unnable to look up beans.." which I put in the catch part...
    I try to echo the "ctx", and it is not null. and I try to echo "h", but it just stop before the "h" getting anything...
    the ejbclient is compile with jdk 1.4, because it is on a server with jdk 1.4, and deployed on weblogic 8.1. and the bean.java is compiled with jdk 1.5, and deployed on weblogic 10.
    Does anyone knows what is really going on here, when doing the lookup, what happened?
    How could I know whether there are the ejbs I need to call are existing in the pool?
    Thanks..
    Looking forward helps. such an problem has bothered me for a couple of days, and my boss is pushing me on this. but I haven't get any idea on it...:(

    And now the stranger things here... I didn't do much change to both the remote bean side and the client side, what I did is most like change it to something, and tried with failure, and change back.
    But today 's morning, when I just change everything back to suppose to be, and it can find the homebean:
    [2008-11-14 11:21:18,436] [ INFO] [Thread-85] - {} getRemoteBean(Unknown Source) Looking up RepairEJB with JNDIName: RepairGatewayEJB_slsb
    [2008-11-14 11:21:18,531] [ INFO] [Thread-85] - {} getRemoteBean(Unknown Source) h is not null!!
    [2008-11-14 11:21:18,532] [ INFO] [Thread-85] - {} getRemoteBean(Unknown Source) got h: weblogic.rmi.internal.BasicRemoteRef@121 - hostID: '-891706141070674357S:113.128.134.59:[40010,40010,-1,-1,-1,-1,-1]:VPFSCTech:AdminServer', oid: '289'
    [2008-11-14 11:21:18,533] [ INFO] [Thread-85] - {} getRemoteBean(Unknown Source) After ctx.lookup();
    [2008-11-14 11:21:18,535] [ INFO] [Thread-85] - {} getRemoteBean(Unknown Source) homeBean is weblogic.rmi.internal.BasicRemoteRef@121 - hostID: '-891706141070674357S:113.128.134.59:[40010,40010,-1,-1,-1,-1,-1]:VPFSCTech:AdminServer', oid: '289'
    [2008-11-14 11:21:18,537] [ INFO] [Thread-85] - {} getRemoteBean(Unknown Source) After home bean;
    [2008-11-14 11:21:18,589] [ INFO] [Thread-85] - Waiting for a request ...
    but unfortunately again it just stopped at
    remoteBean = homeBean.create();
    with no errors and exceptions...
    Does any experienced friends ever have this problem before?

  • BMP question : got javax.ejb.EJBException error Object state not saved

    Could anybody please help me? I could not figure out what i did wrong.
    I got the javax.ejb.EJBException error: Object state not saved
    when i test the getname() method for findByPrimaryKey() and findAll() methods.
    Here is my code:
    package org.school.idxc;
    import javax.sql.*;
    import javax.naming.*;
    import javax.ejb.*;
    import javax.sql.*;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    import java.util.ArrayList;
    import java.util.Collection;
    import java.util.Enumeration;
    import java.util.Vector;
    * Bean implementation class for Enterprise Bean: status
    public class statusBean implements javax.ejb.EntityBean {
         private javax.ejb.EntityContext myEntityCtx;
         private int id;
         private String name;
         private DataSource ds;
         private String dbname = "jdbc/idxc";
         private Connection con;
         * ejbActivate
    public void ejbActivate() {
         * ejbLoad
         public void ejbLoad() {
         System.out.println("Entering EJBLoad");
         try
         Integer primaryKey = (Integer) myEntityCtx.getPrimaryKey();
         String sqlstmt = "select id, name from from status where id =?";
         con = ds.getConnection();
         PreparedStatement stmt = con.prepareStatement(sqlstmt);
         stmt.setInt (1,primaryKey.intValue());
         ResultSet rs = stmt.executeQuery();
         if (rs.next())
              this.id = rs.getInt(1);
              this.name = rs.getString (2).trim();
              stmt.close();
         } // if
         else
              stmt.close();
              throw new NoSuchEntityException ("Invalid id " + id);
         }// else
              } // try
         catch (SQLException e)
         System.out.println("EJBLOad : " + e.getMessage());
              } // catch
         finally
         try
              if (con != null)
              con.close();
              }// try
         catch (SQLException e)
              System.out.println("EJBLOad finally" + e.getMessage());
              } // catch
              }// finally
         * ejbPassivate
         public void ejbPassivate() {
         * ejbRemove
         public void ejbRemove() throws javax.ejb.RemoveException {
         System.out.println ("Entering ejb Removed");
         try
         String sqlstmt = "delete from status where id=" + id;
         con = ds.getConnection();
         Statement stmt = con.createStatement();
         stmt.executeUpdate(sqlstmt);
         stmt.close();
         }// try
         catch (SQLException e)
         System.out.println("Ejb Remove" + e.getMessage());     
         } // catch
         finally
         try
              if (con!=null)
                   con.close();
         }// try
         catch (SQLException e)
              System.out.println ("EJBRemoved " + e.getMessage());
         } // catch
         } // finally
         * ejbStore
         public void ejbStore() {
         System.out.println("Entering the ejbStore");
         try
    String sqlstmt = "update status set id=" + id + ",name='" + name + "' where id=" + id;
         con = ds.getConnection();
         Statement stmt = con.createStatement();
         if (stmt.executeUpdate(sqlstmt) != 1)
              throw new EJBException ("Object state not saved");
    stmt.close();     
         } // try
         catch (SQLException e)
              System.out.println ("EJBStore : " + e.getMessage());
         }// catch
         finally
         try
              if (con != null)
              con.close();
         } // try
         catch(SQLException e)
              System.out.println ("EJBStore finally " + e.getMessage());
         } // catch
         } // finally
         * getEntityContext
         public javax.ejb.EntityContext getEntityContext() {
              return myEntityCtx;
         * setEntityContext
         public void setEntityContext(javax.ejb.EntityContext ctx) {
              myEntityCtx = ctx;
              try
              InitialContext initial = new InitialContext();
              ds = (DataSource)initial.lookup(dbname);
    } // try
              catch (NamingException e)
              throw new EJBException ("set Entity context : Invalid database");     
              }// catch
         * unsetEntityContext
         public void unsetEntityContext() {
              myEntityCtx = null;
         * ejbCreate
         public Integer ejbCreate(Integer key, String name) throws javax.ejb.CreateException {
    this.id = key.intValue();
    this.name = name;
              System.out.println ("Entering ejbCreated!!!");
              try
              String sqlstmt = "insert into status(id,name) values (" + id + ",'" + (name == null ? "" : name) + "')";
              con = ds.getConnection();
              Statement stmt = con.createStatement();
              stmt.executeUpdate(sqlstmt);
              stmt.close();
              }// try
              catch (SQLException e)
              System.out.println("EJBCreate : SQLEXception ");     
              }// catch
              finally
              try
              if (con!=null)
                   con.close();
              }// try
              catch (SQLException e)
              System.out.println ("EJB Created Finally : SQLException");
              e.getMessage();
              } // catch
              }// finally
              this.id = key.intValue();
              this.name = name;
              return key ;
         * ejbPostCreate
         public void ejbPostCreate(Integer id, String name) throws javax.ejb.CreateException {
         * ejbFindByPrimaryKey
         public Integer ejbFindByPrimaryKey(
              Integer key) throws javax.ejb.FinderException {
              try
              String sqlstmt = "select id from status where id=" + key.intValue();
              con = ds.getConnection();
              Statement stmt = con.createStatement();
    ResultSet rs = stmt.executeQuery(sqlstmt);
              if (!rs.next())
              throw new ObjectNotFoundException();     
              } // if
              rs.close();
              stmt.close();
              } // try
              catch (SQLException e)
              System.out.println ("EJBFindBYPrimaryKey " + e.getMessage());     
              } // catch
              finally
              try
              if (con!=null)
                   con.close();
              }// try
              catch (SQLException e)
              System.out.println ("EJB Find by primary key" + e.getMessage());
              }// catch
              }// finally
              return key;
         * @return Returns the name.
         public String getName() {
              return this.name;
         * @return Returns id
         public int getId() {
              return this.id;
         * @param name The name to set.
         public void setName(String xname) {
              this.name = xname;
         * ejbFindByLastnameContaining
         public Enumeration ejbFindAllNamne () throws javax.ejb.FinderException
         try
         String sqlstmt = "select id from status order by id";
         con = ds.getConnection();
         Statement s = con.createStatement();
         ResultSet rs = s.executeQuery(sqlstmt);
         Vector keys = new Vector();
         while (rs.next())
              keys.add(new Integer(rs.getInt(1)));
         }// while
         rs.close();
         s.close();
         con.close();
         return keys.elements();
         } // try
         catch (SQLException e)
              throw new FinderException (e.toString());
         } // catch
    }

    Hi,
    if you look at your error message you will see the problem. In your code you've missed to implement
    public void ejbPassivate {}
    so your code looks like this
    import java.lang.Object;
    import javax.ejb.SessionBean;
    import javax.ejb.SessionContext;
    import java.rmi.RemoteException;
    import java.lang.Math;
    import java.util.Random;
    import java.io.*;
    /** * Title: * Description: * Copyright: Copyright (c) 2001 * Company: * @author * @version 1.0 */
    public class DiceEJB implements SessionBean, Serializable
         public int[] Roll()
              Random rng = new Random();
              int[] diceArray = new int[5];
              for(int i =0; i < diceArray.length;i++)
                   diceArray[i] = (Math.abs (rng.nextInt()) % 6) +1;
              return diceArray;
         public DiceEJB(){}
         public void ejbCreate() {}
         public void ejbRemove() {}
         public void ejbActivate() {}
         public void ejbPassivate() {}
         public void setSessionContext (SessionContext sc)
         private void writeObject(ObjectOutputStream oos) throws IOException
              oos.defaultWriteObject();
         private void readObject(ObjectInputStream ois) throws ClassNotFoundException, IOException
              ois.defaultReadObject();
    bye

  • "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" 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" 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 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

  • WRT160N - LELA FAILED - ERROR - MSG_100_000_003 & Object ref not set to an instance of an object

    First of all I would like to say I'm very disappointed with Cisco/Linksys support. I made 6 phone calls and spent about 3 hours on hold and being connected to someone else over the course of about two weeks. The Tech supportin this particular case was the worst I have ever experienced. Regarding the problem - make sure that you do not have any items in the start up such as Linksys EasyLink Advisor and in particular nmctxth unchecked. Also, check that your Anti-Virus does not have the app blocked. I was instructed to uninstall and reinstall about six different times - which I did. This never solved anything. Then I notice a program named "Pure Networks", this appears to be app associated with LELA. The best I could tell this does not get uninstalled and reinstalled like the rest of the program. So I chased the app down to Documents and Settings\All Users\Application Data\Pure Networks\Setup\PlatformSetupInstaller_0.msi . Executed this program which initiated an install program for the same and selected the REPAIR option from the three options (Repair\Modify\Uninstall). After about two or three minutes the program indicated the Repair had completed and the PC needed to be rebooted. Which I did and now the program (LELA) works with no issues. I think when you uninstall and reinstall the LELA program this never gets executed. So when you manually run the program it actually gets executed. I performed this Repair when the file: PlatformSetupInstaller_0.msi was selected and actually executed. The following error messages were indicated before the issue was resolved:
    Error
    MSG_100_000_003
    Cannot find Platform service, make sure that the service is correctly installed on your machine.
    Error
    Object ref not set to an instance of an object.
    Error
    1628
     These errors occured when various items were selected in LELA and after reboot on reinstall. And by the way LELA would be blank with no Network Map present. If you go through the log files under the Documents and Settings\All Users\Application Data\Pure Networks and C:\Documents and Settings\All Users\Application Data\Linksys\Lela, then search for the word fail, you will turn up these errors in bits and parts. The registry key:  4CDCB1A1-87EE-49AB-9A9F-E270FC5DB823 led me to the Pure Networks program or I might not have figured it all out.
    All of these error messages are related to the log files in either folder indicated above. 
    I hope this helps everyone - again the support was pitiful and I really expected more.

     The Linksys Link Network Advisor (LELA) sometimes works, most of the times does not on our "House-PC"; we have to install the disk again when it gets stuck to make it work. Also, in order to make changes to our network, we can do it easily on its web site, but the LELA will not synchronize it sometimes; so we have to go again and put the disk in to re-install LELA and "synchronize" it; though in reality, it is as if we are installing LELA for the first time, everytime we want to make changes to our network, by the way, a real pain!! After reading the advice above, I also installed Sisco's (the Linksys parent company) Network Magic software and now all my computers in my network work seamessly, and perfectly well. I can even share my printers now!! Thanks for this advice; very helpful indeed.
    a happy network administrator

Maybe you are looking for

  • How to get the HttpServletRequest object in a jsp

    Hi, I am a little confused here. Am trying to use the HttpServletRequest object in my jsp. I have set up just a simple test page jsp. How can i use the HttpServletRequest object to get some information about the request for example using the method g

  • Flash player 9 problem?

    I reciently downloaded the PPC version of Flash player 9 from: http://www.adobe.com/shockwave/download/index.cgi?P1ProdVersion=ShockwaveFlash However, whenever I navigate to a page with Flash content, I see a faded QuickTime logo with a '?' over it.

  • Netsh diag gone???

    Hi guys i just want to test port status i use netsh diag connect iphost xxx xxx in windows XP, but i can't use this command in Vista. how do i test port status in Vista ???

  • HT201299 Can I use ipad2 3G AT&T outside the US?

    I will buy ipad2 64gb 3G from States and take it to Turkey and use Turkish cellular data service company...Is it OK to buy AT&T or Verizone and use it with a Turkish service provider, let's say Turkcell in Turkey? In other words, are ipad2s LOCKED li

  • Signal c00 received by operating system

    Hi Experts, In the sytem error log, SM21 we got an error "Signal c00 received by operating system" with the following documentation. "Due to special circumstances (for example, memory overwritten), the current process has received a signal from the o