I don't know if it just me who runs as a non-admin user. Everyone whom I ask seems to develop C# code as an admin user.
Anyway, what I'm trying to do is very simple - write to a file in the current directory using streamwriter. You would have thought that it was a no-brainer. The problem is I can't run my program in the debugger: it gives some Security Permissions Exception. It is fine when I run it from a cmd prompt.
It gives the same error even when I say the working directory is My Documents.
The question is what magic switch do I flick to get round this Security Permissions Exception. This is on VS2005. I suspect the same problem exists on VS2008.
Anyway, what I'm trying to do is very simple - write to a file in the current directory using streamwriter. You would have thought that it was a no-brainer. The problem is I can't run my program in the debugger: it gives some Security Permissions Exception. It is fine when I run it from a cmd prompt.
It gives the same error even when I say the working directory is My Documents.
The question is what magic switch do I flick to get round this Security Permissions Exception. This is on VS2005. I suspect the same problem exists on VS2008.