Archived blog with a focus on DotNetNuke news, tips and tricks, DNN SEO, and insights and opinions about the DNN community at large.

First time here? You may want to check out the blog archive, subscribe to the RSS feed, sign up for free email updates, or follow me on Twitter. Thanks for visiting!

A Newbie’s Guide to Installing DotNetNuke 

Welcome to my first contribution to the Seablick Consulting blog! When Tom Kraak first asked me to write a “how-to style” blog post, I was thinking to myself, “what can I offer in regards to DotNetNuke? I’m a newbie!” Then I began to realize how much I have learned in a very short amount of time. I also realized that I am looking at DNN from a different point of view than someone with years of experience. So I may (and will) ask a lot of questions and I DO like feedback. One thing that I was very impressed with right from the beginning was the community’s assistance and reassurance of my success. So for my first post, I decided to detail my experience of learning how to do a local DNN install.

Installation is murky when you are new. As a developer, I like to know what is going on, where it’s going on and who it’s going on with. At first, I didn’t understand how the database “fit” into the architecture of a DNN site. Once I had a clean install up and running, I was able to go into SQL Server Management Studio (or the like) and actually look at the tables, select on them and see what the install had created. That’s when I began to get a bigger picture of how DNN works.

My local setup consists of a Windows XP Pro machine running IIS 5.1, SQL Server 2005, and the .NET 2.0 Framework.

There are 5 basic steps to a clean install. I will cover each individually in more detail below.

  1. Download the .zip file from dotnetnuke.com.
  2. Create the database and a SQL Server login
  3. Create the website folder and unzip the downloaded .zip file.
  4. Create virtual directory in IIS and configure the website
  5. Run the DNN install wizard in your favorite web browser.

1. Download the .zip file from dotnetnuke.com.

