open excel file in asp.net
-
I have to open a excel file in asp.net using c# , oExcel = new Microsoft.Office.Interop.Excel.ApplicationClass(); on this line I am getting access denied . What i need to do , such that Excel can access . thanks thanks
Its because asp.net runs under aspnet user. Do, Open ur web.config file, just below the authentication tag write this line: www.sansanwal.com
-
I have to open a excel file in asp.net using c# , oExcel = new Microsoft.Office.Interop.Excel.ApplicationClass(); on this line I am getting access denied . What i need to do , such that Excel can access . thanks thanks
Or IMO you can enable access for [yourmachinename]/ASPNET user in Administrative Tools->Component Services (WinXP, dunno how elsewhere). I don't remember details and I am lazy to try... rest is lefr as excercise to reader ;) David Never forget: "Stay kul and happy" (I.A.)
David's thoughts / dnhsoftware.org / MyHTMLTidy -
Its because asp.net runs under aspnet user. Do, Open ur web.config file, just below the authentication tag write this line: www.sansanwal.com