Up until 2 days ago my code was working perfectly. Now, its throwing a temp file issue. I'm not sure if it was a windows update - I dont think so because I have pretty much this exact same code running on another page in my website and its still working correctly. I tried using a system.drawing.bitmap and it works fine but it didn't give me the "sharpen" look I'm after. Once I switch it back to a GraphicsMill Bitmap it throws the temp error found below.
I first thought it was some sort of permission error in my temp folder so I gave Network Service full control but nodda.
Any ideas?
My Code:
Dim objBitmap As New Aurigma.GraphicsMill.Bitmap(myBitmapCropped)
objBitmap.Transforms.Sharpen(60)
objBitmap.VerticalResolution = 300
objBitmap.HorizontalResolution = 300
objBitmap.Save(strPathWithImageName)
objBitmap.Dispose()
Here is my error:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Unable to create temporary file 'C:\DOCUME~1\CLIENT\ASPNET\LOCALS~1\Temp'.
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.IO.IOException: Unable to create temporary file 'C:\DOCUME~1\CLIENT\ASPNET\LOCALS~1\Temp'.
Source Error:
Line 173: objBitmap.Save(strPathWithImageName, New Aurigma.GraphicsMill.Codecs.JpegEncoderOptions(72, True))
Source File: C:\--------------------\upload.aspx Line: 173
Stack Trace:
[IOException: Unable to create temporary file 'C:\DOCUME~1\CLIENT\ASPNET\LOCALS~1\Temp'.]
Aurigma.GraphicsMill.Codecs.FormatWriter._Open(String fileName) +402
Aurigma.GraphicsMill.Codecs.FormatWriter.Open(String fileName) +39
Aurigma.GraphicsMill.Bitmap.Save(String fileName, IEncoderOptions options) +163
ASP.gallery_aspx.createSquareThumb(HttpPostedFile thumbnail1File, Int32 newSize, String strPathWithImageName) in C:\--------------------------------\upload.aspx:173
ASP.gallery_aspx.Page_Load(Object sender, EventArgs e) in C:\--------------------\upload.aspx:69
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433