Page 1 of 1

Need a quick bit of help

Posted: Wed Jul 02, 2008 12:42 pm
by Robbie@FireFold
I searched on this, but wasn't able to pull up much. I was working/learning up able more and more. I made some very common/simple changes, but have never touched the main file structure.

Everything was fine - then I click on the admin button and receive this error. I cannot get back into admin.

See below - let me know of any thoughts/causes/fixes.



Server Error in '/' Application.
--------------------------------------------------------------------------------

Access to the path '014b8af2-a0c8-4da1-a046-9fb9b6826897.Png' is denied.
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 to the path '014b8af2-a0c8-4da1-a046-9fb9b6826897.Png' is denied.

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:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

<%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
<system.web>
<compilation debug="true"/>
</system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.

Stack Trace:


[UnauthorizedAccessException: Access to the path '014b8af2-a0c8-4da1-a046-9fb9b6826897.Png' is denied.]
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +651
System.IO.FileInfo.Delete() +2746455
WebChart.ChartControl.PerformCleanUp() +395
WebChart.ChartControl.RedrawChart() +142
Admin_Dashboard_PopularProducts.initViewsChart(Boolean forceRefresh) +713
Admin_Dashboard_PopularProducts.Page_PreRender(Object sender, EventArgs e) +73
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +33
System.Web.UI.Control.OnPreRender(EventArgs e) +2117788
System.Web.UI.Control.PreRenderRecursiveInternal() +86
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.WebControls.WebParts.WebPart.PreRenderRecursiveInternal() +62
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2041




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

Re: Need a quick bit of help

Posted: Wed Jul 02, 2008 12:50 pm
by Robbie@FireFold
I was able to fix this by recycling the application pool.

Obviously this should not happen. Has anyone had this experience before?

Re: Need a quick bit of help

Posted: Wed Jul 02, 2008 12:52 pm
by Shopping Cart Admin
Hello,

This error is because of permissions trying to load the graphs on the main admin page.

/admin/webcharts needs permissions to read/write to the directory. Make sure you make the assignment to the directory rather than the images. It's been a long long time since I've seen this issue, sorry I cannot remember the specific reason for it.