virtual-directory

ASP.NET MVC thinks my virtual directory is a controller

…衆ロ難τιáo~ 提交于 2019-11-30 09:22:46
I have a virtual directory under my MVC website in IIS called "Files". This directory is at the same level as my Views directory. When I link to a file from my MVC app to a file under my Files directory, I get the following error: The controller for path '/Files/Images/1c7f7eb8-5d66-4bca-a73a-4ba6340a7805.JPG' was not found or does not implement IController. It thinks that my Files VD is a controller. How do I access my files like a normal VD without MVC interfering? Thanks. ASP.Net looks for the directory first and then tries to match a controller, so what you are doing should work. Are you

IIS web deploy - create virtual directories?

本小妞迷上赌 提交于 2019-11-30 07:24:05
When developing a site on VS2010/IIS 7.5, I'm using Web Deploy to publish the site from my machine to the dev site server. The site has about 40 virtual directories, and I'd like to automagically create those on the server during the deployment. Is there a simple way to do this? I'm considering writing a small app that would load the list from a file or database and create them on demand. The directories have different physical paths on my development machine than on the web server, also, which throws a wrench into the works. If you're using MSBuild for your web deploy you can write a

Visual Studio creating IIS virtual directories when solution opened

白昼怎懂夜的黑 提交于 2019-11-30 05:59:43
问题 Visual Studio is asking to create virtual directories in IIS when I open a solution. Could this be because projects within the solution have been configured to use IIS rather than Cassini? The dialog message is: "The local URI ... specified for Web project ... has not been configured. In order to open this project the virtual directory needs to be configured. Would you like to create the virtual directory now?" 回答1: Yes it is. If a web project is configured to use IIS (on the Web tab in the

Javascript in Virtual Directory unaware of Virtual Directory

社会主义新天地 提交于 2019-11-30 03:44:51
Say I have the site http://localhost/virtual where virtual is the virtual directory I have an Ajax request that is defined in a javascript file using JQuery $.getJSON("/Controller/Action") When this is called, the client tries to find the url at the root level i.e. http://localhost/Controller/Action If I add the tilde (~) symbol in, it turns into http://localhost/virtual/~/Controller/Action It should (if it was to do what I wanted) resolve to http://localhost/virtual/Controller/Action Any ideas on how to fix this? Aku's hint above looked right but it didn't want to work for me. Finally I

ASP.NET MVC thinks my virtual directory is a controller

会有一股神秘感。 提交于 2019-11-29 14:13:39
问题 I have a virtual directory under my MVC website in IIS called "Files". This directory is at the same level as my Views directory. When I link to a file from my MVC app to a file under my Files directory, I get the following error: The controller for path '/Files/Images/1c7f7eb8-5d66-4bca-a73a-4ba6340a7805.JPG' was not found or does not implement IController. It thinks that my Files VD is a controller. How do I access my files like a normal VD without MVC interfering? Thanks. 回答1: ASP.Net

Sub-Website in IIS - ASP.NET

社会主义新天地 提交于 2019-11-29 10:26:53
I have a asp.net website in the IIS which is available on internet as www.xyz.com now I have been asked to prepare another website which will be accessed via www.xyz.com/abc. For this, do I need to create a virtual directory under the website folder XYZ in IIS? or is there any other way to achieve this. You need to make the subdirectory an IIS application. Keep in mind that inner apps like yours will be inheriting configurations from the top-most web configuration, so be careful clearing those settings you don't want in the child applications. Yes a virtual directory will work, however note

IIS web deploy - create virtual directories?

牧云@^-^@ 提交于 2019-11-29 09:36:31
问题 When developing a site on VS2010/IIS 7.5, I'm using Web Deploy to publish the site from my machine to the dev site server. The site has about 40 virtual directories, and I'd like to automagically create those on the server during the deployment. Is there a simple way to do this? I'm considering writing a small app that would load the list from a file or database and create them on demand. The directories have different physical paths on my development machine than on the web server, also,

IIS Virtual Directory map to network drive (with drive letter) but fail to create file

你。 提交于 2019-11-29 04:49:00
I am using C#/ASP.NET, IIS6 on Windows Server 2003. Map the data server shared folder to the WebServer with driver letter V:\ On the WebServer, IIS created a virtual directory and pointed to 'local location' with V:\ . Since there is no 'Connect As', not sure which USER will be used In my WebMethod, I want to create file on the shared folder with FileStream.Write(). I got IO Exception on the action, any hint? P.S. I have added ASPNET/NETWORK SERVICE on the data server shared folder. thanks! Gavin Mapped network drives are specific to the user account that created them: Using Mapped Drives with

DOS command to list all virtual directories in IIS 6

孤街醉人 提交于 2019-11-28 14:17:43
I'm looking for a DOS command to list all sites and virtual directories in IIS 6 under Windows 2003. I know there are ways to do this using Powershell / WMI , VBS , C# , etc. But all I want is a quick and dirty, no-fuss way to do it from DOS, without the need to create any new files on the Webserver. EDIT: While researching for this question I managed to come up with a one-liner that does it, but please do suggest an alternative if you have a more elegant solution that fits the criteria above. rkagerer Here's what I came up with: @FOR /F "delims=[]" %A IN ('@cscript //nologo %SystemDrive%

Visual Studio creating IIS virtual directories when solution opened

跟風遠走 提交于 2019-11-28 12:28:40
Visual Studio is asking to create virtual directories in IIS when I open a solution. Could this be because projects within the solution have been configured to use IIS rather than Cassini? The dialog message is: "The local URI ... specified for Web project ... has not been configured. In order to open this project the virtual directory needs to be configured. Would you like to create the virtual directory now?" Yes it is. If a web project is configured to use IIS (on the Web tab in the project properties -> "Use local IIS web server"), Visual Studio requires that the path defined exists in IIS