We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Can''t open xlsx file

When I try to open a .xlsx file: workbook = excelEngine.Excel.Workbooks.Open(HttpContext.Current.Server.MapPath("/include/Template.xlsx"),ExcelOpenType.Automatic); It shows error message as below, what's the problem? Thanks!

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 , the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.





3 Replies

GM Geetha M Syncfusion Team September 22, 2008 10:37 AM UTC

Hi Liqin,

Could you please check if you have given required permission to access the corresponding folder?

Regards,
Geetha



AD Administrator Syncfusion Team September 23, 2008 03:39 AM UTC

That works! Thanks a lot

>Hi Liqin,

Could you please check if you have given required permission to access the corresponding folder?

Regards,
Geetha





SR Sridhar Syncfusion Team August 30, 2012 06:06 AM UTC

Hi Liqin,
 
Thank you so much for the update.
 
Please let us know if you require any further assitance on this.
 
Thanks,
Sridhar.S

Loader.
Live Chat Icon For mobile
Up arrow icon