简体   繁体   中英

How to publish ASP.NET website to a local IIS7 the easiest way?

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/Application, 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.

我对Web部署了解不多,但是对于第一种选择,您可能需要以管理员身份运行Visual Studio,以便它有权访问C驱动器上的文件。

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM