So I've a local IIS7 set up. When I publish using File System
and choose C:\inetpub\wwwroot
as target location, the VS2010 gives the following errors:
Unable to add 'About.aspx' to the
Web site. Unable to add file
'About.aspx'. Access is denied.
Unable to add 'Default.aspx' to the
Web site. Unable to add file
'Default.aspx'. Access is denied.
Unable to add 'Global.asax' to the
Web site. Unable to add file
'Global.asax'. Access is denied.
etc.
I don't understand what permission I need to change from where.
When I try the 'Web Deploy' method, with 'C:\inetpub\wwwroot
' set as Service URL and 'TestWeb
' as Site/Applic开发者_Python百科ation, it then gives me this error: "Invalid Web Deploy service URL
".
I simply need to get this up and running so friends can access my website from outside.
I don't know much about web deployment, but for the first option you probably need to run Visual Studio as Administrator so that it has permission to access the files on the C drive.
If there are existing files in the folder, you should check if they are Read-Only. Previously had this issue where the files where copied from a folder in VSS. As all the files in VSS are set to Read-Only all the files stated the exact same error you have above.
精彩评论