Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Developing as a non admin user

Status
Not open for further replies.

xwb

Programmer
Jul 11, 2002
6,828
GB
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.
 
That is quite a lot of reading - I'll report back when I think I've gleaned enough information.

Oh well, gone are the days when you can pick a programmer off the street and ask them to write a program that will write to a file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top