Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# jimmyfingers 9/7/2009 4:52 PM
Hi,

I have multiple websites running off the same code base in Cuyahoga without any problems. What I'm now trying to do is to add a new IIS6 Virtual Directory called 'Quote' inside the existing codebase. Adding the directory in IIS is fine but when I try to navigate to one of the new pages added I get the following error:

Server Error in '/Quote' Application.
--------------------------------------------------------------------------------

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 'Cuyahoga.Web' or one of its dependencies. The system cannot find the file specified. (C:\CodeSafe\WebsiteCMS\CMS\Web\web.config line 216)

The section in web.config is httpHandlers/httpModules add type="Cuyahoga.Web.HttpModules.AuthenticationModule, Cuyahoga.Web" name="AuthenticationModule"



Can anyone please help?
# martijnb 9/8/2009 9:11 AM
Did you mark the virtual directory as an application in IIS?
# jimmyfingers 9/17/2009 4:33 PM
Yes the virtual directory shows as a yellow 'gear' wheel in IIS (6)
# martijnb 9/17/2009 4:49 PM (edited 9/17/2009 4:50 PM)
Very strange. I just tried the same action as you did (adding a virtual directory under an existing Cuyahoga web site that points to the same code base) and things work perfectly fine. Also using IIS 6...
Anybody else has experienced this issue?
# Constructor 9/17/2009 5:31 PM
You probably already have these bases covered but...

Check the ASP.NET version for your virtual directory.

Check that the file location is to the correct web folders web.config file.

Can't think of anything else. Hope you solve it.
# jimmyfingers 9/18/2009 4:57 PM
It seems to just work with html pages, e.g. www.mywebsite.com/virtualfolder/hello.html but throws a server error when I try to open an aspx page e.g. www.mywebsite.com/virtualfolder/index.aspx
# jimmyfingers 9/21/2009 9:58 AM
Is there maybe a setting withing Cuyahoga that would stop any sub virtual directory .aspx page from running?
# jimmyfingers 9/22/2009 11:38 AM
Ok I may be on to something here. If I delete the httpModules section from the web.config (that contains the follwoing items: Cuyahoga.Web.HttpModules.AuthenticationModule, Cuyahoga.Web.HttpModules.CoreRepositoryModule and NHibernateSessionWebModule) the virtual directory seems to work. Of course if I delete these entries then the main website fails but at least I can see that these are the items causing my problems.

Do these sections have any baring on any virtual directories beneath the Cuyahoga website?
# martijnb 9/22/2009 6:33 PM
Aahhh, so, the 'Quote' virtual directory doesn't map to the Cuyahoga instance but to a different app?

The only real solution in that case is to clear all HttpHandlers and HttpModules in web.config of 'Quote' and add the ones that are required to run the app (including the ASP.NET modules and handlers as defined in machine.config).

A dirty solution is to copy the Cuyahoga dll's to the bin directory of the other application and remove the modules and handlers in web.config (via remove tag).