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 ...Portal alias not workingPortal alias not working
Previous
 
Next
New Post
1/20/2006 6:04 PM
 
I have installed 3.2.1 and cannot get the portal alias to work despite following the instructions. Have I misunderstood something? Here is my configuration.

Installed at www.myhost.com/dnn which works fine.
Have pointed www.mydomain.com to resolve to /dnn directory on my host
Have added the 2 aliases www.mydomain.com & mydomain.com to the Portal aliases
Have cleared the cache at Host>Host Settings>Advanced settings>Performance Setting

Every time I try to load the portal using www.mydomain.com I get the following error

Server Error in '/' Application.

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
DotNetNuke.Framework.Reflection.CreateObjectNotCached(String ObjectProviderType) +29
DotNetNuke.Services.Cache.CachingProvider.CreateProvider() +11
DotNetNuke.Services.Cache.CachingProvider..cctor() +15

[TypeInitializationException: The type initializer for "DotNetNuke.Services.Cache.CachingProvider" threw an exception.]
DotNetNuke.Services.Cache.CachingProvider.Instance() +0
DotNetNuke.Entities.Host.HostSettings.GetHostSettings() +9
DotNetNuke.Services.Exceptions.Exceptions.ProcessPageLoadException(Exception exc, String URL) +36
DotNetNuke.Framework.PageBase.Page_Error(Object Source, EventArgs e) +368
System.Web.UI.TemplateControl.OnError(EventArgs e) +109
System.Web.UI.Page.HandleError(Exception e) +68
System.Web.UI.Page.ProcessRequestMain() +2100
System.Web.UI.Page.ProcessRequest() +218
System.Web.UI.Page.ProcessRequest(HttpContext context) +18
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +179
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87


Any ideas where I am going wrong?
 
New Post
1/21/2006 9:25 AM
 

I haven't solved the original problem above but have got a workaround. My host is 1and1.co.uk and I have just discovered that  you can have multiple domains on your account and use virtual directories, but if you have multiple .NET applications things get screwed up which is what is causing the above error.

I have made a workaround which uses redirects based upon the requested url placed in the root dir, code below for those that are interested
private void Page_Load(object sender, System.EventArgs e)
   {
      if (Request.Url.Host.ToLower().IndexOf("myfirstdomian.com") >= 0) 
   {
      Response.Redirect("/first");
      Response.End();
   }
      else if (Request.Url.Host.ToLower().IndexOf("myseconddomain.com") >= 0)
   {
      Response.Redirect("/second");
      Response.End();
   }
   else
   {
      Response.Redirect("/first");
      Response.End();
   }
}

By pointing each domain to the root the redirects work as follows

www.myfirstdomain.com displays in the browser www.myfirstdomain.com/first

www.myseconddomain.com displays in the browser s3432473.myhost.com/second instead of www.myseconddomain.com/second

If anyone knows how to configure this differently I would be grateful for the help. Otherwise does anyone know of a good different hosting provider who doesn't have this screwy setup for .NET applications?

 
New Post
1/22/2006 12:25 AM
 
Hey Spid,
I'm not quite sure about your scenerio, so I'm probobally going to over-explain a little bit.  :)

1) Install DNN into its own directory.
2)  Create a Virtual Directory (application) for the site
3)  (set up all the db stuff - you already know how to do that)
4)  browse to Site.com/{Application}

You do always have to have dnn in an app directory, however, some host require that it run from a child directory (site.com/app) instead of a root directory (site.com).  With Alaises, you'll want to give it the application URL that you want to be able to access your site from.

If you're looking for a good host, I would 100% recommend www.PowerDNN.com .  They really know DNN inside and out (they're platinum DNN benefactors) and their tech support is virtually always free as well.  They'll set you up and everything for nothing.  Also, they're in the process of setting up a streaming video server for hosting and DNN questions.  Its really pretty sweet.

 
New Post
1/22/2006 12:36 AM
 
Are both of the applications you are trying to run DNN?  By that I mean are you trying to run two different sites both using DNN?

Paul Davis
 
New Post
1/22/2006 1:30 PM
 
Mr.MobileNow: The setup I have is running from a child directory. What I have discovered while changing things about is that when 2 different web apps are installed, 1and1's IIS gets screwed up and doesn't seem to know which page to serve and throws an exception. e.g. both have a Default.aspx within each seperate child dir.

Also had a look at PowerDNN but I'm looking for more than just a  host for DNN (See  below)

Adeian: It isn't both DNN. I develop my own .NET web apps and have just moved to 1and1 beacuse it seemed a good deal for the features (50Gb monthly traffic & 200 external domains & 1500 imap/pop3 email being just a few for £13.59/month = $24). Have been transferring domains across one by one and have now found this problem which means it wasn't such a good deal after all if you intend to run multiple .NET apps. Doesn't make much sense to me but they must have some weird IIS configuration.

I am going to phone their tech support once more and if I don't get any joy I will continue my search for a better UK based hosting provider as I am unhappy with 1and1's 20+ minute wait before getting through to tech support as well.
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Portal alias not workingPortal alias not working


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