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 ...Why is DNN difficult to install?Why is DNN difficult to install?
Previous
 
Next
New Post
1/29/2007 12:09 PM
 

ok...now im  venting and i appologize upfront but i have have been trying to install dnn on our dedicated server for a few days now and its very frustrating, especially when no one replies to the fourm posts. I love the dnn framework but the install is such that its a real turn-off.

Here what i got, Win 2003 server, sql 2000 IIS 6

It performed the install correctly but i get this everytime i try to go to the site???  I have checked all permissions and ect......

I finally got abit futher but not its giving me a new error that leads me no where:

  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.Entities.Portals.PortalSettings.GetPortalSettings(Int32 TabId, PortalAliasInfo objPortalAliasInfo) +91
   DotNetNuke.Entities.Portals.PortalSettings..ctor(Int32 tabId, PortalAliasInfo objPortalAliasInfo) +83
   DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) +5773
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64

Server Error in '/' Application.

Object reference not set to an instance of an object.

 


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210

 
New Post
1/29/2007 2:59 PM
 

ok....i finally got it installed but this is no excuse to close this case...cause this is not the 1st time i've had issues and i'd love toget ansers for others too....this is such an great web app that it shouldnt require a hardcore developer to install

i basicaly removed all.....and tried a basic install. I did use the installer but only after i manually set up the iis and sql db...and all the permissions. so honestly i dont know what it was other then it may have been scrad that i'd shut the server down LOL

 
New Post
1/29/2007 3:09 PM
 

I'm by no means any kind of expert.

But it appears from the log you provided that when you are doing your install it failed to create a default portal, and could not find anything in Portalalias table in the database.

 
New Post
1/29/2007 10:44 PM
 

I think this is where DNN could really use some improvement.  I've been a developer for... uh... 20 years now and have been developing in .Net since well.... .Net was in beta!  Sheesh, am I dating myself here or what?? :)  Ok..enough of the bragging...(And I'm still developing because I choose to.. Never wanted to be a manager and go to the "dark side").

If you look at the forums, you will see post after post all having to do with installation or upgrade problems.  Granted, some of these are because of mistakes made by the individual doing the install, but remember, DNN let them make the mistakes. The user didn't purposely "mess up their connection string" just for the fun of it. The whole notion of a "copy files from here to there" seems a little archaic to say the least.  And having a newbie mess with a web.config file..well.. that's a recipe for disaster. 

But I think there are some things DNN should do to "help" this issue.  I don't think they can solve it but I think they can make it less frustrating on those who are not versed in .Net architecture or installation.

  1. I would think I nice little wizard you could run on your local machine that prompts the user for their connection settings in an "MSI-like" interface, then writes out a web.config file with the connection settings, (Connection Strings...can they be any more cryptic to a non-techie?  Nuff said.) http modules, provider settings, trust levels, object qualifiers, etc.. that they chose as they walked through the wizard would help the situation somewhat.  The wizard would write out a "deployment package (a.k.a. zip file)" with all of the DNN Code needed, the appropriate directories, etc..that you can copy to your host and unzip. 
  2. Hitting the default URL to launch an upgrade is kind of dangerous IMHO.  It should be a hidden URL that you type into your address bar that actually launches the upgrade when ready.  I often wonder after I finally ftp and extract all of the 11,000 files and then fix up my web.config on my server if one of my website users is running the upgrade because they hit the website before I did??  You guys did such a great job with installing modules via the module definitions page, it seems that same paradigm could be used for doing an upgrade or installation?
  3. Speaking of 11,000 files.  What drives me crazy is a simple minor version upgrade.  I don't want to copy the whole installation up to my server and have to reset all of my permissions on my folders (because my host provider doesn't have a good tool) to perform a simple minor version upgrade.  Can't we also have an "upgrade package" that contains ONLY the modified ascx files, dll's, and vb files, and sql scripts necessary to do the upgrade instead of the 11K files that make up DNN?  This would be like a Service Pack from Microsoft replacing EVERY dll, ocx, exe regardless of it being changed within the service pack.  No one would stand for that as it would be like essentially re-installing windows for a simple security patch to IE. 
  4. It seems that file permissions are also a re-occurring issue.  The features.config, or siteurls.config or compression.config don't seem to get copied from the config folder to the root because of the way certain hosts have things set. And the code subdirectories don't always get written to the web.config file as .Net 2.0 has a problem with accessing a higher level directory even though it's in the same app domain.  Maybe the installation should just have those in the root to begin with?

And no offense core team, but your error trapping is..well horrendous.  I've modified the source quite a bit and I've poked around a bit.  I see no checks for null parameters which always lead to the dreaded (Object reference not set to an instance of an object).  I constantly remind my team that a simple check and a clearly written error message can solve hours (maybe even days) and thousands of dollars in debugging time.  Add that up per bug and you come up with a lot of bucks.  Just because you think the parameter will NEVER be null, doesn't mean it won't be.  :) 

Either way, I encourage the core team to look at the forums.  What percentage of posts start with "Help..Installation error" or "Help.. Upgrade error"...  Now, you can "blame" it on a "stupid user" but it seems unlikely that so many would be having the same problems if the installation/upgrade paths were uh... "idiot proof"

And I know what you all are thinking. Quit whining and become part of the solution..  All I can say to that is Touché :)

 


Version: DNN 4.4.1
Hosting Provider: 1and1
RAISE
 
New Post
1/29/2007 11:54 PM
 
  1. See Antonio's blog where he lays out the roadmap for the Installer project.
  2. We actually didn't make it a hidden URL because it makes it hard for users to find.  However, you can disable this feature in the web.config.  The Installer should resolve setting many of these values for you the first time.
  3. You are absolutely correct.  Unfortunately we do not know what version of DotNetNuke someone is upgrading from.  Therefore, which files should we include?  When Microsoft releases a new version of Windows, it will not upgrade every version of Windows ever created.  It only upgrades from one version back.  Fortunately/Unfortunately we release new versions so often that we cannot possibly enforce that.  We still have many sites that are still running 2.x or even 3.x.
  4. We certainly need to do a better job here of catching/detecting errors and providing graceful error handling that would help a user correct the problem.

Frank,
  We don't mind a little well placed CONSTRUCTIVE criticism.  I believe your comments fall well within that definition.  We are working on the problem and are painfully aware of the issues.  So please keeping plugging away with your DNN installs, help new users in the forums when you can, and keep providing feedback on problems you encounter and how you think we can improve DNN.  2007 is going to be a very exciting year for DNN.  There is a lot going on behind the scenes that will really improve DNN 100% over the coming year and will allow us to devote more resources to fixing these problems and many others.


Joe Brinkman
DNN Corp.
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Why is DNN difficult to install?Why is DNN difficult to install?


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