Exception Access denied , creating an excel object ASP .net C#

From: Hemant shastri (shastri_at_discussions.microsoft.com)
Date: 07/27/05


Date: Wed, 27 Jul 2005 04:10:02 -0700

In my web application i am reading the data from excel file and inserting the
records into the database.(In ASP.net C#)
 
for some users i am getting exception "Access denied" at the following line
of the code.
Excel.Application=new Excel.Application();
for some user it is working fine.
In IIS -->properties-->directory security-->Authentication mode is
"Integrated Authentication" , needed to find the login id of the user.
Web.config file identity impersonate option is also true.
How can i avoid this error message?
Please help...Thanks to all of you for investing the time and replying.



Relevant Pages

  • Exception Access denied , creating a new excel object in ASP.Net
    ... In my web application i am reading the data from excel file and inserting the ... Web.config file identity impersonate option is also true. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Windows XP & Office 2000
    ... > is in your temp internet files and the xls file is still located on the ... > offer you the chance to access the excel file. ...
    (microsoft.public.windowsxp.general)
  • Re: Windows XP & Office 2000
    ... > is in your temp internet files and the xls file is still located on the ... > offer you the chance to access the excel file. ...
    (microsoft.public.excel)
  • Extra Baggage in Excel
    ... I had a problem with an excel file which had become very slow to save and ... After reading some responses to my question and other posts in the group I ... formatting. ... I update this master file as needed and I also ...
    (microsoft.public.excel.misc)
  • Re: Windows XP & Office 2000
    ... >> the email message then it will try to find the xls file in the temp ... >> folders. ... The reason you can't open it is because the email you are reading ... offer you the chance to access the excel file. ...
    (microsoft.public.excel)