Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Rune Grønkjær 1372 posts 3103 karma points
    Jun 01, 2012 @ 10:09
    Rune Grønkjær
    0

    Object reference not set to an instance of an object

    Hi Matt,

    Nice package. Works on my one 1.7.1.1 site. But on another 1.7.1.1 site I get this error:

    Server Error in '/' Application.

    Object reference not set to an instance of an object.

    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.]
       TheOutfield.UmbExt.ExportMedia.Handlers.ExportMedia.ParseMedia(HttpContext context, Media media, ZipFile zip, String path) +424
       TheOutfield.UmbExt.ExportMedia.Handlers.ExportMedia.ParseMedia(HttpContext context, Media media, ZipFile zip, String path) +379
       TheOutfield.UmbExt.ExportMedia.Handlers.ExportMedia.ParseMedia(HttpContext context, Media media, ZipFile zip, String path) +379
       TheOutfield.UmbExt.ExportMedia.Handlers.ExportMedia.ProcessRequest(HttpContext context) +371
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
    



    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

    The one with the error is an older website that have been upgraded several times, but otherwise functions perfectly.

    The package looks quite simple but could something have installed wrongly? Maybe I need a setting somewhere?

    Thanks

    /Rune

  • Rune Grønkjær 1372 posts 3103 karma points
    Jun 01, 2012 @ 10:14
    Rune Grønkjær
    0

    Oh, after testing a bit more I can see the problem only exist with some folders.

    ...

    And after looking some more it looks like the folders contain custom media nodes which have no umbracoFile property. That must be it then.

    Of cause those are the ones I wanted to download. Bad luck for me.

    /Rune

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Jun 01, 2012 @ 10:18
    Matt Brailsford
    0

    Hey Rune,

    Nice work on figuring it out. Yea, it's not very advanced. It was really just thrown together to offer a quick way to export umbraco default media items (I rarely create my own), but as you'll have noticed, it's not very complex, so could always be extended.

    If you do extend it, and it could be handy for others, do let me know, as would be cool to include it.

    Cheers, and best of luck.

    Matt

Please Sign in or register to post replies

Write your reply to:

Draft