Currently I have Cuyahoga running on my main domain
www.nesse.nl. Now I want to install it on a subdomain : test.nesse.nl
What I've done sofar is:
- upload contents of Cuyahoga web dir to the document root of test.nesse.nl
- left the db connection in web.config unchanged, making both Cuyahoga installations point to the same db
This works fine, because I can enter the admin section via test.nesse.nl/admin and see the website that I created earlier on
www.nesse.nl
- Next, I created a new website in Cuyahoga, pointing to test.nesse.nl/Rieke
- Create a virtual directory Rieke on the susbdomain, pointing to the document root of the subdomain
Now, when I want o start the Rieke website, I get the following error:
For more info on the error check the error page at
http://test.nesse.nl/rieke
Can anybody tell me if what I want is at all possible and if so, how to get around this problem?
The way that ASP.Net see it, you've:
Root application (test.nesse.nl):
|_
Child application(test.nesse.nl/Rieke):
Since the child application inherits all its setting from the parent, and since they both point to the same physical location, ASP.Net tries to apply the same settings twice, and fail in doing so.
If you _really_ *really* want to do this, you can try some <clear/> hacks, but they are ugly and dangerous in the long run.
What are you trying to do?
Well, basiclly I'm trying to set up a child application on the same domain. I just created a root application on test.nesse.nl. This works OK. hen I tried to create a child app on the main domain but here I get the same error now, so this problem is not linked to the subdomain but to the way I set up child apps. Should the virtual directory not point to the same physical location as the root app? At least, when Cuyahoga offers me the possibility to create multiple apps, I assumed it coudl be done somehow on the same domain, or am I wrong here?
Frank, are you sure that your child web is really a different IIS Application? You can make virtual directories without them being applications.
The case where I know it works is with 2 virtual directories (applications) pointing to the same physical directory.
Well, in the control panel's page where I define the virtual dir, there is a checked option Create application, so I assume it is an application....
Settings are identical to the setting of the virtual dirs for the root app which does run.
Additional info: Just found out that I can create virtual directories on the same level as the virtual dir for the root app, but I can also create virtual dirs as a nested directory in another virtual dir. So I created a nested virtual dir in the root virtual dir. Without succes so far, but perhaps this is something that helps?
Forget about this post, because creating a virtual dir on root level isn't at all necessary. Both on test.nesse.nl and
www.nesse.nl I have two root apps running wihtout a specific vitual dir.
Still, the problem stands...
I finally got two apps running on the same domain, but it only works if you point each app in Cuyahoga to a subdirectory.
In my first attempts I had one app pointing to the root and one pointing to a subdirectory in the root, and this is what I coudln't get to work. Now I have two apps, both pointing in Cuyahoga to their own (virtual) subdir and for each app a virtual directory (virtually pointing to the subdirs, but both physically pointing to the same directory) and this works.
One drawback though, if I want one of the apps as the default app for the root, I need to redirect the user from the root to the default application's subdir.