virtual-directory

ASP.NET and Virtual Directories

We have an ASP system that we are going to replace with ASP.NET. This system is used by several different entities as an extension of their website (external of this system) using virtual directories, CSS, etc. Is this architecture still sound in the .NET world? Is there a better way of doing this? ...

IIS7 Creating Virtual Directory to files on another server

I am migrating some ASP.Net applications from IIS6 to IIS7 and all has gone well until now. I am trying to create several virtual directories on 1 server that will point to files on another server. In IIS6, all I had to do was make anonymous authentication use a user that had access to the files. In IIS7, I can't get it to work. I setup ...

C# Deleting a IIS virtual directory on windows server 2003 gives a COMException

DirectoryEntry oDirectoryEntry = new DirectoryEntry(virtualDirMetaPath); oDirectoryEntry.DeleteTree(); This throws a COMException 0x80005000. Any pointers welcome. Creation of virtual directory is fine. Its only at uninstall I get this error logged in Event Viewver. ...

IIS Issue? Site not coming up all of a sudden

So I have a site setup on a server. It has been working for ever. All of a sudden it stops working. I tried going to it even by IP. It just says, "Under Construction.. Under Construction The site you are trying to view does not currently have a default page. It may be in the process of being upgraded and configured..." I check to...

Why does my IIS virtual directory work with http://localhost but not http://computername?

I have been given the task of adding functionality to an existing IIS 6.0 website. To do it, I have built an ASP.NET MVC application. It works fine when deployed as it's own site, but doesn't seem to work when I try to deploy it as a virtual directory on the actual site where it needs to live. The server name is CWEBSERVER, and the IP ...

Issues occured when changing a Project to a Website in Asp.net

Hi, After changing a Project to Website, i got an error while running the application.The error is as follows:- It is an error to use a section registered as allowDefinition ='MachineToApplication' beyond application level.This error can be caused by a virtual directory not being configured as an application in ISS. How can i solve th...

How can I impersonate a different user while opening a virtual directory?

We have an ASP.NET (3.5) application which uses Forms Authentication to authenticate accounts. On the logon form, I also get a windows login token using LogonUser, which I use to impersonate the logged on user for browsing private directories (the files are displayed in a GridView, and the user is impersonated just before the data is bo...

Why does JavaScript not work on my site under an existing virtual directory?

I deployed my ASP.NET application under an existing virtual directory. The new deployment will have some features using JavaScript. The new features are not working. If I deploy this build under a new virtual directory, the features using JavaScript are working. I restarted the IIS Admin service. The problem continues. What could be ...

ASP.NET virtual directory _within_ VS2008

I'm building an ASP.NET 3.5 web application. When I run the project (using Visual Studio's built-in server), it needs to be able to access a network share as a virtual directory. I can't seem to find any information about how to do this. The network resource is very large, is updated frequently, and is used by other developers and in ot...

Execute ClickOnce application located on share, through HTTP?

Hi, i have a ClickOnce application (online only) which is deployed on a network share. People can run the application by creating a shortcut to i:\ApplicationDirectory\ApplicationName.application where i is the letter of the drive of the networkshare. I want to start the application over HTTP. For this, I need the .Application file to...

Automatically authenticating a virtual directory in IIS 6.0

We have a website whose users supply HTML links to a virtual directory on the website. (Think www.website.com/dir1; dir1 is actually a virtual directory to a different server.) The server that the virtual directory links to requires authentication, however the username and password needed is constant. Whenever a user tries to access a ...

.NET/IIS - Can I run a virtual directory using .NET 3.5 while the Website runs in 2.0?

I have a website running on .NET 2.0 right now. I have a reporting tool which needs to run on the same webserver as well, but it was written in 3.5. Can I create a Virtual Directory under websites, called "Reports" and have that run against 3.5? So the user can go to http://domain/Reports ? Let me know if this makes no sense. ...

ASP.NET Deployment : Cant access Bin folder assemblies from virtual directory under site

I have an ASP.NET Web application which has 3 projects to handle 3 different layers of the application (UI , BL and Data Access).When i publish the UI project a directory called Precompiled will be created in the solution and Files will be available there.This Folder will have a BIN directory which holds required DLL's(referenced DLL's a...

Best Practice with Duplicate Code & Virtual Directories

Hello, I have a dedicated server [win2008 & iis7] that is going to have 50 sites running the same .Net e-commerce application. Would it be best to use virtual directories for all the folders that are identical for each site? It would save on disk space & would make code updates much easier. Would each virtual directory still know to get...

IIS6 Virtual Directory 500 Error on Remote Share

We have our servers at the server farm in a domain. Let's call it LIVE. Our developer computers live in a completely separate corporate domain, miles and miles away. Let's call it CORP. We have a large central storage unit (unix) that houses images and other media needed by many webservers in the server farm. The IIS application poo...

Http Module & Http Handler is not firing when it is under a virtual directory of a ASP.NET website

Problem: There is a website(localhost:85) configure to C:\abc. I have created a seperate website which has HttpModule and HttpHandler in it. This new website should not be in the main application(C:\abc). So I have put a seperate folder like D:\xyz. And configured a virtual directory under port 85. Using ISAPI filter whenever related t...

Virtual Directory in Web Config

I am trying to add a virtual directory to my web config file so I can share master pages and images accross different applications. I have found very limited information and would apperciate any ideas you may have. Thanks ...

What is the difference between a website and a virtual directory

What is the difference between a website and a virtual directory? ...

ASP.Net Application Trust Medium File IO Outside Virtual Directory

I am trying to determine how suicidal this is... I have a hosting environment where a custom ASP.Net CMS application needs to access the files in the root folder of a website even though it is in a virtual folder so it can be shared accross many sites. I can modify the Medium trust on the server and came up with this... <IPermission c...

How do I use IIS7 URL rewriting to hide virtual directories?

I have a server with IIS7 that I am using to host several different sites for testing. Due to an overabundance of bureaucracy, I am unable to use host headers (I can't get new entries on our internal DNS server and users can not change their local hosts file). I have set up the default site in IIS to have nothing but virtual directorie...