virtual-directory

ASP.Net using wrong web.config for virtual directory

戏子无情 提交于 2019-12-07 08:58:30
问题 We're running IIS 6 on Windows Server 2003 R2. We want to add a virtual directory that runs under .NET 4.0 to a site that runs under .NET 2.0. We've given the virtual directory its own app pool, and we've configured the virtual directory to run under 4.0. The parent site works fine, but the virtual directory throws errors that reference the parent site's web.config file. We need the virtual directory to use its own web.config file. The GUI in the IIS Manager says that the virtual directory is

Best way for multi-language sites virtual Directories

。_饼干妹妹 提交于 2019-12-06 22:07:28
I have a site that will ultimately support 4 languages and 2 countries (US & Canada, English and Spanish) I'm wondering what's the best way to set up the directory structure? Right now, I have a root site called site.com: This will take you to a page where you choose your country and language. Ideally, I want to have the directory like so: site.com/ca/en/ (Canada English) site.com/ca/fr/ (Canada French) site.com/us/en/ (US English) site.com/us/es/ (US Spanish) But that will mean I will be putting a "ca" and a "us" virtual directory and language virtual directories inside that. IS that good

Configure URL in IIS

六眼飞鱼酱① 提交于 2019-12-06 14:38:56
I have an existing DNN site set up in IIS and I want to link to another ASP.NET application in a separate folder. I want to maintain the same domain URL as follows: http://dnn9.dnndev.me/otherapplication Can anyone point me in the right direction? UPDATE Currently, the main DNN site is set up as its own site in IIS (not under Default Web Site)., with its own App Pool. I tried adding a virtual directory to the main DNN site, pointing to the other application folder. It gives a 404. I added <location path="." inheritInChildApplications="false"> around the system.web section of the DNN site web

IIS Config file in virtual directory

孤人 提交于 2019-12-06 10:20:43
I have multiple websites that all have the same code, but different app settings. I want to place my app settings in a separate configuration file that is located in a virtual directory. This will allow me to have a single copy of all of the code shared across all of the sites with a different virtual directory for each site. Unfortunately, when I try to configure this, IIS doesn't process the config file when it is in a virtual directory. If you have a solution to this, I would appreciate your help. Maybe using the machine.config file on your web server would be a suitable alternative?

How do I resolve absolute URLs for different sites in the same parent IIS virtual directory in .NET?

僤鯓⒐⒋嵵緔 提交于 2019-12-06 09:43:25
问题 My goal is to share images, css, js, etc. across multiple websites that are all hosted under the same parent virtual directory in IIS. Of course, I could hard code the images paths, but I'd hoped .NET had a method that could intelligently resolve URLs using the IIS configuration. Here is my file/virtual directory structure: Parent Site (Virtual Directory) default.aspx mypage.aspx otherpage.aspx images - logo.jpg css - site.css Subsite1 (Virtual Directory) - default.aspx - products.aspx

Two websites with single application pool to share resources

大城市里の小女人 提交于 2019-12-06 05:06:18
Is it possible to have two web application projects (one main website and one running in a virtual directory such as an admin site) share the same application pool to allow the sharing of content in the back end such as static lists, session state etc? Ken Henderson A quick google search turned up this related question IIS App Pools & Static Classes with the answer that the two web sites will still be in different AppDomains and will not share Static instances. If you need to share data between your web applications you would be better served by setting up a shared database/service for the two

Sharing authentication between IIS applications on same domain

∥☆過路亽.° 提交于 2019-12-06 02:39:26
I have an IIS website on www.example.com and a virtual directory at www.example.com/demo/ How can I use the authentication cookie from www.example.com in my virtual directory? You are looking for a Single Site Login solution. If the article I linked to doesn't help you, there's plenty more on google when you know what to search for ;) The cookies are shared in the same domain, even shared between applications. I have used the same cookie to share authentication between a Classic ASP app and a .net app without problems. Just use the same rules to encrypt or store the cookie. A solution would be

Configure ASP.NET Web API application as a Virtual Directory under ASP.NET MVC application

本小妞迷上赌 提交于 2019-12-06 01:09:03
问题 Due to various engineering requirements, I need to develop a new ASP.NET Web API application (named as BarApp) within the same Application domain of an existing application (named as FooApp). I would like to configure an ASP.NET Web API application (BarApp) as a virtual directory under an existing ASP.NET MVC application (FooApp) on IIS 8.5. Though many many posts talked about how to configure a virtual directory, none of them work. Here is the configuration snippet <site name="FooApp" id="3"

Virtual Directory App within a Asp.net MVC app

北慕城南 提交于 2019-12-06 00:14:54
I am having issues trying to host screwturn wiki as a virtual directory application within my current domain. the domain is hosted as something.com and the wiki would look like something.com/wiki when i browse to something.com/wiki I get Could not load file or assembly 'System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. Why is the virtual directory falling back to the root application. Shouldn't it be its own application boundary? I have also added to the root mvc app routes.IgnoreRoute("{

How to enable the Virtual Directory Support php?

穿精又带淫゛_ 提交于 2019-12-05 18:42:29
I see "Virtual Directory Support" is disabled in phpinfo.php, how can I enable it ? johannes In short: You can't easily. And you should not. Longer story: PHP is supposed to provide a shared nothing environment. In this context this means if two scripts are running in parallel they should not interfere. In most cases this is no issue as different scripts use different processes. (Apache module with mod_prefork, FastCGI, fpm etc.) But in some scenarios people use PHP as a module in a threaded environment. (Microsoft IIS module, Apache mod_mpm module etc.) If that is the case PHP can't rely on