----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: raagz Message 2 in Discussion Hi Saif, Try running dcomcnfg.exe, find Microsoft Excel application in the Applications list, go to the security tab of the properties window and add the ASPNET user to the Custom Launch Permsissions. Also check this threads. http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=d3e8f10c.0201300853.7dd80e27%40posting.google.com&rnum=4&prev=/groups%3Fhl%3Den%26lr%3D%26ie%3DUTF-8%26q%3DExcel%2BAn%2Bunhandled%2Bexception%2Boccurred%2Bduring%2Bthe%2Bexecution%2Bof%2Bthe%2Bcurrent%2Bweb%2Brequest%26btnG%3DSearch http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=1E0F7F54-6C07-4839-9ADC-1427A9D81F69%40microsoft.com&rnum=6&prev=/groups%3Fhl%3Den%26lr%3D%26ie%3DUTF-8%26q%3DExcel%2BAn%2Bunhandled%2Bexception%2Boccurred%2Bduring%2Bthe%2Bexecution%2Bof%2Bthe%2Bcurrent%2Bweb%2Brequest%26btnG%3DSearch http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=8b8d8e7a.0309221104.6884e909%40posting.google.com&rnum=5&prev=/groups%3Fhl%3Den%26lr%3D%26ie%3DUTF-8%26q%3DExcel%2BAn%2Bunhandled%2Bexception%2Boccurred%2Bduring%2Bthe%2Bexecution%2Bof%2Bthe%2Bcurrent%2Bweb%2Brequest%26btnG%3DSearch Hope this helps you. Thanks Raghavendra -----Original Message----- From: SaifIkram4u [mailto:[EMAIL PROTECTED] Sent: Thursday, September 23, 2004 12:55 PM To: 'BDOTNET' Subject: Reading Excel file in ASP.NET New Message on BDOTNET Reading Excel file in ASP.NET Reply Reply to Sender Recommend Message 1 in Discussion From: SaifIkram4u Hi All,<o:p></o:p> <![if !supportEmptyParas]> <![endif]><o:p></o:p> I had created an ASP.Net Application and I am trying to read the Excel file... the code is as follows<o:p></o:p> <![if !supportEmptyParas]> <![endif]><o:p></o:p> Excel.Application oApp = new Excel.Application();<o:p></o:p> <o:p></o:p> Excel.Workbook oWorkbook = oApp.Workbooks.Open(strpath,0,true,5,"","",true,<o:p></o:p> Excel.XlPlatform.xlWindows,"\t",false,false,0,true);<o:p></o:p> Excel.Sheets oSheets = oWorkbook.Worksheets;<o:p></o:p> <![if !supportEmptyParas]> <![endif]><o:p></o:p> But when I run the project I am getting the following error :<o:p></o:p> <![if !supportEmptyParas]> <![endif]><o:p></o:p> Access is denied. <o:p></o:p> 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 is denied.<o:p></o:p> <![if !supportEmptyParas]> <![endif]><o:p></o:p> <![if !supportEmptyParas]> <![endif]><o:p></o:p> Can any one help me<o:p></o:p> <![if !supportEmptyParas]> <![endif]><o:p></o:p> Regards<o:p></o:p> Saif <o:p></o:p> <![if !supportEmptyParas]> <![endif]><o:p></o:p> View other groups in this category. ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/bdotnet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
