Null reference when uploading image to media section
Hello all,
I have the following exception when uploading or removing the content of images ( media items ). When creating/deleting the media item there is no exception.
I'm using umbraco 4.0.2.1 and MySQL as Database; the exception look related to the umbraco search i've got, is the UmbrSearch2_1.2.
Object reference not set to an instance of an object.
body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
pre {font-family:"Lucida Console";font-size: .9em}
.marker {font-weight: bold; color: black;text-decoration: none;}
.version {color: gray;}
.error {margin-bottom: 10px;}
.expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
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.
Forgot to mention that once the image is uploaded it is possible to visualize it on the umbraco side however when naviating on a webpage it does not show up.
It looks like UmbSearch2 is throwing errors, did you maybe create your own eventhandlers for the media aftersave event that might interfere with Umbsearch2?
Also, I don't know if Umbsearch2 can work with MySQL.
Null reference when uploading image to media section
Hello all,
I have the following exception when uploading or removing the content of images ( media items ). When creating/deleting the media item there is no exception.
I'm using umbraco 4.0.2.1 and MySQL as Database; the exception look related to the umbraco search i've got, is the UmbrSearch2_1.2.
Object reference not set to an instance of an object. body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px} H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } pre {font-family:"Lucida Console";font-size: .9em} .marker {font-weight: bold; color: black;text-decoration: none;} .version {color: gray;} .error {margin-bottom: 10px;} .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
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:2.0.50727.3053; ASP.NET Version:2.0.50727.3601
Any ideas?
Thanks in advance,
Ricardo
Forgot to mention that once the image is uploaded it is possible to visualize it on the umbraco side however when naviating on a webpage it does not show up.
Thanks once again,
Ricardo
It looks like UmbSearch2 is throwing errors, did you maybe create your own eventhandlers for the media aftersave event that might interfere with Umbsearch2?
Also, I don't know if Umbsearch2 can work with MySQL.
Hi Sebastiaan,
thanks for the quick answer.
I haven't changed any eventhandlers. I'm just using umbraco without changing its core.
In respect to the compatibility of Umbsearch2 with MySQL, it should not be a problem since there is a database datalayer, no?
How can I dig to find this error or what should I do?
Thanks once again,
Ricardo
You might've found a bug in UmbSearch2 then, have a look at the sourcecode for the handler:
http://umbsearch2.codeplex.com/SourceControl/changeset/view/37794#528705
Could be that the sender is null and that's why it's not working. But you'd have to debug to find out..
Also, make sure that you're using the most up-to-date version of UmbSearch2, the previous version could in rare cases delete your /umbraco directory.
I removed the umbsearch2_1.2 and it works normally;
Adding the newer version of the search, umbsearch2_1.3 it gives the same error.
Just to complete the information, I have another installation of umbraco running with VistaDB and it works normally with the umbsearch2_1.3;
Has there a solution for this.. I am getting the same problem when saving media.
hey there,
I'm not aware of any news...
is working on a reply...