Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

file/directory permissions when running IIS Express 7.5 / VS2010 sp1

$
0
0

Hi All: I have a project in VS 2010 sp1 that I'm debugging using IIS Express 7.5 (on Windows 7 Pro sp1). Everything works properly until I try to save an uploaded file that overwrites an existing file in the project (a JPG file in this case).

If I publish the website to an IIS webserver and give the AppPool appropriate permissions, the file is overwritten without a problem, but when I try to do the same thing locally, I receive:

System.IO.IOException: The process cannot access the file 'C:\Users\me\Documents\Visual Studio 2010\Projects\mysite\mysite\images\52.jpg' because it is being used by another process.

I'm assuming this is a directory permissions issue? But I can't figure out how to set the permissions in IIS Express to allow "change" as well as "read/write" for this file directory? I tried granting Network Service and IIS_USRS change permissions but it didn't help.

I went so far as to shut down the Visual Studio project and restart the IIS Express process manually (using the handy IISEMgr app), but I still receive the error...so again I presume it's a permissions error?


Viewing all articles
Browse latest Browse all 3509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>