Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
so on vista, when i use stream writer to create a file anywhere i specify on my pc. apparently though, i am not authroized to do so. i believe this is a security "feature" in vista, as i can create files if i specify my home directory ( in C:\users\username). does anyone know a way around this?
  • Administrators
Posted

Certain areas of the file system are protected under vista and if you need to write to those areas then you will need to mark the application as requiring administrator privileges, easiest way of doing this is by providing a manifest for your application similar to the one found here.

 

This way you will be automatically prompted to elevate your permissions as soon as the application runs. Before doing this though it might be worth considering if you really do need to write to these parts of the file system - what does your application do that needs to write outside of a user's part of the system?

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...