Object reference not set to an instance of an object - Microsoft.SharePoint.Portal.dll

4 posts, 0 answers
  1. Ken
    Ken avatar
    2 posts
    Member since:
    Jun 2011

    Posted 07 Jul 2011 Link to this post

    I just downloaded v2011.1.701.2 of JustDecompile and getting the following error when decompiling SPSRedirectPage OnInit method:

    Current member / type: System.Void Microsoft.SharePoint.Portal.WebControls.SPSRedirectPage::OnInit(System.EventArgs)
    File path: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI\microsoft.sharepoint.portal.dll
    Object reference not set to an instance of an object.
       at ..(ExceptionHandlerData data, ExceptionHandler handler)
       at ..(Dictionary`2 datas, ExceptionHandler handler)
       at ..()
       at ..‡()
       at Telerik.JustDecompiler.Decompiler.DecompilationPipeline.Run(MethodBody body, ILanguage language)
       at Telerik.JustDecompiler.Decompiler.Extensions.(DecompilationPipeline pipeline, ILanguage language, MethodBody body)
       at Telerik.JustDecompiler.Languages.BaseImperativeLanguageWriter.Write(MethodDefinition method)
       at Telerik.JustDecompiler.Languages.BaseLanguageWriter.Write(IMemberDefinition member, Boolean showCompilerGeneratedMembers)
       at JustDecompile.CodeViewer.CodeWriter.Write() in c:\B\Behemoth\JustDecompile Production Build\Sources\UI\JustDecompile.CodeViewer\Writers\CodeWriter.cs:line 32
       at JustDecompile.CodeViewer.ViewModels.CodeViewerViewModel.(AssemblyMemberNode member, CancellationToken cancellationToken) in c:\B\Behemoth\JustDecompile Production Build\Sources\UI\JustDecompile.CodeViewer\ViewModels\CodeViewerViewModel.cs:line 116


    The Microsoft.SharePoint.Portal.dll is from the base install of SharePoint 2010.

    Thanks.



  2. Nikolay G Rusev
    Admin
    Nikolay G Rusev avatar
    44 posts

    Posted 12 Jul 2011 Link to this post

    Hi Ken,

     Thanks for your feedback. Unfortunately I couldn't reproduce the exception.
    I am able to successfully open 
    Microsoft.SharePoint.Portal, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c
    and the mentioned OnInit method. Is the version of your assembly the same? If it's not, could you send the dll to NikolayG.Rusev at telerik.com?

    Best wishes,
    Nikolay G. Rusev
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

  3. DevCraft banner
  4. Ken
    Ken avatar
    2 posts
    Member since:
    Jun 2011

    Posted 12 Jul 2011 Link to this post

    Nikolay,

    The version I am using is 14.0.4759.1000.  Since you guys sell SharePoint solutions, I would imagine you can find the dll on one of your SharePoint 2010 servers.  It is typically found in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI folder.

    Thanks
  5. Nikolay G Rusev
    Admin
    Nikolay G Rusev avatar
    44 posts

    Posted 20 Jul 2011 Link to this post

    Hi Ken,

     I managed to find your version of the dll. It seems that the exception occurs when decompiling the try/catch statement. We've logged the problem, so it will be fixed in one of the forthcoming releases.
    Thanks again for the feedback and don't hesitate to inform us about any other problem you encounter.

    All the best,
    Nikolay G. Rusev
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Back to Top