I have a web app the manages articles, users can generate articles which we store in the database and also in a folder inside the application in html. We also have the ability to generate real time alerts, to targetted audiences but the list of audiences was cached from an sql query on the web server and at times, the cache was cleared by the server. so i wrote an http module, and the module now runs the query using a timer, and this then wrties the audiences to an xml file within a folder in the same application (same as my html files)
Now the weird thing is im getting the system.io unauthorised access exception, when i try to delete and overwrite the xml file. Yet this doesnt happen when i write the html files.
Now although my users do login, there credentials are maintained via an sql database table, not windows security or the asp.net security model.
Ive checked the folder that we publish our applications up to (its a mapped folder like a virtual directory), and i cannot see the network service or asp.net machine accounts usually used in iis5 or 6. But i dont have the ability to change this anyway.
Why would the html file write fine, and the xml file throw this error.
I also changed my code to used HttpRuntime.AppDom
View Complete Post