不知何故,我的解決方案和項目的Path/FullPath不同。我的解決方案和項目存儲在不同的地點是不是一個好主意?
我的解決方案( 「customerreportingnet」)的路徑屬性是:
C:\Users\cshannon\Documents\Visual Studio 2013\Projects\customerreportingnet\customerreportingnet.sln
該解決方案下的唯一項目是一個網站( 「http://localhost/EMS/customerreportingnet/」)。
網站項目的FULLPATH是這樣的:
C:\EnhancedMonthlySalesReporting\customerreportingnet\customerreportingnet
爲什麼會在解決方案和項目的位置有什麼不同?
我在設置中做錯了什麼?我下載了從.zip文件,並將這些文件解壓到C:\ EnhancedMonthlySalesReporting \
我然後創建在IIS虛擬目錄,它映射到C:\ EnhancedMonthlySalesReporting \ customerreportingnet \ customerreportingnet,給它的別名「EMS 」。
然後在VS我打開網站(解決方案/項目)是這樣的:
文件>打開網站...
,然後我打開IIS> EMS
當我做到這一點,我在「項目」下看不到任何文件 - 在解決方案資源管理器中可以看到的只是解決方案和項目名稱 - 它們下面沒有子文件夾或文件。但是,當我右鍵點擊解決方案「customerreportingnet」並選擇「打開網站」,然後回答「打開網站(這將關閉當前的解決方案)」一切都比較好 - 我可以右鍵單擊項目「http://localhost/EMS/customerreportingnet/」),選擇在瀏覽器中查看(Internet Explorer),網站運行。
C語言中的唯一文件:\用戶\ cshannon \文檔\ Visual Studio的2013 \項目\ customerreportingnet \是:
customerreportingnet.sln customerreportingnet.v12.suo
C:\ EnhancedMonthlySalesReporting \ customerreportingnet \ customerreportingnet有這些文件和更多(以及beaucoup文件夾)。
我應該嘗試重置C:\ EnhancedMonthlySalesReporting \ customerreportingnet \ customerreportingnet的解決方案路徑,還是僅僅是一個奇怪的問題,但不是問題?
如果是這樣,就像改變那個屬性值一樣簡單,還是會把事情搞砸?
謝謝;我這樣做(文件>打開網站...),因爲這些是我遞交項目給我的指示。我知道無論我採用哪種方式,我都會遇到挑戰,如果我偏離了他的具體指示,他會說這就是爲什麼它不起作用的理由。我曾嘗試將它作爲VS中的解決方案進行簡單打開,但也存在問題。如果對這個故事感興趣,請參閱http://stackoverflow.com/questions/42450617/why-is-my-file-supposedly-unable-to-be-read-due-to-insufficient-permissions-htt –
@B。 ClayShannon一個網站或項目簡直就是他們(沒有魔法)。在你上面的IIS步驟中,不要添加_virtual目錄,而是嘗試「添加新網站」,以便它成爲它自己的應用程序(你可以管理它自己的應用程序池等),而不是一些「子應用程序」(一些父母)。當然,除非它已經「安裝」在本地機器上,否則它就是父應用程序的「孩子」。 – EdSF
以這種方式添加一個網站,指向相同的文件,軟管東西了嗎?我想要做的最後一件事就是讓我已經取得的一小步進展變得糟糕。 –