簡體   English   中英

如何最簡單的方式將ASP.NET網站發布到本地IIS7?

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

因此,我設置了本地IIS7。 當我使用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.

等等

我不知道需要從何處更改什么權限。

當我嘗試將“ C:\\inetpub\\wwwroot ”設置為Service URL並將“ TestWeb ”設置為Site / Application的“ Web Deploy”方法時,它給了我這個錯誤:“ Invalid Web Deploy service URL ”。

我只需要啟動並運行它,以便朋友可以從外部訪問我的網站。

我對Web部署了解不多,但是對於第一種選擇,您可能需要以管理員身份運行Visual Studio,以便它有權訪問C驅動器上的文件。

如果文件夾中有現有文件,則應檢查它們是否為只讀。 以前曾從VSS中的文件夾復制文件時遇到此問題。 由於VSS中的所有文件都設置為“只讀”,因此所有文件都聲明了與您完全相同的錯誤。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM