virtual-directory

Force download of a file on a network share through IIS

I'm writing a quick web page to control access to a web based repository of audio file (recordings of lectures). The audio files are held on SAN and accessed from the web server using a UNC share. I want to force a "save" dialog to appear, because during testing we have found that some web browsers make it very difficult to save mp3 fi...

IIS application with virtual directories running code in ASP.NET

If I have an ASP.NET application in IIS with virtual directories, can aspx pages in the virtual directories access DLLs within that application as well? WEBSITE -App___Data -App_Themes -Bin -MyDLL.dll -Images -MyVirtualDir -MyAspPageThatNeedsToAccessMyDll.aspx Is this possible? ...

Microsoft.Web.Administration VirtualDirectory permissions

I'm able to create a Virtual Directory in IIS7 using the Microsoft.Web.Administration dll pretty easily in the code shown below but I've been pulling my hair out trying to find out how to give "Network Service" write permissions to the Virtual Directory once it's been created. Can anyone point me in the right direction? Private Sub Cre...

Read a web.config file in a virtual directory

I have an ASP.NET application (Root Application) that has a virtual directory set up to another ASP.NET application (Virtual Application). How can I make the Virtual Application read values from the Root Application's web.config file? I was looking at the WebConfigurationManager.OpenWebConfiguration() class, but I'm unsure how how to t...

ASP.NET in virtual directory is worth the effort?

I have been testing Umbraco because it's the most popular open source CMS in .NET out there and I was curious. It surprised me that is not possible to run it in a virtual directory. After working some time with ASP.NET and ASP.NET MVC I noticed that sometimes allowing your application to run in a virtual directory instead as well as in ...

IIS restarts W3Svc when Creating new Virtual Directory from Default Web site

Hey Any ideas why MS in their infinite wisdom makes IIS 6 restart the W3C Service when I create an application/or virtual directory and then change the runtime version? Thanks Mark ...

Configure an IIS Site to default to non-root directory?

Say I have a directory structure like so: /public /public/company /public/globals /public/globals/images /public/jobs /public/jobs/it ... etc. What I would like to do is to be able to configure an IIS Site to load from /public/company when visiting the domain root. I know I can change the site to /public/company, but if I do that, I...

Virtual directory deleted when publishing asp.net application?

Hi! A short question. I have a website running at :80. I create a virtual directory "itemimages" under the site that reference E:\itemimages. When i publish the ASP.net to the website at :80 with "Delete all existing files prior to publish" the virtual directory "itemimages" is also deleted. Any way to stop this from happening? Or be...

How to best deal with deploying a solution to IIS as a virtual directory - dealing with relative paths, bin folders, etc...

So we have our main parent portal and our own site under that: Portal/MySite. MySite is a virtual directory under the Portal. The problem is that MySite needs its own master pages, files in the bin folder, etc... However, the only way to get MySite to work was to move the MySite.dll into the Portal's bin folder. The problem with thi...

apache configuration - what am I missing here?

I have a windows XP machine, installed apache at C:\Program Files\Apache Software Foundation\Apache2.2 I set the document root as DocumentRoot "C:/projects" in httpd.conf and my projects are proj1 and proj2 in c:\projects <VirtualHost *:80> DocumentRoot "C:/projects/proj1" ServerName proj1 </VirtualHost> <VirtualHost *:80> Docu...

Default path for MSDN Reports Services /ReportServer and /Reports virtual directories

I'm trying to use MSDN Reports Services 2005, but I'm realising that I broke the installation, so I'm trying to fix it without having to rebuild it entirely. (Though I'm becoming more tempted the longer this goes on.) Unfortunately, all the documentation assumes you haven't done something stupid. ;) Amongst the things I've broken in t...

Using IIS virtual directories in Visual Studio Web Application projects

I have an ASP.NET project that has the following directories \ads \photos both these folders have thousands of files in them that get updated frequently. I currently have my IIS set up like \inetpub\wwwroot\foo \inetpub\wwwroot\foo\ads \inetpub\wwwroot\foo\photos \inetpub\wwwroot\foo.staging \inetpub\wwwroot\foo.staging\ads \inetpu...

Do Virtual Directories in shared hosting conflict with stuff in wwwroot?

Hi I have an asp.net mvc application, phpBB forum and asp.net webservice that I want them all in the same wwwroot. My shared hosting allows virtual directories so I went a head and made one. It made the directory and some web.config in it. I then uploaded my asp.net webservice and overrode the web.config that was in virtual directory ...

Proper folder location when creating virtual directories in IIS 6.0?

When creating new web sites with Visual Studio .NET, the projects are created at the default web site location, e.g. c:\inetpub\wwwroot\myapp. Likewise, when creating msi packages for such applications using a Visual Studio Web Deployment Project, a custom action will be used to determine the folder location of the default web site and t...

Javascript in Virtual Directory unaware of Virtual Directory

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 (~) ...

Moved an app on asp.net and suddenly libs are no longer found

I have moved an asp.net from the c:-drive to d (well, I did not move it, but first created a new virtual directory on d:\ and then copied the files over and finally removed the old dir from c:). And I restarted the machine. This worked partially: I can launch aspx-files on the new location, but dependend libararies are no longer found n...

IIS7: disabling HttpModule in subapplication - sites, application and virtual directories

I have a few aspx files in a "Cache" folder in my application and I do not want HttpModules to run for those files in that folder. I tried having a web.config in subdirectory but learned that HttpModules take the root web.config and not that of the subdirectory. Reference 1, Reference2. So I decided to have this directory as a sub appli...

Get name of virtual directory?

I'm using Request.ApplicationPath to learn the name of the Virtual Directory in which I'm running. Is there a more reliable way? ...

Can you access a Virtual Directory outside of an ASP.NET website?

Can you access a Virtual Directory outside of an ASP.NET site? For example, in a Console application? ...

Create a virtual directory in iis 6 programatically using vb.net as unprivileged user

I'm trying to write an application that will allow a non-administrator user to create virtual directories in IIS6. I've tried numerous different ways of impersonating a administrative account but nothing seems to work to create the virtual directory. Here's some of what I've tried: dim sDirPath as string = "IIS://remotehost/W3svc/1/ro...