简体   繁体   English

如何最简单的方式将ASP.NET网站发布到本地IIS7?

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

So I've a local IIS7 set up. 因此,我设置了本地IIS7。 When I publish using File System and choose C:\\inetpub\\wwwroot as target location, the VS2010 gives the following errors: 当我使用File System发布并选择C:\\inetpub\\wwwroot作为目标位置时,VS2010出现以下错误:

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 ". 当我尝试将“ C:\\inetpub\\wwwroot ”设置为Service URL并将“ TestWeb ”设置为Site / Application的“ Web Deploy”方法时,它给了我这个错误:“ 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. 以前曾从VSS中的文件夹复制文件时遇到此问题。 As all the files in VSS are set to Read-Only all the files stated the exact same error you have above. 由于VSS中的所有文件都设置为“只读”,因此所有文件都声明了与您完全相同的错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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