DotNetNuke Error: The stored procedure 'dbo.GetPortalAliasByPortalID' doesn't exist.

I am experimenting with DotNetNuke (DNN) to see if it is a viable solution for some upcoming projects. While installing the "Source" version of the application I received the following error message:

The Assembly Version ( [ASSEMBLYVERSION] ) does not match the Database Version ( [DATABASEVERSION] )

ERROR: Could not connect to database.

The stored procedure 'dbo.GetPortalAliasByPortalID' doesn't exist.

The above error occurred while the install scripts were attempting to create the database objects on my local installation of Microsoft SQL Server 2000. I had already created an empty database on SQL Server. The default web.config file uses SQL Server 2005 Express. I changed the connection string to:

 <add name="SiteSqlServer" connectionString="server=(local);uid=sa;pwd=mypass;database=DNN441_Dev" providerName="System.Data.SqlClient" />

Solution

I did a quick search on Google and found this related DotNetNuke forum thread. It is 5 pages long, and pointed me to the eventual solution. I have had a similar problem in the past (though, I can't remember with what). I changed the server name in my connection string from "(local)" to my machine's name the database installation completed without further incident. My new connection string looked like this:

 <add name="SiteSqlServer" connectionString="server=MyMachineName;uid=sa;pwd=mypass;database=DNN441_Dev" providerName="System.Data.SqlClient" />

Published Monday, February 19, 2007 2:54 PM by Tod Birdsall

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

St3ve said:

Solved my problem perfectly - thanks!

July 8, 2008 11:37 AM
 

mekbeb said:

I have tried using my machine name for the server and created a new login with password which works perfectly to logon to sqlserver 2005 using sql authentication. but adding those values in the connection string still gives "Site Under Construction"

or having just the root url, will bomb showing ..."The stored procedure 'dbo.GetPortalAliasByPortalID' doesn't exist." error message. I am using sql server 2005 and windows server 2003

August 8, 2008 1:19 PM

Leave a Comment

(required) 
(optional)
(required) 
Submit
Picture of Tod Birdsall

Welcome!

This is the personal website of Tod Birdsall, a programmer, business analyst, and gamer. Not necessarily in that order. Learn more...

Subscribe

Be notified of my latest posts. Subscribe to my blog.