Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AspDotNetStoreFront
  Ads  
r2i.ntegrated
 


  Sponsors  

Meet Our Sponsors

Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Configure It! (...  Adding a virtual directory to DNN
Previous Previous
 
Next Next
New Post 1/23/2008 8:09 AM
Unresolved
User is offline atatum
2 posts
10th Ranked


Adding a virtual directory to DNN 

My company wants to have a page on our corporate site that is totally different from the look and feel on other pages. I tried creating a virtual directory named "test" and gave it read access, etc. A screenshot of the properties is at the end.

After I did that I created a Default.aspx page that is extremely basic (just is a Hello World, html at bottom).

Once I did that, I went to the page... and it then immediately redirected me to the site's homepage. I really, really need to get past this road block and I'm hoping there's a way. Any ideas?

Thanks!
Andrew

Default.aspx code

<%@ Page Language="C#" %>

<html>
<head>
<title>ASP.NET Hello World</title>
</head>
<body bgcolor="#FFFFFF">

<p><%= "Hello World!" %></p>

</body>
</html>

 

 
New Post 1/23/2008 9:07 AM
User is offline Brian Dukes
486 posts
www.engagesoftware.com
8th Ranked


Re: Adding a virtual directory to DNN 

I believe your issue is that DNN's HttpModule is intercepting your call, and redirecting to the main site.  You will need to clear DNN's HttpModules in your virtual directory's web.config.  It is the same procedure as setting up a virtual directory for a web service, as this blog post from Chris Hammond talks about.

Let me know if that works for you,


Brian Dukes
Engage Software
St. Louis, MO
314.966.4000

The leading provider of DotNetNuke support, training and custom module development.
 
New Post 1/23/2008 9:08 AM
User is offline atatum
2 posts
10th Ranked


Re: Adding a virtual directory to DNN 

I was actually able to figure it out based on some older threads...

  1. Create application for the virtual directory
  2. In the web.config file there's gonna be a number of changes...

Within <pages>...

        <namespaces>
          <remove namespace="DotNetNuke.Services.Localization" />
          <remove namespace="DotNetNuke.Entities.Users" />
          <remove namespace="DotNetNuke" />
          <remove namespace="DotNetNuke.Common" />
          <remove namespace="DotNetNuke.Data" />
          <remove namespace="DotNetNuke.Framework" />
          <remove namespace="DotNetNuke.Modules" />
          <remove namespace="DotNetNuke.Security" />
          <remove namespace="DotNetNuke.Services" />
          <remove namespace="DotNetNuke.UI" />
          <remove namespace="DotNetNuke.Entities.Portals" />
          <remove namespace="DotNetNuke.Common.Utilities" />
          <remove namespace="DotNetNuke.Services.Exceptions" />
          <remove namespace="DotNetNuke.Entities.Tabs" />
        </namespaces>

This is what my <httpHandlers> looks like:

      <httpHandlers>
        <remove verb="*" path="*.asmx"/>
        <remove verb="*" path="*.captcha.aspx"/>
        <remove verb="*" path="LinkClick.aspx"/>
        <remove verb="*" path="RSS.aspx"/>

        <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
      </httpHandlers>

This is what my <httpModules> looks like:

      <httpModules>
        <remove name="UrlRewrite" />
        <remove name="Exception" />
        <remove name="UsersOnline" />
        <remove name="DNNMembership" />
        <remove name="Personalization" />
        <remove name="Compression"/>
        <remove name="RequestFilter"/>
      </httpModules>

After those changes, my page was able to work flawlessly.

 
New Post 4/10/2008 1:23 PM
User is offline vijaymoharle
11 posts
10th Ranked


Re: Adding a virtual directory to DNN 

Hi ,

This is really  interesting. Are you able to run Both applications ? i mean DNN  portal as well as the Page  that you  have added after  making changes in the Web.Cofig file.

Could you please  be more  detail on this?  Me  too trying to call custom .aspx  pages  inside DNN portal but not  sure  about how to proceed further as i  am new to DNN

Any help will be appreciated

Thanks

Vijay

 

 

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Configure It! (...  Adding a virtual directory to DNN
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


WDK Solutions
Quality modules for the DotNetNuke community. Check out our 'wild' modules!
wdkns.com
UK - DotNetNuke providers
UK providers of DNN module development and skin package design. Oxford Information Labs provides cost-effective solutions for businesses and organisations specialising in Skin design and bespoke module development.
www.oxil.co.uk
TronixSoft
Hosting for local businesses that want more from their websites.
www.TronixSoft.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP