Object Reference Not Set error using CrystalReportViewer

I have a web application in which I am attempting to use the CrystalReportViewer.  Using Visual Studio 2008, I was able to get the viewer to run and display reports just fine.  But since I moved to Visual Studio 2010, I've been unable to get it working again.  I reinstalled Crystal Reports for Visual Studio 2010 and the x64 runtime.  I created a test aspx page with just the following content:
using CrystalDecisions.Web;
public partial class Test : System.Web.UI.Page
    protected void Page_Load(object sender, EventArgs e)
         CrystalReportViewer Viewer = new CrystalReportViewer();
        Viewer.ID = "viewer";
        ph.Controls.Add( Viewer );
When I load the page, I get this exception:
NullReferenceException: Object reference not set to an instance of an object.
   CrystalDecisions.Web.ViewerGlobal.get_IsNetscape6Up() +88
   CrystalDecisions.Web.CrystalReportViewer.Render(HtmlTextWriter output) +83
This is a server-side exception, so I'm pretty sure that my browser has nothing to do with it, but I've tried this in both Chrome and IE8.
Do I have a screwy install?  Or is there something I'm neglecting to do to configure the ReportViewer that's new in 2010?
Thanks for your help,
-Steve

I figured it out.
I had already tried adding a new aspx page as David suggested before, and that did not work.  So this time I made a whole new "ASP.NET Crystal Reports Web Site" project in my solution, which was nice enough to make a default aspx page with a built in crystal report viewer tied to a new report .rpt file in the project.  And believe it or not, it worked flawlessly.
The use of CrystalReportViewer was different but relatively equivalent in both cases.  So then I started analyzing the differences between this new project's web.config and mine.  After some painstaking troubleshooting, I determined the problem: someone on my team had added some new content to the web.config, which included these lines:
<system.webServer>
  <modules>
    <remove name="Detector" />
    <add name="Detector" type="FiftyOne.Foundation.Mobile.Detection.DetectorModule, FiftyOne.Foundation"/>
  </modules>
</system.webServer>
I'm assuming that Crystal also uses a module called "Detector" in get_IsNetscape6Up(), and that this code was overriding that module.
It's still not working quite right, but at least I'm past this error and on to the next one.
I appreciate the help, Don and David!
Thanks,
-Steve

