D
darrel
I'm modyfying an image upload and resizing script that we've had laying
around for a long while.
I'm getting a NullReferenceException error (see full error at bottom) from
this line:
Dim g As System.Drawing.Image =
System.Drawing.Image.FromFile(strTempFullFileName)
I'm not sure what I should be checking for based on that error. There is a
file located where 'strTempFullFileName' points to.
Any suggestions on what else to check for would be appreciated.
-Darrel
FULL ERROR:
[NullReferenceException: Object reference not set to an instance of an
object.]
imageUpload.ImageUpload.btnUpload_Click(Object sender, EventArgs e) in
C:\Inetpub\wwwroot\CourtsCMS\imageUpload\ImageUpload.aspx.vb:552
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1292
around for a long while.
I'm getting a NullReferenceException error (see full error at bottom) from
this line:
Dim g As System.Drawing.Image =
System.Drawing.Image.FromFile(strTempFullFileName)
I'm not sure what I should be checking for based on that error. There is a
file located where 'strTempFullFileName' points to.
Any suggestions on what else to check for would be appreciated.
-Darrel
FULL ERROR:
[NullReferenceException: Object reference not set to an instance of an
object.]
imageUpload.ImageUpload.btnUpload_Click(Object sender, EventArgs e) in
C:\Inetpub\wwwroot\CourtsCMS\imageUpload\ImageUpload.aspx.vb:552
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1292