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  |  

$4.95 Windows Hosting at Webhost4life.com
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
 


  Sponsors  

Meet Our Sponsors

eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Configure It! (...  Adding a virtual directory to DNN
Previous Previous
 
Next Next
New Post 1/23/2008 7: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 8:07 AM
User is offline Brian Dukes
359 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 8: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 12: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.

 


EMAS Pro
Strategic Enrollment Management Software for Higher Education Recruitment, Retention and Financial Aid
www.emaspro.com
Subzero Solutions
Dutch / English DotNetNuke consultancy services. Custom module development in any version. Complete application integration. Small business portal hosting. Your ideas our innovation - Your success our motivation. K.v.k Amsterdam: 34236342
www.subzero-solutions.net
Hosting for DotNetNuke
SiteGround.com is the best place to host your DotNetNuke website! Expert DotNetNuke support, reliable servers, low price!
www.SiteGround.com

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