Similar Messages

  • Object reference not set error in SAP.Portal.Framework.Core.PortalWorkerReq

    Hi,
      I am using .Net PDK 1.0. I am often getting the error
    [NullReferenceException: Object reference not set to an instance of an object.]
       SAP.Portal.Framework.Core.PortalWorkerRequest.ReadEntityBody(Byte[] buffer, Int32 size) +119
       System.Web.HttpRequest.GetEntireRawContent() +327
       System.Web.HttpRequest.GetMultipartContent() +57
       System.Web.HttpRequest.FillInFormCollection() +244
       System.Web.HttpRequest.get_Form() +50
       System.Web.UI.Page.GetCollectionBasedOnMethod() +70
       System.Web.UI.Page.DeterminePostBackMode() +128
       System.Web.UI.Page.ProcessRequestMain() +63
    It is very errartic, sometimes the page gets loaded and at times I get this error. Could someone please tell me what causes this error?
    Thanks
    Swetha

    Hi,
       This error occurred in the page where I used the file upload control. The control was working fine before. We tried installing entire PDK again and then applying the hotfix-1, but nothing worked and then I had to use an URL iview to invoke an ASP .Net application just for uploading the files.
    Thanks
    Swetha

  • Object reference not set to an instance of an object error when generating a schema using flat file schema wizard.

    I have a csv file that I need to generate a schema for. I am trying to generate a schema using flat file schema wizard but I keep getting "Object reference not set to an instance of an object." error when I am clicking on the Next button after
    specifying properties of the child elements on the wizard. At the end I get schema file generated but it contains an empty root record with no child elements.
    I thought may be this is because I didn't have my project checked out from the Visual SourceSafe db first but I tried again with the project checked out and got the same error.
    I also tried creating a brand new project and generating a schema for it but got the same error.
    I am not sure what is causing Null Reference exception to be thrown and there is nothing in the Windows event log that would tell me more about the problem.
    I am using Visual Studio 2008 for my BizTalk development.
    I would appreciate if some has any insides on this issue.

    Hi,
    To test your environment, create a new BizTalk project outside of source control.
    Create a simple csv file on the file system.
    Name,City,State
    Bob,New York,NY
    Use the Flat file schema Wizard to create the flat file schema from your simple csv instance.
    Validate the schema.
    Test the schema using your csv instance.
    This will help you determine if everything is ok with you environment.
    Thanks,
    William

  • "object reference not set to an instance of an object" error while running ssrs report locally

    Hi Folks,
    I am a bit new to SSRS.
    I am using ssrs 2012 and trying to use a method from a dll file. I am loaded the assembly file in reference of the report.
    Now I am trying to use a static method from the Dll. e.g. applicationName.classname.MethodName()
    But while running the report I am getting "object reference not set to an instance of an object" error.
    For a note I am trying execute the report locally.
    Any help would be highly appreciable.
    sarat chandra sahoo

    Sorry for late reply Sinaloe..
    I have added a dll file in my report reference. And in a textbox trying to execute this below.
    =Recall.Common.LocalizationEx.Localization.GetString(Parameters!Culture.Value, "RFID", "BICustomerPortal")
    where Getstring() is a static method in the dll.
    I guess some configuration setting I am missing here.
    1. I have copied these dlls in "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies" and "C:\Windows\Assembly".
    sarat chandra sahoo

  • 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 while accessing document libraries after in place upgrade to SP 2010

    I performed an inplace upgrade on my sharepoint 2007 installation and post the upgrade while trying to browse the document libraries on the site i get the following Error. HAs anyone encountered a similair error?? What could be the cause and resolution
    for this
    Any pointers/solution appreciated.
    Description: An
    unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
    Exception
    Details: System.NullReferenceException: Object reference not set to an instance of an object.
    Source
    Error: 
    An unhandled exception was generated during the execution of the
    current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Stack
    Trace: 
    [NullReferenceException: Object reference not set to an instance of an object.]
    Microsoft.SharePoint.WebPartPages.ListViewWebPart.PrepareContentTypeFilter(SPList list, Hashtable[] excludedTransformers) +682
    Microsoft.SharePoint.WebPartPages.ListViewWebPart.GenerateDocConvScriptBlock(SPWeb web, SPList list) +482
    Microsoft.SharePoint.WebPartPages.XsltListViewWebPart.OnPreRender(EventArgs e) +571
    Microsoft.SharePoint.WebPartPages.WebPartMobileAdapter.OnPreRender(EventArgs e) +78
    System.Web.UI.Control.PreRenderRecursiveInternal() +11032094
    System.Web.UI.Control.PreRenderRecursiveInternal() +223
    System.Web.UI.Control.PreRenderRecursiveInternal() +223
    System.Web.UI.Control.PreRenderRecursiveInternal() +223
    System.Web.UI.Control.PreRenderRecursiveInternal() +223
    System.Web.UI.Control.PreRenderRecursiveInternal() +223
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3393
    Version
    Information: Microsoft .NET Framework Version:2.0.50727.4952; ASP.NET Version:2.0.50727.4955
    My SharePoint Blog
    http://dhireny.blogspot.com

    How to be in my case??
    [NullReferenceException: Object reference not set to an instance of an object.]
    Microsoft.SharePoint.WebPartPages.ListViewWebPart.PrepareContentTypeFilter(SPList list, Hashtable[] excludedTransformers) +694
    Microsoft.SharePoint.WebPartPages.ListViewWebPart.GenerateDocConvScriptBlock(SPWeb web, SPList list) +482
    Microsoft.SharePoint.WebPartPages.XsltListViewWebPart.OnPreRender(EventArgs e) +571
    Microsoft.SharePoint.WebPartPages.WebPartMobileAdapter.OnPreRender(EventArgs e) +78
    System.Web.UI.Control.PreRenderRecursiveInternal() +11141054
    System.Web.UI.Control.PreRenderRecursiveInternal() +223
    System.Web.UI.Control.PreRenderRecursiveInternal() +223
    System.Web.UI.Control.PreRenderRecursiveInternal() +223
    System.Web.UI.Control.PreRenderRecursiveInternal() +223
    System.Web.UI.Control.PreRenderRecursiveInternal() +223
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3393

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

  • Unable to view settings tab in one GPO. "An error occurred while generating report: Object reference not set to an instance of an object."

    I am the owner of this GPO and I can view the settings tab in any other GPO. But, I get the following message when I try to view the settings tab in one particular GPO:
    An error occurred while generating report:
    Object reference not set to an instance of an object.
    Other posts I look at reference the same error, but with different circumstances, and thus, they specify that the hotfix is for to fix the error under
    those circumstances.
    I'm accessing GPMC on a Win 7 SP1 machine. DC is Server 2012 Standard.

    > Since I have to go through Edit to see the settings, and peruse the
    > entire massive folder of settings to try to identify the bad one, it has
    > been slow-going and I haven't found it yet.
    You can filter ADM templates to show configured ones only, and you can
    use the "show all settings" node. This will speed the work up - a little
    bit at least :)
    Martin
    Mal ein
    GUTES Buch über GPOs lesen?
    NO THEY ARE NOT EVIL, if you know what you are doing:
    Good or bad GPOs?
    And if IT bothers me - coke bottle design refreshment :))

  • BizTalk 2010 Error consuming WCF service metadata. Object reference not set to an instance of an object.

    "Error consuming WCF service metadata.
    Object reference not set to an instance of an object."
    I have no clue what happen to my BizTalk.  I checked all the below forum but m clueless why BTS not consuming WCF through Generated Items. I tried both metadata exhange endpoint and metadata file through
    svcutil. but all my wcf services are working fine with .net C# client.
    http://blogs.msdn.com/b/appfabriccat/archive/2010/11/23/how-using-duplex-mep-to-communicate-with-biztalk-from-a-net-application-or-a-wf-workflow-running-inside-appfabric-part-1.aspx
    http://msdn.microsoft.com/en-us/library/bb226552.aspx
    http://msdn.microsoft.com/en-us/library/bb798122.aspx
    http://masteringbiztalkserver.wordpress.com/tag/wcf-service-consuming-wizard/
    I reinstall the WCF lob Adapter SDK to my BizTalk VM but still no clue. no erros in event viewer nothing.
    http://www.abdulazizfarooqi.wordpress.com Abdul Aziz Farooqi [BizTalk & SharePoint Consultant] MCPD Web & MCPD SharePoint 2010

    Thanks from me too Neal - this worked from me. I wan't able to consume directly from exchange because the certificate is broken. However, I was able to convince Google Chrome to let me view the /Services.wsdl and from there I could save the .wsdl and two
    .xsd files. In my case the problem lay at the top of the .wsdl file. I changed the following:
    <wsdl:types>
            <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
                <xs:import namespace="http://schemas.microsoft.com/exchange/services/2006/messages" schemaLocation="messages.xsd"/>
            </xs:schema>
    by giving the same targetNamespace as assigned in the <wsdl:definitions element, so I ended up with
    <wsdl:types>
            <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://schemas.microsoft.com/exchange/services/2006/messages">
                <xs:import namespace="http://schemas.microsoft.com/exchange/services/2006/messages" schemaLocation="messages.xsd"/>
            </xs:schema>

  • Error ASPRUNTIME: Object reference not set to an instance of an object.in Visual Studio in method CopyPrecompiledFile.

    Hello, I have this issue and Ihave wasted atleast 2 days with this one. I have tried all possible solutions -
    1. Turn Off Real time McAffee scanning  -- I do not have real time scanning ON
    2. Delete Bin folder and start all over by adding references -- Did not work
    3. delete .compiles or refresh filesdelete temp files from asp.net temp files folder -- no .Compiled file. Deleted refresh files but no use
    4. change temp file for appliation in compilation tag of web config -- No use
    My application framework is .NET 4.5 and VSD 2012. I have tried to compile from C:\WINDOWS\Mi
    crosoft.NET\Framework folder as well as C:\WINDOWS\Mi
    crosoft.NET\Framework64 folder. Both gave same error.
    I need urgent assistance plz.
    Here is stack trace :
    C:\Development\Convergence\Applications\CAP\WixSetup\WixSetupView>"C:\WINDOWS\Mi
    crosoft.NET\Framework\v4.0.30319\aspnet_compiler.exe" -u -fixedNames -p "C:\Deve
    lopment\Convergence\Applications\CAP\TouchPointTier\Presentations" -v / "C:\Deve
    lopment\Convergence\Applications\CAP\PrecompiledWeb\ConvergenceCAP" -errorstack
    Microsoft (R) ASP.NET Compilation Tool version 4.0.30319.17929
    Utility to precompile an ASP.NET application
    Copyright (C) Microsoft Corporation. All rights reserved.
    error ASPRUNTIME: Object reference not set to an instance of an object.
    [NullReferenceException]: Object reference not set to an instance of an object.
       at System.Web.Compilation.BuildManager.CopyPrecompiledFile(VirtualFile vfile,
     String destPhysicalPath)
       at System.Web.Compilation.BuildManager.CopyStaticFilesRecursive(VirtualDirect
    ory sourceVdir, String destPhysicalDir, Boolean topLevel)
       at System.Web.Compilation.BuildManager.CopyStaticFilesRecursive(VirtualDirect
    ory sourceVdir, String destPhysicalDir, Boolean topLevel)
       at System.Web.Compilation.BuildManager.CopyStaticFilesRecursive(VirtualDirect
    ory sourceVdir, String destPhysicalDir, Boolean topLevel)
       at System.Web.Compilation.BuildManager.CopyStaticFilesRecursive(VirtualDirect
    ory sourceVdir, String destPhysicalDir, Boolean topLevel)
       at System.Web.Compilation.BuildManager.PrecompileAppInternal(VirtualPath star
    tingVirtualDir, IEnumerable`1 excludedVirtualPaths)
       at System.Web.Compilation.BuildManager.PrecompileApp(VirtualPath startingVirt
    ualDir, IEnumerable`1 excludedVirtualPaths)
       at System.Web.Compilation.BuildManager.PrecompileApp(ClientBuildManagerCallba
    ck callback, IEnumerable`1 excludedVirtualPaths)
       at System.Web.Compilation.BuildManagerHost.PrecompileApp(ClientBuildManagerCa
    llback callback, List`1 excludedVirtualPaths)
       at System.Web.Compilation.BuildManagerHost.PrecompileApp(ClientBuildManagerCa
    llback callback, List`1 excludedVirtualPaths)
       at System.Web.Compilation.ClientBuildManager.PrecompileApplication(ClientBuil
    dManagerCallback callback, Boolean forceCleanBuild)
       at System.Web.Compilation.ClientBuildManager.PrecompileApplication(ClientBuil
    dManagerCallback callback)
       at System.Web.Compilation.Precompiler.Main(String[] args)
    C:\Development\Convergence\Applications\CAP\WixSetup\WixSetupView>pause
    Press any key to continue . . .

    I know these warning are not related to my issue that is the reason i am not able to understand what is wrong with it. Its a huge application and compiliing takes atleast 6-7 hrs and after that I get error in "copyPrecompiledFiles" method.
    I have circular reference issue in application but when I build application in specific sequece, it goes away so after builing application with 0 errors, i execute command to precompile
    rmdir C:\Precompiled /s /q
    mkdir C:\Precompiled
    "C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\aspnet_compiler.exe" -u -fixedNames -p "C:\ApplicationPath" -v / "C:\Precompiled" -errorstack
    pause

  • Error: Server was unable to process request. --- Object reference not set

    Hi All,
    I am using ALSB 2.6.
    In the project, i have requirement to do transformation of incoming request with CData Tag and getting a response from the remote service.
    I have configured the Proxy Service and Business Service with a message route in which transformation is happening using replace action and adding a XSLT there.
    While sending the request from ALSB Test Console , its doing the transformation correctly as follows:
    Transformed Request at ALSB
    <soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <lif:MultipleTermLifeQuotePublic xmlns:lif="https://www.farmerslife.com/LifeNetWS/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <lif:xmlInput>
    <TERM_LIFE_RATE_QUOTE>
    <Quote_Request Quote_Sequence = "100">
    <Face_Amount>
    1000.00
    </Face_Amount>
    <Gender>
    male
    </Gender>
    <Age>
    100
    </Age>
    <Level_Term_Years>
    100
    </Level_Term_Years>
    <Type>
    string
    </Type>
    <Nicotine>
    true
    </Nicotine>
    <CIR_Amount>
    1000.00
    </CIR_Amount>
    <State>
    string
    </State>
    <Waiver_Premium>
    false
    </Waiver_Premium>
    </Quote_Request>
    </TERM_LIFE_RATE_QUOTE>
    </lif:xmlInput>
    </lif:MultipleTermLifeQuotePublic>
    </soapenv:Body>
    After transformation, when its passing through Business Service its giving the followin error at ALSB console
    <soap:Body xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Fault>
    <faultcode>soap:Server</faultcode>
    <faultstring>
    Server was unable to process request. ---> Object reference not set to an instance of an object. </faultstring>
    <detail/>
    </soap:Fault>
    </soap:Body>
    [b]When i am sending the same request through SOAP UI, I am getting a correct response.
    Can any one guide me what to do regarding this, where i am going wrong.
    Please try to reply as soon as possible. Its an urgent issue.

    That error you're getting is a typical error message from Windows web services. It simply means there was something unspecified that was wrong with your message. You'll need to find a way to extract the actual message being sent in both the "good" and "bad" cases and look at the differences. You can do that in ALSB with a "Log" action.

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

  • An error occured while opening the connection: Object reference not set to

    After I uninstalled Oracle Developer Tools for Visual Studio .NET 10.1.0.4 and installed Oracle Developer Tools for Visual Studio .NET with Oracle10g Release 2 ODAC 10.2.0.2.21 I got the error message below when I want to connect to my 10g database using Oracle Explorer.
    Error:
    An error occured while opening the connection: Object reference not set to an instance of an object
    I use OracleConnection to open also cannot be done. But I use Oracle SQL Developer I can connect to orcl that I cannot connect using ODAC 10.2.0.2.21 in my laptop.
    Please help me.
    Ming Man

    Sorry my mistake, I double checked, the one I uninstalled is ODAC 10.2.0.2.20 and not ODAC 10.1.0.4.
    But I have that error.
    Ming Man

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

Maybe you are looking for

  • Having trouble with AE crashing on project save

    In the past few days, I have had problems with AE locking up while trying to save a project. The problem seems to be random, as I can save several times in a row, then at some point I will try to save, get the spinning beachball, then wait a few minu

  • Best practice for adding application to $env:Path in PowerShell?

    I'm trying to figure out the best way to add a program to PS's path. When I look at $env:Path, I see tons of different entries pointing to various programs on the system that seem to have been added by their installers. This would suggest that I coul

  • Emergency Contacts in Oracle HRMS

    Hi, We are in process of extracting data from Oracle HRMS and send it to ADP. We have to pull Emergency contacts details for a person. I can see the table per_contact_relationships, which stores the person_id, contact_person_id, contact_type. But whe

  • Is it possible to introduce a 60s delay in the encoding process?

    I have what seems to be a fairly unique situation to deal with.  I am successfully streaming "LIVE" using FLME to an FMS server.  Currently the buffer on the FMS is set to 30s which means that our viewers have a native 30s delay on the live action. 

  • Other DB than MS SQL Server?

    Hi guys, is there any implementation experience available about installing SAP Biz-1 on a free RDBMS like mySQL or Firebird? Is this possible at all, pitfalls, workarounds? Any feedback is warmly appreciated! THX, Harald