Posted on: 5/2/2011 1:37:48 AM | Views : 239

I am trying to create an imae and receive the error below. It used to work just fine on IIS 6.0 ASP.net 2.0
 
Line 44:         'objGraphics = System.Drawing.Graphics.FromImage(objBMP)
Line 45:         'Dim imageObject As System.Drawing.Image = System.Drawing.Image.FromFile(Server.MapPath("..\images\backgrounds\back" & New Random().Next(10) & ".jpg"))
Line 46:         Dim imageObject As System.Drawing.Image = System.Drawing.Image.FromFile(Server.MapPath("..\images\backgrounds\back" & New Random().Next(10) & ".jpg"))
Line 47:
Line 48:         objBMP = New Bitmap(imageObject)
...

Go to the complete details ...