views:

54

answers:

2

Hi, I am deploying my first ASP MVC project. The project runs just fine, I would like to take the next step and run this outside of my visual studio environment on my local IIS. I am running Windows7, Visual Studio 2008, and I have created a basic ASP MVC project.

On my solution, I find the project I would like to deploy. I right click and select Publish. I have backed up C:\inetpub\wwwroot\ and would like to deploy there. I accept all defaults, and click the "Publish" button. The Output Build window shows 1 project failed.

Basically is says that it is unable to add any of the binaries to the site, copy files, create new directories... Access is denied.

When I do click "Publish" at work, I don't get these errors. What do I have to do here to publish the website to make the website available to the rest of my home network? Also wwwroot appears to be readonly, but telling the folder to not be read only doesn't seem to help, it still appears to be readonly even after I've unselected this property in the property dialog.

There has been a suggestion that on Win7, you launch VS2008 as an Admin. While this does appear to work, I find it hard to believe that this is the "way" you do it.

A: 

It is permission, make sure that you are able to write to the folder. You can publish to your documents and then copy there to test that you can publish.

Dustin Laine
Yes, thanks. I've right clicked on wwwroot and unchecked "Read-only (Only applies to files in folder)" I Apply, but when I check again, the folder is still read only.
MedicineMan
Are you administrator?
Dustin Laine
do you have to run VS2008 as administrator? Seems unnecessary
MedicineMan
No just checking?
Dustin Laine
I am not admin. I just restarted VS2008 and published as admin-- but somehow I cannot believe that in order to publish to my local wwwroot, I have to launch VS as admin. There must be some other way.
MedicineMan
I just recreated your issue on my Win7/IIS7 box. I played with permissions a bit. I published to another folder then copied files in just fine. You could map your IIS outside of wwwroot folder. I will keep looking for solution.
Dustin Laine
+1  A: 
Al Crowley