Timeline for How do I prevent getting an access denied loading a file in XNA, when I have the application running in the program files directory (in Windows 7)?
Current License: CC BY-SA 2.5
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 10, 2010 at 21:27 | comment | added | Kevin Gadd | Which API call is producing the exception in question? What are the permissions attached to the path that you aren't being allowed to access? | |
Aug 26, 2010 at 4:43 | vote | accept | McKay | ||
Aug 26, 2010 at 4:43 | comment | added | McKay | @ChrisHowe I tried similar stuff, and I tried looking for specifically that, but the closest I could find was StorageContainer.TitleLocation, which was close, but not file load. Looking through the help file you linked was great, but I couldn't get it to work, because it was XNA 4.0 (still in beta), and using C# Express 2008, is still on XNA 3.1, which doesn't support the awesome TitleContainer. Way good document though. Thanks | |
Aug 25, 2010 at 14:50 | comment | added | McKay | @ChrisHowe I think I tried that, but I'll double check | |
Aug 25, 2010 at 14:46 | history | edited | McKay | CC BY-SA 2.5 |
more clarity
|
Aug 25, 2010 at 14:37 | comment | added | McKay | @ArdaXi I am running as administrator. (updated question text to reflect this) | |
Aug 25, 2010 at 14:37 | history | edited | McKay | CC BY-SA 2.5 |
Add administrator note
|
Aug 25, 2010 at 14:06 | answer | added | Bart van Heukelom | timeline score: 1 | |
Aug 25, 2010 at 11:44 | comment | added | Chris Howe | I assume you're trying this using the standard .Net I/O routines. As an alternate strategy you could try going through the XNA Storage system: msdn.microsoft.com/en-us/library/bb200105.aspx | |
Aug 25, 2010 at 8:35 | answer | added | MrCranky | timeline score: 5 | |
Aug 25, 2010 at 7:32 | comment | added | Arda Xi | Have you tried running your app as Administrator? | |
Aug 25, 2010 at 5:27 | history | asked | McKay | CC BY-SA 2.5 |