Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
John Thelen  
#1 Posted : Wednesday, November 21, 2007 4:33:20 AM(UTC)
John Thelen

Rank: Member

Groups: Member
Joined: 11/15/2005(UTC)
Posts: 8

Hi,

Was adding the Photo Editor application to my web site and started receiving the following message. Unfortunately, I don't know where the AjaxControls cache directory is. Can you shed some light on this error?

First, a bit of history. We installed the PhotoEditor 2.0 on our Win2003 server. When accessing the "PhotoEditorSolution" directory through Visual Studio 2005, we are able to compile and test the application. However, when I make this directory a virtual directory off of our IIS 6.0 server, I get the following error.

Again, any assistance would be greatly appreciated!

Thanks!

John Thelen

Code:

Server Error in '/DSPhotoEditor' Application.
Access denied when writing files to AjaxControls cache directory.  Make sure that the account ASP.NET is running under has "modify" permission for this folder.
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.UnauthorizedAccessException: Access denied when writing files to AjaxControls cache directory.  Make sure that the account ASP.NET is running under has "modify" permission for this folder.

ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.

Source Error:

Line 314:			else
Line 315:			{
Line 316:				base.Render(writer);
Line 317:			}
Line 318:			


Source File: d:\Program Files\Aurigma\PhotoEditor 2.0\PhotoEditorSolution\App_Code\PhotoEditor\ImagePanel.cs    Line: 316

Stack Trace:

[UnauthorizedAccessException: Access denied when writing files to AjaxControls cache directory.  Make sure that the account ASP.NET is running under has "modify" permission for this folder.]
   Aurigma.GraphicsMill.AjaxControls.FileCache.LockIndexFile(String path) +263
   Aurigma.GraphicsMill.AjaxControls.FileCache.RegisterPublicTempFileName(String fileName, Boolean isDirectory) +47
   Aurigma.GraphicsMill.AjaxControls.FileCache.GetPublicTempFileName(String extension, Boolean isDirectory) +68
   Aurigma.GraphicsMill.AjaxControls.BitmapViewer.SavePreviewImage() +79
   Aurigma.GraphicsMill.AjaxControls.BitmapViewer.InitScriptDescriptor(ScriptControlDescriptor descriptor) +82
   Aurigma.GraphicsMill.AjaxControls.BaseScriptControl.GetScriptDescriptors() +49
   Aurigma.GraphicsMill.AjaxControls.BaseScriptControl.System.Web.UI.IScriptControl.GetScriptDescriptors() +7
   System.Web.UI.ScriptControlManager.RegisterScriptDescriptors(IScriptControl scriptControl) +126
   System.Web.UI.ScriptManager.RegisterScriptDescriptors(IScriptControl scriptControl) +53
   Aurigma.GraphicsMill.AjaxControls.BaseViewer.Render(HtmlTextWriter writer) +1296
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +130
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24
   System.Web.UI.Control.Render(HtmlTextWriter writer) +7
   Aurigma.PhotoEditor.ImagePanel.Render(HtmlTextWriter writer) in d:\Program Files\Aurigma\PhotoEditor 2.0\PhotoEditorSolution\App_Code\PhotoEditor\ImagePanel.cs:316
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
   ASP.photoeditor_photoeditorsample_ascx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\dsphotoeditor\d674004c\826db766\App_Web_czzmzeu8.0.cs:0
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +2068267
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24
   System.Web.UI.Control.Render(HtmlTextWriter writer) +7
   PhotoEditorSample.Render(HtmlTextWriter writer) in d:\Program Files\Aurigma\PhotoEditor 2.0\PhotoEditorSolution\PhotoEditor\PhotoEditorSample.ascx.cs:80
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +130
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +59
   System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +68
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +37
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +130
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24
   System.Web.UI.Page.Render(HtmlTextWriter writer) +26
   PhotoEditorDefault.Render(HtmlTextWriter writer) in d:\Program Files\Aurigma\PhotoEditor 2.0\PhotoEditorSolution\Default.aspx.cs:34
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1896


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210 

Edited by user Monday, December 17, 2007 9:30:07 AM(UTC)  | Reason: Not specified

John Thelen
Sergey Peshekhonov  
#2 Posted : Wednesday, November 21, 2007 1:26:54 PM(UTC)
Sergey Peshekhonov

Rank: Advanced Member

Groups: Administration
Joined: 6/5/2007(UTC)
Posts: 57

Hello, John!

You should set the appropriate permissions for caches:

For the App_Data/PhotoEditor/Cache folder set the modify permissions for the account, under which IIS is run.
For the GraphicsMill/PrivateCache folder set the modify permissions for the account, under which IIS is run. Disable reading and script execution in the IIS settings for this folder.
For the GraphicsMill/PublicCache folder set the modify permissions for the account, under which IIS is run. Disable script execution in the IIS settings for this folder.

IIS usually runs under ASPNET or IUSR_{MACHINENAME} accounts.
Sincerely yours,
Sergey Peshekhonov.

Aurigma Technical Support Team.
John Thelen  
#3 Posted : Monday, November 26, 2007 12:16:53 AM(UTC)
John Thelen

Rank: Member

Groups: Member
Joined: 11/15/2005(UTC)
Posts: 8

Hi Sergey,

I've confirmed these settings and they are all as you have documented. However, the error message still occurred.

On a whim, I commented out the following statements from the web.config file:

Code:

    <add key="RelativePublicCachePath" value="/PhotoEditorSolution/GraphicsMill/PublicCache/" />
    <add key="RelativePrivateCachePath" value="/PhotoEditorSolution/GraphicsMill/PrivateCache/" />


After commenting these out, the program worked. I'm guessing however that something else will probably not work but I just have not run into it yet.

Can you tell me the purpose of these statements and if they are needed or not?

Thanks again!

Edited by user Monday, December 17, 2007 9:30:28 AM(UTC)  | Reason: Not specified

John Thelen
Sergey Peshekhonov  
#4 Posted : Monday, November 26, 2007 12:59:00 PM(UTC)
Sergey Peshekhonov

Rank: Advanced Member

Groups: Administration
Joined: 6/5/2007(UTC)
Posts: 57

Hello, John.

You can read about Image Cache Management (Ajax Controls) in the Graphics Mill for .NET documentation.

Additionally, I want say, that we have some problems with automatically created cache on Vista (and may be on some other platforms) so, I advice you use manual settings for Private and Public caches (add RelativePublicCachePath and RelativePrivateCachePath to your web.config).

Fell free to ask me any questions you will have.

Edited by user Wednesday, October 29, 2008 2:45:50 AM(UTC)  | Reason: Not specified

Sincerely yours,
Sergey Peshekhonov.

Aurigma Technical Support Team.
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.