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 ...Violation of UNIQUE KEY constraint Violation of UNIQUE KEY constraint 'IX_Version'. Cannot insert duplicate key in object 'Version'.
Previous
 
Next
New Post
5/6/2009 12:25 PM
 

Well... can't say I'm impressed with DNN installation procedure: installing latest stable version on a SQL Server 2005 is proving to be unnecessarily painful (I wonder why setting up any PHP+MySQL solution is a breeze in comparison - well, actually also in absolute terms).

Anyways, here are the facts:

INSTALLATION DETAILS

  • DNN 4.9.3
  • Windows Server 2008 with .NET 2.0 and SQL Server 2005 (9.0.3042)
  • SQL Server connection settings (Server IP, DB Name, Username & Password) tested successfully by connecting to the DB via MS SQL Manager Express - account used is confirmed being owner of the DB in the DB Properties window


THE STORY SO FAR

  1. copied all the files in the http root folder of  the webserver
  2. applied all the correct permissions (NETWORK SERVICE account has full control over the folder structure)
  3. DNN initial setup screen shows up: I select Custom Install (tried with Typical too, no change) and then Next
  4. Checking File Permissions screen shows up: clicking Test Permissions returns Your site passed the permission check - I select Next
  5. Configure Database Connection screen shows up: I tried basically all possible combinations on this screen, best results are obtained by using these settings:
    - SQL Server 2000/2005/2008 Database
    - Server: [IP of the server] (same as in MS SQL Manager Express)
    - Database: [DB name] (same as in MS SQL Manager Express)
    - Integrated Security: Unchecked
    - User ID: [Username] (same as in MS SQL Manager Express)
    - Password: [Password] (same as in MS SQL Manager Express)
    - Run as DB Owner: Checked
    - Object Qualifier: DNN_ (also tried with empty, no change)
     
  6. Clicking Test Database Connection returns Connection Success: I click Next
  7. Run Database Installation Scripts screen shows up, Installing Database Scripts bar filling up... After 5/10 seconds the log window shows:

    Installing Database - Version 0.0.0...Success
    Installing Database - Version 0.0.0...FAILURE 400 - Violation of UNIQUE KEY constraint 'IX_DNN_Version'. Cannot insert duplicate key in object 'dbo.DNN_Version'.%0d%0aThe statement has been terminated.

    Apart from the fact that the DB version is labelled 0.0.0, the same operation (Installing Database - Version 0.0.0) is reported as being both successful AND failed: wth?!?

  8. Installation stops here: MS SQL Manager Express shows that many DB objects have been created at apparently no avail.


Is anyone else having these issues?

 

 
New Post
5/6/2009 7:12 PM
 

Zuc, I feel your pain as I have had my share of problems installing... Sometimes it's the unexpected that sideswipes me. It sounds like you're on the right track. But, one thing that has caused me endless pain is that you must absolutely empty the db after a failed install. Trying to reinstall after a failure is not going to work (ever? at least never has for me).

 
New Post
5/7/2009 4:34 AM
 

Hey mikevdm, thanks for your reply.

I thought that as well: since the first reinstallation, I've always taken care of manually deleting the objects in the SQL Server - only problem is, I'm not really 100% sure I'm getting all of them... Unfortunately I'm not SA, so I can only tinker inside my own DB and I cannot delete it and recreate it from scratch.

Therefore, what I'm doing between the (countless) failed installations is manually deleting these objects:

  • Database Diagrams: none (this collection is empty anyways)
  • Tables: all of them (except for the System Tables)
  • Views: all of them (except for the System Views)
  • Synonyms: none (this collection is empty anyways)
  • Stored Procedures: all of them (except for the System Store Procedures)
  • Functions: none
  • Database triggers: none (this collection is empty anyways)
  • Assemblies: none (this collection is empty anyways)
  • Types: none
  • Rules: none (this collection is empty anyways)
  • Default values: none (this collection is empty anyways)
  • Users: none
  • Database roles: all the roles having the aspnet_ prefix
  • Application roles: none (this collection is empty anyways)
  • Schemas: all the schemas having the aspnet_ prefix
  • Symmetric keys: none (this collection is empty anyways)
  • none (this collection is empty anyways)
  • Certificates: none (this collection is empty anyways)

This is all very frustrating... Is it possible that no one knows what the problem could be? I mean, I've followed all the instructions I could find regarding the installation procedure, and from what I can understand all the variables in play are pretty standard - server type, DNN version, etc.
How's it possible that the installation simply fails with no solution?

Now I understand why people are generally skeptical regarding ASP.NET + MS SQL... :(
 

 
New Post
5/7/2009 8:02 AM
 

Nevermind: I figured it out by myself.

Obviously no one (not even those who developed the latest version) tried to install .NetNuke 4.9.3 from scratch: the 4.9.3 installation is BUGGED (the DB creation scripts are broken, at least while dealing with system specs like the one I mentioned in the 1st post).
As soon as I tried to install 4.9.0 everything worked fine, I managed to upgrade 4.9.3 subsequently.

Might be good to remove the BROKEN DNN 4.9.3 installation package from the downloads section (and, therefore, make the 4.9.0 Install available again until a proper 4.9.3 gets released) before someone else wastes precious time trying to get it to work...

 
New Post
5/7/2009 10:48 AM
 

I haven't seen your whole thread but I've installed a number of 4.9.3 installs from scratch without a problem.

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Violation of UNIQUE KEY constraint Violation of UNIQUE KEY constraint 'IX_Version'. Cannot insert duplicate key in object 'Version'.


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