I need to change the where a virtual directory's physical path is in C#. This is executed via an installer so it will be running on the machine where the virtual directory resides.
This is what I have so far:
using (DirectoryEntry webSiteRoot = WmiUtility.GetWebSiteRootDirectory(webSite))
{
DirectoryEntry...
When I attempt to save an image file to a virtual directory I get "A generic error occurred in GDI+." This seems to be a permission issue, because during the debug process, I changed the file path to my local hard drive and was able to save the file.
The virtual directory is running under a specific domain account, with full control g...
I am attempting to use a virtual directory on my Windows XP machine that has IIS 5.1 installed. I have configured the virtual directory as "When connecting to this resource, the content should come from: A share located on another computer." I typed the network directory in the box (ex. \comptername.companyname.com\sharename), and in t...
Hi,
I'm using the Visual Studio Development Server, with a specific port. Is there a way to add a virtual directory to it?
EDIT:
Sorry, I wasn't very clear. I'd like to be able to add one or more virtual directories to arbitrary physical directories. For instance: http://localhost/c_drive/ would map to C:\, http://localhost:/d_driv...
This article http://support.microsoft.com/kb/324785 indicates that you have to setup virtual directories to share pages and user controls between applications. This is not an option for me. I just want to share a few pages between two applications. Is there any other way or do I have to duplicate code by adding it to both apps?
...
Hello,
I am trying to put an .msi for download in a virtual directory setup with IIS.
The download works fine but when I try and install the .msi, it says it is missing a _cabinet file.
Me and a coworker had this issue will the installer downloaded fine & ran correctly on another coworker's machine.
Am I missing anything?
Is it a be...
I am trying to create an export feature for a user to be able to download documents into a zip file. I have the feature working when the files are located on my local and I can use an absolute path on my local. But after talking to the infrastructure team, I found out that the documents are not stored on the same machine as the web serve...
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 do...
Hi!
I am developing an application using ASP.NET MVC 1 and VS2008. When I deploy it to the default web-site in my IIS6 on WinXP, all images are shown correctly, path to any given image is localhost/Content/ImagesUI/[image].[ext]
When I deploy it to the virtual directory, created inside the same site, any image request returns IIS stand...
I have the following setup:
http://www.example.com/dir1/ and
http://www.example.com/dir2/
Each virtual directory is configured on IIS6.0 as an application with own AppPool.
When redirecting authenticated user from dir1 to dir2 using response.redirect I lose authentication information for the user and the user is being redirected to th...
I am trying to automate some of the build process for my asp.net apps by creating the virtual directories it needs and setting all their settings in a batch file. So far I have been able to figure out how to create virtual directories, but how to do you configure them beyond that?
For example I need to be able to set them as an applicat...
I have two differents virtual directories mapping to the same directory on the OS. In one of this virtual directories I need to have the browse folders disable, and in the other one I need to have it enable.
The problem is that when I changed one of them the other change as well. I thinks this problem is related that both virtual direct...
Folders created with SUBST cmd not working on IIS 6. In IIS 7(with windows 7) the virtual drive is not listing when browsed inorder to set physical path for virtual directory.
Can any body tell me how to solve this problem?
Is there any better method to create a virtual drive other than SUBST
...
Using IIS 6, is Application Isolation happen based on the Application Pool? If so, what happens when there is more than one Virtual Directory in one Application Pool? Do they all share the same memory and if one Virtual Directory crashes, all the other apps crash as well?
...
I see that junctions are a common way of referencing shared code in many projects. However, I have not seen them used in web applications before.
Our team is exploring the possibility of abandoning virtual directories in favor of junctions to simplify our build process. My goal is to compile a list of pros and cons in order to make an ...
I have an ASP.NET website running on IIS 7. I would like to host a WordPress site in a folder on this site (/blog).
I know that I can run WordPress on IIS through the Web Platform Installer, I just don't know if anyone has tried this scenario?
...
Hi All,
I have downloaded cruisecontrol.net setup and have installed it in "C:\Program Files\CruiseControl.NET".
It contains a folder called "webdashboard" which has aspx page and some other stuff as well.
I want to configure this in my IIS so that I can access it , I tried but it doesn't work , every time I get error that page you r...
I have an ASP.NET MVC web application running in IIS as a subweb; let's say its path is something like http://mysite.com/subweb.
I have a view which serves content obtained from a CMS. The CMS editor has entered some content containing a relative image path <img src="/images/imga.png" />.
This works fine on the production server where...
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...
Hi there,
is there a way to get all available virtual directories that are listed below the directory of the current site? Like
string[] virt = Directory.GetVirtualDirectories(".");
or something like that?
Thanks
Hendrik
...