我有一個虛擬目錄在IIS下我的MVC網站稱爲「文件」。該目錄與我的Views目錄處於同一級別。當我從我的MVC應用程序鏈接到文件目錄下的文件時,出現以下錯誤: The controller for path '/Files/Images/1c7f7eb8-5d66-4bca-a73a-4ba6340a7805.JPG' was not found or does not implement ICo
我想完全理解如何在靜態和動態文件中使用相對和絕對url地址。 ~ :
/:
.. : in a relative URL indicates the parent directory
. : refers to the current directory
/: always replaces the entire pathname of the base URL
// : always
我正在使用具有特定端口的Visual Studio Development Server。有沒有辦法給它添加一個虛擬目錄? 編輯: 對不起,我不是很清楚。我希望能夠添加一個或多個虛擬目錄到任意的物理目錄。例如:http://localhost/c_drive/將映射到C:\,http://localhost:/d_drive/將映射到d:\等