After you have logged into dotnetnuke.com, navigate to “Downloads”, select the desired file and save to your C: drive (for our example, I selected and downloaded the 4.5.3 INSTALL (DotNetNuke_04_05_03_Install.zip.)

2. Create the Database, SQL Server Login, and Database User

There are two things you need to do in SQL Server Management Studio. First, create a database. Second, create the SQL Server login for that very same database. Make sure that your database server runs in “mixed authentication mode” (SQL Server and Windows Authentication mode” is checked.) You can find this setting by right-clicking on your server (first node in the SQL Server Management Studio tree on the left), then Properties | Security.

Create the Database

  • Open SQL Server Management Studio
  • Select your desired server from the drop-down list and connect
  • Expand the tree on the left-hand side so you can see “Databases”
  • Right-click on "Databases"
  • Select “New Database”
  • In the "Database Name" field enter a name for your database and click OK. For this example, I entered “DNN453”
  • You now have an empty database called DNN453

Creating a login for your database:

  • Expand the Security node of your server
  • Right-click on Logins
  • Select “New Login”
  • Enter your desired login name. You must remember this login name and password as we will use it later. For my purposes here, I’ve entered “DNN453Login” (without the quotes) as my login name.
  • Select “SQL Server Authentication” and enter a password. I entered “test” as my password.
  • Uncheck “Enforce Password expiration/User must change password at next login”
  • Click “User Mapping” on the left
  • Select/Check the new database you created in the top grid “Users mapped to this login:”
  • Select/Check db_owner in the bottom list “Database role membership for: “
  • Click OK
  • Now look in the Security node under your database (DNN453) and you will see a newly created database user listed, meaning we also created a new database user by mapping our SQL Server login to our database.

The database portion is now complete.

Create the site folder and unzip the downloaded .zip file.

In this step, we create a folder and unzip the DNN install .zip file to this directory. You can put it directly under C:\inetpub\wwwroot or C:\foldername. For this example, I used C:\DNN453.

  • In Windows Explorer, create a new folder called DNN453 on your C: drive. This will be the folder where your website files will live.
  • Extract (unzip) the DotNetNuke_04_05_03_Install.zip file that you downloaded earlier into your desired folder (C:\DNN453 in our example)
  • After extraction is complete, the folder contains a web.config file that needs to be modified. Remember how I stated in the beginning that DotNetNuke and the database “fit” together? We must now tell DotNetNuke which database our website is using. We do this in the web.config file. The default web.config file even gives us “samples” of connection string entries so that we only need to modify these based on our database setup.
  • Open the web.config file and find the <connectionStrings> tag. You can use Notepad, Visual Studio or any other text editor to accomplish this. There you see two entries of connection string statements – one for SQL Server Express and one for SQL Server 2005. By default, DNN uses SQL Server Express. The connection string for SQL Server 2005 is commented out. For our example (we are using SQL Server 2005), we must reverse this and comment out the SQL Server Express statement and “uncomment” the SQL Server 2005 statement. After that, we need to enter the correct values for server, database, uid and pwd according to the database we set up above. In the below screenshot, XP1234 is my machine/my local SQL Server (please note, if you are using server instances, it is entered as: XP1234\MYINSTANCE where MYINSTANCE is the name of the SQL Server instance). DNN453 is the database name (as specified in step 2.) Enter "DNN453Login" and “test” for uid and pwd, respectively.
  • We must also modify the key for the “SiteSqlServer” under the <appSettings> tag. Again, SQL Server Express is the default, with SQL Server 2005 commented out. We must comment out SQL Server Express and uncomment SQL Server 2005 and again, enter the correct values for server, database, uid and pwd for our database.
  • Save and close the web.config file
  • Lastly, you must change the access permissions of your folder. The Windows account that is used to access your site must have full control over your DNN root folder. To set this, right-click on the root folder of your site (C:\DNN453). Click Sharing and Security. Click the Security tab. If you do not see the Security tab, you must “turn off” simple file sharing for the folder. To do this, select the root folder (C:\DNN453) in Windows Explorer. Click Tools | Folder Options. Select the View tab. Uncheck “Use simple file sharing.” Click OK. You can now right-click the folder and access the Security tab.
  • On the Security tab, you will see a list of users who have access to your folder. Windows XP uses the ASPNET account and Windows 2003 uses the NETWORK SERVICE account. Add the account and give it full control permissions.

4. IIS – create virtual directory and set-up

Now that the database and file system are in place, we can create the virtual directory in IIS.

  • Open IIS and expand the tree to see “Default Web Site”. (You can find IIS in Start | Control Panel | Administrative Tools.)
  • Expand the "Default Web Site" node.
  • If you have placed your DNN root folder under C:\inetpub\wwwroot, you will already see your website and can bypass this step. If not, you will need to add a virtual directory.
  • Right-click on "Default Web Site"
  • Click New | Virtual Directory
  • Enter an alias – "DNN453" will do
  • Click Next and enter/browse to the path to the root folder of your website.
  • Click Next and leave access permissions as is (should be set to Read/Run Scripts.)
  • Click Next and Finish

Now that a virtual directory is in place, you’ll need to modify its properties.

  • Click on the "Documents" tab
  • An entry for “default.aspx” needs to be added. Add default.aspx and move it to the top of the default documents list.
  • Click on the "Directory Security" tab
  • In the “Anonymous access and authentication control” group box, click "Edit"
  • Make sure that “Anonymous Access” is checked as well as “Integrated Windows authentication”
  • Next, click on the "ASP.NET" tab and make sure that “2.0.50727” is select for the ASP.NET version
  • Click OK to save your changes

5. Run the DNN install wizard in your favorite web browser to complete the installation process.

The very last step is to initiate the DNN install via a web browser. The install wizard takes over. In doing so, it creates tables and stored procedures in your database and adds the needed data rows to these tables to house your site. You will be prompted to test your folder’s permissions, test the database connection and lastly, enter your desired user name and password for your host and admin user. Write these down!

  • Open your web browser of choice and navigate to http://localhost/DNN453 (replace DNN453 with the name of your IIS virtual directory)
  • You will be guided through an install wizard. Test your folder permissions when requested.
  • Verify your database connection when asked.
  • You will see the wizard running the script for each version.
  • On successful completion, click on “Access your Portal” and your new DNN-based website appears.

I hope that this tutorial offers DNN newcomers a better understanding of the DotNetNuke installation process on Windows XP Pro and SQL Server 2005.

Lastly, I would like to thank Tom for giving me this opportunity and for his patience and guidance. I’m hoping for a bright future with DNN.

Did I miss something or got something wrong? If so, I want to hear about it. Please leave your comments below as feedback is much appreciated!




Comments

mq mq says:

This installation guide was very helpful. I had been struggling the whole weekend to get dnn installed even though I had the DotNetNuke 4 book and reading various forums. This finally did it for me. THANK YOU!

MaryV MaryV says:

I'm so very glad it helped! ~ Mary

Exiton Exiton says:

I'd hate to spoil your enthusiasm and everything, but since you write this article for the newbies you should remember that newbie wouldn't know what IIS is. Also IIS is never present in any version of WinXP by default.

So the first order of business is to tell how to install IIS.

You start with the creation of the database, but neigther MSSQL Express, nor Management Studio would run without .NET Framework. Obviously you also have to instruct the user to install .NET Framework (especially considering the fact that .NET Framework is not their by default eigther).

But .NET Framework configures IIS during install and it would be improper to install it before IIS.

So we have it: install IIS, then download and install .NET Framework.

MSSQL Express and Management Studio don't fall from the sky eigther, and your typical newbie wouldn't know what it is, where to get it and how to configure it. You have to instruct him how to acomplish this.

Other than that everything is quite right. :)

Exiton Exiton says:

Typo. "...is not their by default..." should be "...is not there by default..."

MaryV MaryV says:

Thanks Exiton for your comments and honesty - my intention for this article was only on installing and it was geared toward developer's beginning in dnn with a programming base of knowledge. Maybe I should have put a beginning footnote of what is already assumed in the article. please keep the comments coming!

MaryV

Exiton Exiton says:

Frankly, I can't imagine ASP.NET developer that would not know how to install ASP.NET application. So when I see "Newbie’s Guide to Installing DotNetNuke" I just assume we are talking about a _complete_ newbie here. :)

MaryV MaryV says:

...maybe i should be calling these "A Newbie-Developer's Guide..."! :)

Tom Kraak Tom Kraak says:

Thanks to all for the comments.

Part of it was my fault as I picked the blog post title. I'll be more "careful" down the road.

GRR GRR says:

I followed your instruction to a t and I get this error when try to run:
"Server Application Unavailable - The web application you are attempting to access on this web server is unavailable. Please hit the "Refresh" button to try again..."

Am I missing something? Are you able to help?

Tom Kraak Tom Kraak says:

