Configuration Error

Topics: Support Request
Sep 25, 2008 at 3:51 PM
Hey, guys!

I'm having some problems to implement my asp.net apps with dasblog.

Let me tell you:

I have a subdomain (blog.mycompany.com) and I need, for exemple, add other asp.net application in this subdomain inside another virtual directory (blog.mycompany.com/myaspnetapp).

When I access my application(blog.mycompany.com/myaspnetapp), i get this error:

Could not load file or assembly  'newtelligence.DasBlog.Web.Core' or one of its dependencies.(D:\Sites\...\blog\web.config line 159)

Linha 157:		</webServices>
Linha 158:		<httpModules>
Linha 159: <add type="newtelligence.DasBlog.Web.Core.UrlMapperModule, newtelligence.DasBlog.Web.Core" name="UrlMapperModule"/>Linha 160:			<add type="newtelligence.DasBlog.Web.Core.TitleMapperModule, newtelligence.DasBlog.Web.Core" name="TitleMapperModule"/>
Linha 161:			<add type="newtelligence.DasBlog.Web.Core.ProfileMapperModule, newtelligence.DasBlog.Web.Core" name="ProfileMapperModule"/>


myaspnetapp is an virtual directory, the files are in  diferent folder with an differente web.config file.
my file strtucture is: 

BLOG: D:\Sites\...\blog\
MYASPNETAPP: D:\Sites\...\myapp\
I'm running Windows Server 2003 with IIS 6.0

Does someone know how can I solve this problem?

Tnks!
Developer
Sep 25, 2008 at 7:13 PM
You'll have to modify the web.config so the modules from your root web don't get inherited in your sub-webs.

Here are a few pages that talk about how to do that:
http://aspadvice.com/blogs/ssmith/archive/2006/08/21/HttpModule-Breaks-SubApplications-Problem-Solved.aspx
http://www.kowitz.net/archive/2007/05/16/stopping-asp.net-web.config-inheritance.aspx


Sep 25, 2008 at 7:58 PM
Problem solved!
Thank u so much!