Installation and deployment
Version 3.x > Installation and deployment > Nested Web Application View modes: 
User avatar
Member
Member
ken.walpurgis-atalasoft - 12/14/2008 2:07:06 PM
   
Nested Web Application
We have web services that run in a sub directory off the root of our site(www.domain.com/webservices). I tried creating a virtual directory off the root of the kenticocms folder. When i run the application i got configuration errors complaining that it could not find some of Kentico dlls. So Ii got around by adding the following to the web.config of the subsite:

<httpModules>
<remove name="ScriptModule" />
<remove name="XHtmlModule" />
</httpModules>
<namespaces>
<remove namespace="CMS.CMSHelper" />
<remove namespace="CMS.GlobalHelper" />
</namespaces>

But now i am receiving the following error:
Parser Error Message: Default Role Provider could not be found.

Source Error:


Line 89: </providers>
Line 90: </membership>
Line 91: <roleManager defaultProvider="CMSRoleProvider" enabled="true" cacheRolesInCookie="true" cookieName=".ASPROLES" cookieTimeout="30" cookiePath="/" cookieRequireSSL="false" cookieSlidingExpiration="true" cookieProtection="All">
Line 92: <providers>
Line 93: <clear />

I tried adding the following and got the same error:
<roleManager>
<providers>
<remove name="CMSRoleProvider" />
<clear />
</providers>
</roleManager>

Is there a way i can override this setting from the parent web.config?

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 12/18/2008 8:38:53 AM
   
RE:Nested Web Application
Hello,

could you please try to copy all Kentico dll libraries to the /bin folder of your nested web application?

Best regards,
Helena Grulichova

User avatar
Member
Member
ken.walpurgis-atalasoft - 12/29/2008 9:17:36 AM
   
RE:Nested Web Application
I was able to get the nested application to work without adding the Kentico dll's to the bin directory of the nested app(in this case our web services).

I added the following tag around the System.web tag in the root web.config.

location path="." inheritInChildApplications="false"

User avatar
Member
Member
ken.walpurgis-atalasoft - 12/29/2008 9:21:00 AM
   
RE:Nested Web Application
Just wanted to let everyone know that if you add the inheritChildApplications=false tag NOTHING in the System.web section will be inherited by the child applications. I needed to add the following to get my web services to be recognized:
<add verb="*" path="*.asmx" type="System.Web.Services.Protocols.WebServiceHandlerFactory,&#xA;System.Web.Services, ....


Prior to Kentico this tag was in my root folder, it took me a while to track this down so i thought i would pass it along.

thanks.

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 1/5/2009 7:40:54 AM
   
RE:Nested Web Application
Hello,

thank you very much for your solution. It is very helpful, thank you!

Best regards,
Helena Grulichova