Just to be sure ... are you attempting a local install or a remote install at a hosting company?

MaryV MaryV says:

Is this still a problem? sorry - been away - it sounds like you did not extract the entire install?? there are subfolders under the DotNetNuke (or in your case dnn_sfcbsa).

Tom Kraak Tom Kraak says:

Thanks for checking in Mary.

We've since resolved the problem, which was due to issues with WinZip.

RG RG says:

One item of note you left out. If your NOT creating a virtual directory (ie: putting DNN in your inetpub folder) the user needs when setting up IIs needs to make sure he/she clicks "Create" next to "application name" and that script source is checked.

John John says:

I'm going to be installing remotely in a few days. I noticed you specifically state "local" install... is there a big difference?

Tom Kraak Tom Kraak says:

Yes John, there are a few differences.

Who will be hosting your site? Is it "shared hosting," or will you have more control over the hosting environement?

John John says:

Hi Tom, thanks for the reply. It's hosted by Go Daddy. SQL2005. Not sure how much control I'll have as this is the first time I've tried to set a database up. I've built and managed a DNN site for 5 years, but always had an IT guy to do the SQL, IIS, installation, etc... all the techie stuff. This time I get to eat the whole enchilada.

Tom Kraak Tom Kraak says:

I do not recommend GoDaddy for DNN hosting, primarily because they have no clue about DNN.

You'll also have very little control especially over the database unless you are getting a dedicated box from them.

John John says:

Hmmmm. That's unfortunate. However, that's what I've got to work with for the time being. Hopefully I'll be able to figure it out. Thanks for the heads-up though.

Muthusree Muthusree says:

Nice article. Well,I have installed DNN in server. So localhost/DotNetNuke works.. But I couldn't access it from another computer.

Any Idea?

Déclic Vidéo FX Déclic Vidéo FX says:

Hello,

I have strictly followed the tutorial, but all my images are references as:
DNN453/Portals/0/images/myimage.gif
instead of
/Portals/0/images/myimage.gif

