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?
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.
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:
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
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
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
is working on a reply...