Meet us at PRINT 19. Chicago, IL. Oct. 3 - 5.
Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
climaxmedia  
#1 Posted : Tuesday, December 2, 2008 11:50:46 AM(UTC)
climaxmedia

Rank: Member

Groups: Member
Joined: 6/29/2007(UTC)
Posts: 9

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
Dmitry  
#2 Posted : Tuesday, December 2, 2008 3:22:18 PM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

Thanks: 1 times
Was thanked: 12 time(s) in 12 post(s)
Hello,

Interesting problem...

Could you give full privileges to Everyone user on C:\DOCUME~1\CLIENT\ASPNET\LOCALS~1\Temp just for testing (do not forget to remove these permissions after that) and clear this folder?

Sincerely yours,

Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!

climaxmedia  
#3 Posted : Friday, December 5, 2008 5:21:33 AM(UTC)
climaxmedia

Rank: Member

Groups: Member
Joined: 6/29/2007(UTC)
Posts: 9

Hello Dmitry,

Thanks for the response.

I tested by adding 'everyone' with modify permissions to the folder and it worked correctly. Once I removed "everyone' from the permissions it no longer worked ... 'Network Service' with modify permissions does not work.

Any ideas?

Cheers,

Chris

Dmitry  
#4 Posted : Sunday, December 7, 2008 5:46:53 PM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

Thanks: 1 times
Was thanked: 12 time(s) in 12 post(s)
Hello Chris,

It seems your site is working under another user account. You need to specify read/write/modify permissions for the same user under which application pool of your site is working.

Sincerely yours,

Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!

Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.