Where is my mistake ??? (I would like to backup my live website and use it in local to synchronise live and local, but unfortunately, I have this problem of path which is not correct and always show the .../"folder-name"/Portals/...
Why ??? I certainly make something wrong in the IIS, but I do not see where...
:-(

DV

Tom Kraak Tom Kraak says:

DV - I assume you are running XP locally as opposed to Win 2000/2003 Server. If so, that's where the issue is. IIS on XP won't allow you to create multiple websites, which is why you have to go the virtual directory route which then show up as a "folder" in your paths.

Clear?

Exiton Exiton says:

You should have copied DNN scripts into the local site's root folder, so that the site could be opened by calling "localhost".

SEO Company Canada SEO Company Canada says:

Great tutorial, I've been meaning to play with DNN for a while now!

meenu meenu says:

Dear friend now i am thinking you are my god .because i am struggling with this installation from last 1 week.my goodness today i got this link and tried everything is working properly.thanks a lot.only one problem i found that in my folder option i have no any aspnet user account .i added this using http://kbalertz.com/919075/Error-message-request-Application.aspx link
anyway thanks a lot
bay
meenakshi

Tom Kraak Tom Kraak says:

Excellent ... I'm glad you found it helpful.

MJZ MJZ says:

I'm doing this install with SBS 2003 R2 Premium and I've encountered a few issues:
1. I cannot simply create a directory DNN under inetpub/wwwroot. I get the error about the virtual directory not being configured as a separate application. When I create a virtual directory, I need to go to the VirtualDirectorty tab and click on the "Create" button next to the application name section.
2. Once I do that, I can get to the dnn install page. Currently, I'm stuck at the configure database. I get login failed because the user is not associated with a trusted SQL Server connection. I've verified that the user/password are identical... any ideas?

MJZ MJZ says:

Ok, I fixed (2) by right-clicking on the machine name in the management studio, bringing up properties, selecting security, checking Sql Server and Windows Authentication (it was Windows only) and restarting SQL.

mark richardson mark richardson says:

Thanks for your dnn instructions (they are clearer than most).

I have installed DNN before on a development server, last year on SQL express , windows xp (it took ages and not exactly sure how I got it to work in the end, just kept trying it over and over).

Anyway, now I need to install it again on a live server. (on SQL Server express, windows 2000).
This time I would rather know how to get it working rather than trying the sheer mass install bombardment method and hoping that eventually 1 install would be successful.


I have followed your instructions:

1. Download the .zip file from dotnetnuke.com
2. Create the Database, SQL Server Login, and Database User
3. Create the site folder and unzip the downloaded .zip file. (also edit web config)
4. IIS – create virtual directory and set-up

I am stuck on this bit:

5. Run the DNN install wizard in your favorite web browser to complete the installation process.

The install wizard won't start. (page can't be found/doesnt exist thingy error)

* I have also added ASPNET in the security tab (in properties on the dnn website folder)

any ideas?

regards,
mark


Tom Kraak Tom Kraak says:

Thanks Mark.

What URL are you using in the browser to start the install wizard?

Do you have DNS in place or are you trying to get this up and running via localhost from the server itself?

Also, IIS on Windows 2000 supports multiple websites, so no need to deal with virtual directories.

mark richardson mark richardson says:

1. 'URL to start the install wizard'

I don't think this is the problem - tried all sorts:
//localhost/myIISname
//localhost/myIISname/install/installwizard.aspx
myServer/myIISname/
myServer/myIISname/install/installwizard.aspx

2. ... I am trying from the actual server itself.

3. 'Windows 2000 supports multiple websites' - oh, had no idea. what do you recommend instead?

thanks.

Exiton Exiton says:

You must have installed .NET before you IIS. Reinstall.

Another possibility is that you do not have "default.aspx" as your default document type. Add it by hand in the site's (or virtual directory) properties.

mark richardson mark richardson says:

thanks,

IIS was already on the server.
.NET framework was not on the server initially so this was the first thing I did (installed the .NET 2 framework ).

Then I installed SQL express.
Then SQL server management studio.

Then I followed the steps above.

(default.aspx is my default)

mark richardson mark richardson says:

further to the above...

I wonder if this problem could be related to my authentication.

In step 2 (above) it says:
'Make sure that your database server runs in “mixed authentication mode” '
When I right-click on server >> Properties >> view connection properties - it says "Windows authentication" (and so does our working installation on the development server).

I am not sure where to select this mixed mode authentication?


(When creating a login for the database,
I have selected SQL server Authentication)

alok alok says:

Nice article. Well,I have installed DNN in server. So localhost/DotNetNuke works.. But I couldn't access it from another computer.

Any Idea?

alok alok says:

I have installed DNN in my computer. So localhost/DotNetNuke works.. But I can not access it from any other computer in network like asp.net applications,which are able to be run in network by specifying the url of application's path. is there any settings to do or dotnetnuke applications are unable to be run in network..please guid me
thanx in advance



Tom Kraak Tom Kraak says:

Add the IP address of the host machine to DNN as a portal alias (xxx.xxx.xxx.xxx/DotNetNuke) and you should be able to browse to your local DNN installation from any PC on your LAN.

Leo Leo says:

Thanks for the article... It helps me a lot.

Tom Kraak Tom Kraak says:

You are very welcome Leo.

Are there other DNN related topics you would like to see covered?

Scott Scott says:

I get this error. I've installed DNN at least 5 times and cant figure this one out.

Installing Database - Version 4.4.0...Upgrading Database to Version ERROR: See C:\ARF\Providers\DataProviders\SqlDataProvider\04.04.00.log for more information...Success
undefined...Success
undefined...Success
undefined...Success
undefined...Success
undefined...Success
undefined...Success
undefined...Success
undefined...Success


Any pointers?

Tom Kraak Tom Kraak says:

Scott - there are 2 connection strings in web.config. Make sure they are both correct.

yy yy says:

scott,
I got the same error as you did. If you started from a new database when installing DNN and only have DNN object ie not other data, remove all user tables, user stored procedures, user views and user functions (leave all the system objects) and then I followed the instructions in this website and it worked for me. Very helpful website this one. Many thanks.

Luis Luis says:

I followed all steps, but when I try to login to my web site, the redirected url is something like ".../Home/tabid/36..." and show the message 404 file not found.

Tom Kraak Tom Kraak says:

Luis - make sure asp.net is enabled in IIS. Can you browse to a .html file?

sai sai says:

hi,
Can any one help me with the error
Server Error
HTTP Error 500.19 - Internal Server Error

Description: The requested page cannot be accessed because the related configuration data for the page is invalid.

Error Code: 0x80070021

Notification: BeginRequest

Module: IIS Web Core

Requested URL: http://localhost:80/DNN453

Physical Path: C:\DNN453

Logon User: Not yet determined

Logon Method: Not yet determined

Handler: Not yet determined

Config Error: This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".

Config File: \\?\C:\DNN453\web.config

Config Source:

70:
71:
72:

More Information... This error occurs when there is a problem reading the configuration file for the Web server or Web application. In some cases, the event logs may contain more information about what caused this error.
Server Version Information: Internet Information Services 7.0.

prajna karkal prajna karkal says:

Hi I get the following error can someone help me
Line 65: ''' -----------------------------------------------------------------------------
Line 66: Private Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
Line 67: If Config.GetSetting("ServerName") = "" Then
Line 68: ServerName = Server.MachineName
Line 69: Else


Source File: C:\Websites\DotNetNuke_04.08\App_Code\Global.asax.vb Line: 67

Prajna Karkal Prajna Karkal says:

what i meant is when i followed all the steps and went to the url http://localhost/DotNetNukeP I get the above mentioned error for the config object and not the server name.

Brian Brian says:

I am having a similar problem to another poster. I installed locally to an xp sp2 pc on my 2003 server domain.

How do i access the localhost site on the xp machine from another computer? I am trying to use this as a company intranet site.

Thanks, Brian

Tom Kraak Tom Kraak says:

Brian - is your DNN install running fine locally on that XP machine? If so, add the XP's IP address or host name as a DNN portal alias via Admin > Site Settings > Portal Alias (scroll way down) and you should then be able to reach DNN across your LAN.

Michael Beunckens Michael Beunckens says:

Very, very helpfull tutorial!
Worked the first time...

Thank you for clear and good instructions.

Lee Lee says:

Is it possible to set DNN up with integrated security rather than SQL security - I seem to have tried everything to no avail :(

Mattias Mattias says:

@Scott: Im sure you have solved this by now but if not i have a tip for you.

Take a look at the ObjectQualifier attribute in the SqlDataProvider key in web.config.
When i installed my site for the first time the attribute was set to "dnn_" and all my tables was named dnn_TableName.

In the upgrade package the ObjectQualifier was set to "" which didnt match my current tables in the db.

When i set the ObjectQualifier to "dnn_" in my web.config (from the upgrade package) it worked fine.

Twetee Twetee says:

This was really really helpful... I really appreciate you for writing down each and every step in a very crystal clear manner..

Thank u soooo much!!!

Tom Kraak Tom Kraak says:

Thanks, I'm glad you found it helpful.

Shane Shane says:

Hey all
Has anyone made a VMware or Virtual PC 2005/07 image with .netnuke running.......ive tried installing this so many times now im almost ready to throw my pc out the window.
If anyone has a image of this working PLEASE msg me
sicnics@hotmail.com

Jaffer Abbas Jaffer Abbas says:

Excellent guide. Worked as expected.

Thanks

Shane Small Shane Small says:

Hey all
Ive successfully got a Win 2003 SQL 2005 (non express) dotnetnuke install setup under a virtual directory and can access the pages from inside my lan....If i wish to view from outside the lan how do i do this....what changes are required

thanks all

Tom Kraak Tom Kraak says:

Shane - for one thing, you would have to configure your firewall to allow for incoming traffic on port 80. The, you will need to run DNS to map your website's internal IP address to an IP address accessible from outside your LAN. See dyndns.com or similar service.

I don't recommend any of this though as I think web hosting is in better hands with a web hosting company.

asphaltjesus asphaltjesus says:

Hi,

I ran into an odd issue setting up dotnetnuke as a local dev platform on Windows XP.

**IF** you install .net runtime BEFORE you install XP's IIS, then the .net runtime is not set up for serving anything. You'll get strange permission denied errors because the user ASPNET isn't created.

The fix that worked for me is reinstalling the .net runtime. There's the possibility that clicking on the modify button under programs will do it, but I didn't bother to test it.

asphaltjesus asphaltjesus says:

One more comment.

I completely buggered up my production host by installing "Visual Web Devloper 2008."

It seems the installer breaks the .net setup if you don't allow it to install everything and the kitchen sink. For example, if you decline to install .net 3.x, the host is configured as if .net 3.x exists anyway. This will break a functioning dotnetnuke (.net 2.x runtime) install.

Thanks for the production downtime Microsoft. Thanks a whole lot.

prasad prasad says:

Thanks for your Help
But I got a error while executing on web browser "The stored procedure 'dbo.GetPortalAliasByPortalID' doesn't exist." I spend 4 days for this installation of dnn.....Plz help me....

Tom Kraak Tom Kraak says:

Prasad - either your database objects (tables, stored procedures, etc) were never created or your db login/user does not have the proper permissions (needs to be dbo at least for the install.)

Aru..:) Aru..:) says:

I cant find the ASPNET account on my system how cai add it....
Please suggest ..
Thanks

Tom Kraak Tom Kraak says:

Aru - see if this helps: http://www.mvps.org/marksxp/WindowsXP/aspdot.php

Swathi Swathi says:

Hi Friends ,

Actually this is not a comment, i just want to have some clarification
after this installation process. I have done with my portal design on local host (on server machine it self), now i want to publish this to the users by using my IP address . How can i get it. please do reply for this

Tom Kraak Tom Kraak says:

@ Swathi - turning your local computer into a (web) server is not a good idea. Instead, you should move your DNN install to a proper web hosting provider.

Calvin Calvin says:

First and foremost, Thank you very much for taking the time to write a great guide. I tested this and it works for DNN 4.92, on SBS 2008 with SQL 2008. just had to follow your steps everything is the same.
Again Thanks so much... Just when I was about to toss DNN... You go and bring me back in.
Hobes

MaryV MaryV says:

You are most welcome! I'm glad this guide has helped so many people!

Aad van der Velden Aad van der Velden says:

Hi Guys,

Read your conversations with great interest as I have some issues too. I managed to get past the localhost/dotnetnuke issue when I try to approach DNN from any other machine (server or PC) by adding the alias but now my lay out is all messed up, no images are shown... And after I login as admin, I get the localhost/dotnetnuke page error again..

Many thanks in advance!

Aad

Tom Kraak Tom Kraak says:

@ Aad - please provide more details on what you are trying to do. Thanks.

Jeff Jeff says:

I get the error 'Page Not Found' after I click on the Register or Login from home page of my localhost website.

I have installed DNN 3 times, each time deleting all files and databases. I am on XP box with IIS 5.1 I have given all permission levels to ASPNET user.

My links on the home page, ie: login.aspx, was not working, but I finally hit refresh and I was on the Edit portion of my DNN site. Now none of the links work from the menus, like the Admin and Host. It always goes to 'Page Not Found'.

Tom Kraak Tom Kraak says:

@ Jeff - did you make sure that .net 2.0 / asp.net is properly installed and configured?

Tareq Tareq says:

This is the only 1 that worked for me :D i got lost with DNN installation for about 4 days now...

thx alot Mary

Mary Mary says:

I'm so very glad!!! :)

Chuck Chuck says:

You say, "My local setup consists of a Windows XP Pro machine running IIS 6"

How did you get IIS6 on a Windows XP Pro? I thought you can only install IIS 5.1 on it? If you can install IIS6 can you provide documentation. My XP Pro is 32bit

Thanks.

Mary Mary says:

Sorry to have taken so long to answer you, Chuck. The IIS is 5.1. I believe I may have been looking at the manager version when writing the article. I don't have access to the machine at this time to verify where I got the 6.0 from.

Thanks,
Mary

MaryV MaryV says:

Chuck,
I verified that my IIS is indeed 5.1! so sorry about this confusion!

Good catch Chuck!

Mary

Tom Kraak Tom Kraak says:

Thanks guys, the IIS version has been corrected in the post above.

Chuck Chuck says:

Thanks Mary and Tom.

Chuck Chuck says:

I was able to use these instructions using the DNN 4.9.4 INSTALL version on a WinXP Pro, IIS 5.1, SQL Server Express 2008 and ASP.Net 2.0

The only added change I had to figure out was the Step 3:
- Create the site folder and unzip the downloaded .zip file

Under the Bullet item:
On the Security tab, you will see a list of users who have access to your folder. Windows XP uses the ASPNET account and Windows 2003 uses the NETWORK SERVICE account. Add the account and give it full control permissions.

I did not have a ASPNET account for some reason, so a solution I found googling was to run:
%systemroot%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i

Thanks again

Tom Kraak Tom Kraak says:

Thanks for contributing Chuck and good luck with your DNN endeavors.

Fayeeg Fayeeg says:


Clean tutorial. Helped me to install DNN. Thanks

Jimmy Jimmy says:

I'm not able to finish the wizard install om dotnetnuke 4.5 or 5.1. When I start the installation this is all i get

Installing Database - versin 4.4.0...Success
undefined...Success
undefined...Success
undefined...Success
undefined...Success
(and it goes like that for ever and never stop, i left it for about one hour and nothing) I'm installing it on hostmysite.com

Tom Kraak Tom Kraak says:

Jimmy - this could be caused by any number of things. Did the database objects (tables, stored procs, etc) get created?

Johnny Johnny says:

Hi, Im new to DNN. I managed to setup all the configurations to run the install wizard. I am using Windows Vista with SQL 2005. I can browse to the default.aspx page. I select typical installation but then get the following error:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Invalid JSON primitive: . at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializePrimitiveObject() at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.BasicDeserialize(String input, Int32 depthLimit, JavaScriptSerializer serializer) at System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(JavaScriptSerializer serializer, String input, Type type, Int32 depthLimit) at System.Web.Script.Serialization.JavaScriptSerializer.Deserialize[T](String input) --- End of inner exception stack trace --- at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) at DotNetNuke.UI.Utilities.Reflection.InvokeGenericMethod[T](Type Type, String MethodName, Object Target, Object[] Args) at DotNetNuke.UI.Utilities.MSAJAX.Deserialize[T](String Data) at DotNetNuke.UI.Utilities.ClientAPI.GetClientVariableList(Page objPage) at DotNetNuke.UI.Utilities.ClientAPI.RegisterClientVariable(Page objPage, String strVar, String strValue, Boolean blnOverwrite) at DotNetNuke.UI.Utilities.ClientAPI.RegisterClientReference(Page objPage, ClientNamespaceReferences eRef) at DotNetNuke.UI.Utilities.ClientAPI.RegisterClientReference(Page objPage, ClientNamespaceReferences eRef) at DotNetNuke.UI.Utilities.ClientAPI.GetCallbackEventReference(Control objControl, String strArgument, String strClientCallBack, String strContext, String srtClientErrorCallBack, String strClientStatusCallBack, String strPostChildrenOfId, CallBackTypeCode eCallbackType) at DotNetNuke.UI.Utilities.ClientAPI.GetCallbackEventReference(Control objControl, String strArgument, String strClientCallBack, String strContext, String srtClientErrorCallBack, String strClientStatusCallBack, String strPostChildrenOfId) at DotNetNuke.UI.Utilities.ClientAPI.GetCallbackEventReference(Control objControl, String strArgument, String strClientCallBack, String strContext, String srtClientErrorCallBack) at DotNetNuke.Services.Install.InstallWizard.Page_Load(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Please any advice regarding this will be much appreciated.

Johnny Johnny says:

I downloaded and installed the Community version...

ivix ivix says:

How do i install the latest dotnetnuke 3.5 any new thing i have to take care of or is it same

Mary Mary says:

You mean dnn 5.1? Nothing is different that i'm aware of in regards to the installation.

Johnny Johnny says:

Can anyone help me with above mentioned issue?

Mary Mary says:

I apologize as i've never installed on Vista...not sure if anyone else out there can help?
thanks.

Cuong Cuong says:

I have the same issue, I got undefined success on the share hosting plane.

patrick o'neill patrick o'neill says:

I am new at all this & have put countless hrs on dnn 4.09 that network solutions loaded for me. Supposedly, I can start editing/adding to the skin, but I don't now how to begin. The book for dummies has only brought be to this point. Someone pls help. I haven't been able to find anything/anybody to help. Network Solutions (my host) said dnn was easy to use - yeah, sure!

Thansk anyone

Tom Kraak Tom Kraak says:

Patrick - so you have a fresh install of DNN up and running at this point, right? What would you like to accomplish next? Work on the look & feel (skin?)

Bob Kaine Bob Kaine says:

@Johnny,

Good Luck I have the same issue, installing under Windows 7.

I installed DNN 5.1.2 on Server 2008, SQL Server 2008 and it worked perfectly.

Followed the exact same procedure on Windows 7 and continuously get the "System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Invalid JSON primitive: . at " error.

I'd love to know how to solve this issue.

I want to install it on my Windows 7 box for development purposes.

Robert Robert says:

Nothing I have tried has ever worked trying to get this installed on Windows Server 2003 and IIS6. The initial setup fails with an error telling you to check the error log which contains no clue as to why the install failed. All database objects are created, but it still fails. All connections and permission tests pass as well. I can make simple ODBC connections to the empty db with my newly created SQL login so permissions and passwords work. I am thinking it is still something with IIS and some missing permission or meta setting because it does not pull the error like 404 or 500 during the initial failure. This server also has SQL Reporting Services on it. Seems like a lot of work for something that should work out of the box.....this is the community edition BTW

MaryV MaryV says:

Is this dnn 5.1.2? i actually just had this happen to me - I downloaded the new 5.1.2 install. I had my site set up under \inetpub. I ended up upgrading an old site because i didn't have time to play with it. but i had the same results - the database was fine. this sounds strange but i've had better luck with installs that i set the site up NOT under \inetpub....

Mahesh Mahesh says:

I installed DNN 5.1.4
Everything went fine and it was installed. But whn I go to the site I cant find Login.aspx and few more files.
I am running locally on Windows Vista.
Please Help.

Mary Mary says:

I'm not sure if anyone out there has any experience with 5.1.4? I've only installed as far as 5.1.2 and had no problem. I've also never installed on Vista. Can anyone else comment/help Mahesh?
thanks - Mary

does your install wizard complete when you initally browse to the site?

Tom Kraak Tom Kraak says:

@ Mahesh - you are getting an error when click on the Login link after the installation has completed?

Mahesh Mahesh says:

@Mary/Tom
I think I have some issues with the basic requirements on my system.
I installed it on my server running Windows Server 2003 and its working fine.
When I installed locally, everythng went fine.
When I clicked on Login link it showed a Page not found error.
Thanks anyways. I will try to work on the server till I can resolve issues on my local system.

Cherukuri Venkateswarlu Cherukuri Venkateswarlu says:

Very good article. It helped me alot.

Thanks.

Lou Lou says:

johnny

hey there

any luck with solving your problem, i have the same!

Cherukuri Venkateswarlu Cherukuri Venkateswarlu says:

Thanks for the article... It helps me a lot.

Denise Denise says:

I would like to know how to install dotnetnuke on Vista, is the process simular or very different.?

Another question is; how can I host my own sites?what does it involve?

Thanks.

Saro Saro says:

You have created a very useful documentation, very clear to the point. Also, as I was reading some comments, I noticed that installing DNN locally is not the same as if you have your hosting company installing on their servers. Is there any documentation that will guide people who have hosting company as their hosting company. My hosting company is GoDaddy, yes, I read couple of comments up, that GoDaddy is not a smart choice, but I am stuck with it. Also, if possible, can we see some article regarding installation on hosting companies such as GoDaddy has? And, who would you suggest we should use as DNN hosting? I noticed that DNN suggests we should use GoDaddy as well as couple of others they have in their list of choice.
Thanks - Saro...

Saro Saro says:

Oops, I forgot to actually say what kind of error message I receive "Server Error - 500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed."
Hopefully this will clear some questions, Yes, I created a blank DB and linked to the web.conf both places...

Tom Kraak Tom Kraak says:

@ Saro - as you have already found out, GoDaddy is a poor choice for DNN hosting. Like many other hosting companies, GoDaddy offers Windows hosting, but they have no clue about DNN itself.

Hosting companies such as PowerDNN that specialize in DNN hosting are your best bet.

As for getting DNN to work on GoDaddy, check out the tutorial(s) on mynetnuke.com.

Richard Richard says:

Hi Tom,
Thanks for all you write about regarding DNN. I am in a little bit of a pickle. I need to have dev.company.com and www.company.com and company.com on the same IP. Following your lead, I was able to create a host header by selecting the default web site, clicking on bidings and adding the appropriate entries to the correct IP address assigned to the default web site. I am in win2K8, SQL 2K8 express, and IIS7.

I added new parent portals by logging in as host, and clicking on portal -> new portal, and filling in the blanks.

The main site located at 209.87.XXX.YYY/dotnetnuke appears fine, right out of the box. But the second and third portal dev.company.com and www.company.com and company.com only give me the IIS7 default screen.

Is this because there is no content there? DNS resolves to the IP of the default web site, as instructed. What am I missing?

Hope oyu can help.

Aad Aad says:

Hi Richard,

Sounds a lot like what I was struggling with recently. Did you put the DNN installation files by chance in c:\dotnetnuke? Try setting the default website's fysical folder to c:\DotNetNuke (where c:\ is my assumption, change to where you put the installation files?) You will do this under basic settings in IIS. Once I changed the fysical path I could add all the portals I wanted and they worked like a charm. Try renaming the iisstart.htm to _iisstart.htm, and you will prob get a 403 error because no default document is left. Then you know the added portal is looking at c:\inetpub\wwwroot for the DNN start page of your new portal..

Good luck, hope this rambling helps (is still rather early here)

Aad

Richard Richard says:

THe installation was done in the 'auto' fashion using the prescribed parameters from DNN. The site files are in C:\inetpub\wwwroot\dotnetnuke, which is where I would expect to see them.

Saro Saro says:

Hello everyone,

Tom - I took your advice and went to the sites (blogs and forums) that you have sent me the link to and read and re-read the contents in the suggested installation page. I have to say, I made it work; However, it was not easy to figure it out since this is not my strongest suites. Here we go:
OK EVERYONE:::

1. For GoDaddy clients/customers if you follow this instructions, I believe that you will make it work. After 3 days of struggling from one way to another and I managed to make it work.
2. Download the latest DNN version (zip file). In my case it was 5.2...
3. Unzip the file locally
4. Open your host by either through your hosting portal or your ftp app
5. This is the important part - DO NOT CREATE ANY FOLDERS IN YOUR SITE - I REPEAT, DO NOT, DO-DO NOT CREATE ANY FOLDER(S) IN YOUR SITE.
6. Just upload your DNN folders/files in the root.
7. Make sure you go to your database and create blank database as it states many blogs and forums
8. Here is the kick - in your web.config file open and go to your and make the changes.
8.A. --> This is what I have done. I opened my database configuration and copied the .net part of the configuration portion
8.B. --> Than I went to the web.config and pasted the configuration part to your second piece of the connectionString (the one that is commented out - uncomment the second part and past it there, and change your password (the part that has 'Your Passwor' you want to delete all that and put your actual password and leave the rest as is) - than go to the apps part and past the same thing there too. Also, make sure you do turn off the autoupdate DNN version as well)
9. I have multiple sites (websites) - 1 on Linux and 2 on Windows systems. It will not work on your Linux box. It will not work on your site that has folder and you copy it in that folder. It must be on the ROOT of the site. I know many blogs will say it will work, it did not work for me. I dont want to say they are wrong, but it did not work for me and I am sure it worked for them, but they dont have GoDaddy as their host. Maybe it works for others that have different hosting company.
10. Manually installing is the best way to go. I have tried multiple ways to install and this is the best way to do it. It took me many days to ask people and Tom was the only person who has given me directions where to go and gave a light to my installation. Thanks Tom...
11. After you make sure you have all the folders/files and blank database ready - than you are ready to install. Go to your www.yoursite.com and follow the installation. From here I am sure you will pick it up. If not, please do not hesitate to post here and I or Tom or some good friends of this blog will try to assist.

Hope this helps everyone... It sure took me some time to understand the concept how this works. Next I am going to start putting the piece of the puzzle together. See you guys next time...

chuchau chuchau says:

I get this error. I've installed DNN at least 5 times and cant figure this one out.

Installing Database - Version 4.4.0...Upgrading Database to Version ERROR: See C:\ARF\Providers\DataProviders\SqlDataProvider\04.04.00.log for more information...Success
undefined...Success
undefined...Success
undefined...Success
undefined...Success
undefined...Success
undefined...Success
undefined...Success
undefined...Success

I followed all steps but i get it when i install on server host
please help me. thanks!

Tom Kraak Tom Kraak says:

@ Chuchau - did you take a look at the 04.04.00.log file to see what might cause this?

Jasmine Jasmine says:

Thanks.The instructions work for me.I could create the dnnsite for the first time in this whole month

Josue Josue says:

how can I install the new DNN upgrade in a live website

Tom Kraak Tom Kraak says:

Mitchel Sellers wrote a number of good DNN upgrade tutorials. Try searching http://www.mitchelsellers.com/blogs.aspx.

Anthony Anthony says:

I have succesfully installed using the info above. But when i navigate to localhost/DNN453, I get the below error report. I cant seem to understand the iis virtual directory
File C:\DNN453\Portals\_default\\Logs\LogFailures.xml.resources
Error Access to the path 'C:\DNN453\Portals\_default\Logs\LogFailures.xml.resources' is denied. The Windows User Account listed below must have Read/Write Privileges to this path.

Tom Kraak Tom Kraak says:

@ Anthony - adjust your file permissions for the file indicated.

Anthony Anthony says:

Thanks for your previous help. I have successfully installed DNN upto the install wizard but i get this error report when i try to login into the database:
Index #: 0
Source: .Net SqlClient Data Provider
Class: 11
Number: 4060
Message: Invalid Database
Index #: 1
Source: .Net SqlClient Data Provider
Class: 14
Number: 18456
Message: Sql login failed

Tom Kraak Tom Kraak says:

First of all, are you using the correct connection strings in web.config according to the MS SQL version (Express or SQL Server) that you are running?

And if so, does it contain the correct db name, user and password?

Viki. g. Viki. g. says:

I'm try to install DNN, but when I create my virtual directory I don't have any tab (document, ant etc), anyone can help me?

Tom Kraak Tom Kraak says:

@ Viki - IIS6 or 7?

Viki. g. Viki. g. says:

My version of iis is 6.1

Tom Kraak Tom Kraak says:

@ Viki - right-click on your virtual directory and choose Properties. Now you should see various tabs across the to with one of them being Documents.

Sage CRM Florida Sage CRM Florida says:

Resources like the one you mentioned here will be very useful to me! I will post a link to this page on my blog. I am sure my visitors will find that very useful

Quality Auditors Quality Auditors says:

Very significant article for us ,I think the representation of this article is actually superb one. This is my first visit to your site.

Image Consultant Image Consultant says:

Fine information, thanks to the author. This work is really useful and significant.

Comments are closed

Subscribe to our Feeds Follow on Twitter