Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...How to deploy DNN to website root and separate ASP.NET app to V.Dir on same siteHow to deploy DNN to website root and separate ASP.NET app to V.Dir on same site
Previous
 
Next
New Post
5/24/2006 9:03 PM
 

I  might have found a second solution. I know that not everybody has an ISA server to solve these problems.

Michael's analysis is wrong. Main problem is not primarily URL rewriting but configuration inheritance. The phone application will try to load every httpmodule defined inside dnn’s web.config. This will raise an error because the corresponding assemblies are not found.

You can’t break this inheritance but you can beat it. We need to clear all httphandlers and httpmodules defined by DNN. This is not really possible, but we are able to clear all httpodules and handlers, afterwards all system handlers and modules gets added back.

As an example I've added these  settings for ASP.NET 2.0

<configuration>

<system.web>

<httpHandlers>

<clear/>

<add path="trace.axd" verb="*" type="System.Web.Handlers.TraceHandler" validate="True" />

<add path="WebResource.axd" verb="GET" type="System.Web.Handlers.AssemblyResourceLoader" validate="True" />

<add path="*.axd" verb="*" type="System.Web.HttpNotFoundHandler" validate="True" />

<add path="*.aspx" verb="*" type="System.Web.UI.PageHandlerFactory" validate="True" />

<add path="*.ashx" verb="*" type="System.Web.UI.SimpleHandlerFactory" validate="True" />

<add path="*.asmx" verb="*" type="System.Web.Services.Protocols.WebServiceHandlerFactory, System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="False" />

<add path="*.rem" verb="*" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" validate="False" />

<add path="*.soap" verb="*" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" validate="False" />

<add path="*.asax" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />

<add path="*.ascx" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />

<add path="*.master" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />

<add path="*.skin" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />

<add path="*.browser" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />

<add path="*.sitemap" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />

<add path="*.dll.config" verb="GET,HEAD" type="System.Web.StaticFileHandler" validate="True" />

<add path="*.exe.config" verb="GET,HEAD" type="System.Web.StaticFileHandler" validate="True" />

<add path="*.config" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />

<add path="*.cs" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />

<add path="*.csproj" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />

<add path="*.vb" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />

<add path="*.vbproj" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />

<add path="*.webinfo" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />

<add path="*.licx" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />

<add path="*.resx" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />

<add path="*.resources" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />

<add path="*.mdb" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />

<add path="*.vjsproj" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />

<add path="*.java" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />

<add path="*.jsl" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />

<add path="*.ldb" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />

<add path="*.ad" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />

<add path="*.dd" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />

<add path="*.ldd" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />

<add path="*.sd" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />

<add path="*.cd" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />

<add path="*.adprototype" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />

<add path="*.lddprototype" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />

<add path="*.sdm" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />

<add path="*.sdmDocument" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />

<add path="*.mdf" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />

<add path="*.ldf" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />

<add path="*.exclude" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />

<add path="*.refresh" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />

<add path="*" verb="GET,HEAD,POST" type="System.Web.DefaultHttpHandler" validate="True" />

<add path="*" verb="*" type="System.Web.HttpMethodNotAllowedHandler" validate="True" />

</httpHandlers>

<httpModules>

<clear/>

<add name="OutputCache" type="System.Web.Caching.OutputCacheModule" />

<add name="Session" type="System.Web.SessionState.SessionStateModule" />

<add name="WindowsAuthentication" type="System.Web.Security.WindowsAuthenticationModule" />

<add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule" />

<add name="PassportAuthentication" type="System.Web.Security.PassportAuthenticationModule" />

<add name="RoleManager" type="System.Web.Security.RoleManagerModule" />

<add name="UrlAuthorization" type="System.Web.Security.UrlAuthorizationModule" />

<add name="FileAuthorization" type="System.Web.Security.FileAuthorizationModule" />

<add name="AnonymousIdentification" type="System.Web.Security.AnonymousIdentificationModule" />

<add name="Profile" type="System.Web.Profile.ProfileModule" />

<add name="ErrorHandlerModule" type="System.Web.Mobile.ErrorHandlerModule, System.Web.Mobile, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />

</httpModules>

</system.web>

</configuration>

 
New Post
5/25/2006 9:19 AM
 
Instead of clearing and adding the defaults, a simpler approach would be to simply remove the DNN-specified items that aren't necessary.

Michael Flanakin | Microsoft Consulting Services
www.michaelflanakin.com
 
New Post
5/26/2006 9:20 AM
 
How do you do a clear on a specific item? I thought <clear /> could only be used to clear everything in a category.
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...How to deploy DNN to website root and separate ASP.NET app to V.Dir on same siteHow to deploy DNN to website root and separate ASP.NET app to V.Dir on same site


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out