[B]Server Error in '/' Application.[/B]
[B] [I]Access to the path ' banane man.p2t' is denied.[/I] [/B]
[FONT=Arial, Helvetica, Geneva, SunSans-Regular, sans-serif] [B] Description: [/B]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.
[B] Exception Details: [/B]System.UnauthorizedAccessException: Access to the path ' banane man.p2t' 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.
[B]Source Error:[/B]
Line 16: if (DateTime.Compare(System.DateTime.Now.Date, file.CreationTime.Date) != 0)
Line 17: {
[COLOR=red]Line 18: file.Delete();
[/COLOR]Line 19: }
Line 20: }
[B] Source File: [/B] c:\inetpub\vhosts\photo2text.com\httpdocs\default.aspx[B] Line: [/B] 18
[B]Stack Trace:[/B]
[UnauthorizedAccessException: Access to the path ' banane man.p2t' is denied.]
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +2014275
System.IO.FileInfo.Delete() +152
ASP.default_aspx.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\photo2text.com\httpdocs\default.aspx:18
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061
[/FONT] [FONT=Arial, Helvetica, Geneva, SunSans-Regular, sans-serif] [B]Version Information:[/B] Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42 [/FONT]