Installation and deployment
Version 2.x > Installation and deployment > Problem with root & virtual directory View modes: 
User avatar
Member
Member
hieutc@gmail.com - 6/15/2007 11:56:07 AM
   
Problem with root & virtual directory
When I create a new website using KenticoCMS at the root level and I add another virtual directory in the same website, it show the error when I point to the virtual directory:
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Could not load file or assembly 'CMS.OutputFilter' or one of its dependencies. The system cannot find the file specified. (C:\Inetpub\wwwroot\DCT_NEW\web.config line 39)

Source Error:

Line 37:
Line 38: <httpModules>
Line 39: <add name="XHtmlModule" type="CMS.CMSOutputFilter.OutputFilterModule, CMS.OutputFilter" />
Line 40: </httpModules>
Line 41: <xhtmlConformance mode="Strict" />

Source File: C:\Inetpub\wwwroot\DCT_NEW\web.config Line: 39

Note: This error is shown when I point to the virtual directory: http://mysite.com/xyz, which I run another ASP.NET 2.0 application, but the web.config shown in the error is of Kentico

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 7/17/2007 12:25:17 PM
   
RE:Problem with root & virtual directory
Hi,

Could you please try to set the IIS up as described here:
http://www.kentico.com/docs/devguide/index.html?configuring_multiple_web_sites.htm

User avatar
Member
Member
hieutc@gmail.com - 7/17/2007 3:06:18 PM
   
RE:Problem with root & virtual directory
Thanks for your reply, but my problem is not exactly like that.

I dont need to configure two website of Kentico, but one Kentico and another website that run .NET Framework 2.0
For example:
www.mysite.com <-- Run Kentico
www.mysite.com/portal <-- run DotNetNuke, for example. It can be any .NET 2.0 website

So when I navigate to www.mysite.com/portal, I got the above error.
Do you have any suggestion?

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 7/17/2007 3:19:20 PM
   
RE:Problem with root & virtual directory
Hi,
that could be the problem - you are using the second CMS. The Kentico is in the root, so when you try to access something in sub item in the folder, the Kentico is superior. It will be better when you will use only one CMS, or when you want to use both, it is better to have two different and independent website directories.

User avatar
Member
Member
hieutc@gmail.com - 7/18/2007 3:52:51 AM
   
RE:Problem with root & virtual directory
Thanks.
Yeah I know that Kentico is conflict with the second website. But in my situation, I have to use both Kentico and my CMS under one domain.

Can I somehow register the virtual directory with Kentico system so that it will be ignore by Kentico?

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 7/18/2007 8:30:32 AM
   
RE:Problem with root & virtual directory
Hi,
I am afraid that it is not possible. It is not allowed to create (other) sub virtual directories.

User avatar
Kentico Product Management
Kentico Product Management
kentico_karolj - 8/8/2007 7:45:07 AM
   
RE:Problem with root & virtual directory
Hi,

Could you please try to copy DLL file 'CMS.OutputFilter.dll' from 'bin' directory located in your project folder to 'bin' directory of your sub-service (e.g. DotNetNuke)? You will probably need to include few more DLLs that OutputFilter depends on, but it could works at the end.

Best Regards,
Karol Jarkovsky

User avatar
Member
Member
Robert Glynn - 9/15/2010 11:06:44 AM
   
RE:Problem with root & virtual directory
Old thread, but this worked for me. I was using something other than DNN, but it was set up as a virtual directory in the CMS site.

I had to copy to the bin folder:
CMS.CMSHelper
CMS.GlobalHelper
CMS.MembershipProvider
CMS.OutputFilter
CMS.URLRewritingEngine

Version was 5.5

User avatar
Certified Marketer 13
Certified Marketer 13
james-distinctionhq - 2/4/2011 12:23:31 PM
   
RE:Problem with root & virtual directory
Again, even older thread now, but we got around this problem differently again!

Instead of copying the DLLs into the bin folder, we amended the web.config in the virtual directory to remove the referenced files.

E.g.
<httpModules>
<remove name="XHtmlModule" />
</httpModules>

Version was 3.0.

This works because of the way .net manages the inheritance of the web.config files.

Hope that helps,

James
http://www.distinctionhq.com