Archive for the tag 'ASP.NET'

Sep 16 2009

Access is Denied Exception when writing to Spreadsheet from ASP.Net

Published by nick under Work

I recently got the following error message whilst trying to write to an excel file using the openXML library in ASP.Net and C#: System.ApplicationException: Access is denied. (Exception from HRESULT: 0×80070005 (E_ACCESSDENIED)) at System.IO.IsolatedStorage.IsolatedStorageFile.nGetRootDir(IsolatedStorageScope scope) at System.IO.IsolatedStorage.IsolatedStorageFile.InitGlobalsNonRoamingUser(IsolatedStorageScope scope) at System.IO.IsolatedStorage.IsolatedStorageFile.GetRootDir(IsolatedStorageScope scope) at System.IO.IsolatedStorage.IsolatedStorageFile.GetGlobalFileIOPerm(IsolatedStorageScope scope) at System.IO.IsolatedStorage.IsolatedStorageFile.Init(IsolatedStorageScope scope) at System.IO.IsolatedStorage.IsolatedStorageFile.GetStore(IsolatedStorageScope scope, Type domainEvidenceType, Type assemblyEvidenceType) at [...]

One response so far

Dec 19 2008

Page Refresh Animations in ASP.NET

Published by nick under Work

Page Refresh Animations This refers to the way in which we can display some form of feedback to the user that the page is being updated, without the need for an ugly page flash or the page seemingly doing nothing.  As always there are several ways to achieve this – a quick google will probably [...]

No responses yet

Nov 06 2008

The ASP.NET ViewState…

Published by nick under Work

The ViewState in ASP.Net is one of those weird and wonderful things that Microsoft obviously thought was a good idea at the time. Granted, it is quite useful but as with all things like that, it comes with a price – and a fairly hefty one at that if not used sensibly.

No responses yet

Oct 31 2008

Writing Date to Excel from ASP.NET and C#

Published by nick under Work

Ok, so i’ve just been working on outputting data from an ASP.NET based web app into an Excel Spreadsheet. I’m not going to go into the details of how to do that, but only how to avoid one little problem i encountered.

No responses yet