teixeira Posted July 1, 2005 Posted July 1, 2005 Hi all, I'm getting an error in my Windows application when it tries to write in the HDD.(write a simple txt log file). This is strange because the application at 2 days ago ran without any problem and all the log's i wanted to write were created. The error is not create dby my application is generated by the framework, at least that's the messsage that appears. I search in google and i found that the ASP.NET account may cause this problems that has something to do with CAS (code access security), but i still have the problem and my program crashes all the time there. I reviewed permissions, repair the assemblies with framework tool, i deleted the asp.net account and until now nothing. If somenone can help me in this situation i would appreciatte a lot. Thanks, Teixeira Quote
Leaders Iceplug Posted July 1, 2005 Leaders Posted July 1, 2005 So, you are trying to write to a file from within ASP.NET? Did you check the entire folder permissions? Is this a file on your computer that you are trying to write to? Can you write there with any other programs? Quote Iceplug, USN One of my coworkers thinks that I believe that drawing bullets is the most efficient way of drawing bullets. Whatever!!! :-(
teixeira Posted July 1, 2005 Author Posted July 1, 2005 hi, I'm using a windows form application but i read something about the asp.net account that can be the cause of it and i tryed to solve the problem trough it bu t until now i couldn't have good results All the files and folder are with the right permissions for a simple log.txt file creation greetings, Teixeira Quote
thenerd Posted July 1, 2005 Posted July 1, 2005 Is the program saved to a network-drive? or a shared folder? Quote
teixeira Posted July 1, 2005 Author Posted July 1, 2005 No! its a private folder in my hard disk. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.