Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can I copy files with ASP.Net using Vista and IIS7?
    primarykey
    data
    text
    <p>I have a button on a website that creates a directory and copys a file. I developed it using Visual Studio 2008, ASP.Net 3.5. I am running Vista as my OS. The website uses identiy impersonation.</p> <p>The functionality doesn't work ("Access to Path XYZ is denied") when:</p> <ul> <li>I run the website via IE hitting the local webserver</li> </ul> <p>The functionality works fine when [note Visual Studio run with Admin rights]:</p> <ul> <li>I hit play in Visual Studio </li> <li>I say view in Browser from Visual Studio</li> <li>I run the website via IE hitting the local webserver, but start IE with Admin rights</li> <li>I deploy the website onto another webserver (also vista/IIS7)</li> <li>I modify FireFox to accept integrated authentication, then access via FireFox and localhost</li> </ul> <p>I've never seen this behavior before, previously File.Copy type commands only cared that the rights on the folder being copied to were valid etc... (I have Everyone having full control while trying to debug this situation). It seems likely that the issue is having Admin rights or not? Or being logged in to the machine that it is running on?</p> <p>What is happening here? Why does it work in the development environment and deployed to another machine, but not work when deployed on my own machine? Seems very odd, any help would be appreciated.</p> <p><strong>EDIT</strong>: I've added "Everyone" to all of the relvant directories and give that user Full Control, so there shouldn't be any permission issues?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload