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

HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Upgrading from 5.4.4 to 5.5 (Latest Version)Upgrading from 5.4.4 to 5.5 (Latest Version)
Previous
 
Next
New Post
8/19/2010 8:58 AM
 
I upgraded my DNN version 5..4.4 to 5.5. The upgrade went on fine except this SQL Error  saying please see View log 5.5.0. The following is the view log details.
Please let me know what is the error about.

System.Data.SqlClient.SqlException: Invalid object name 'portals'.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL)
at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions)




/* script to fix issue with errorneous administratorroleid values*/

DECLARE @PortalID int
DECLARE @AdministratorRoleId int

--Iterate through each portal
DECLARE Portals_Cursor CURSOR FOR
SELECT PortalID,AdministratorRoleId
FROM dbo.dnn_Portals

OPEN Portals_Cursor
--get first
FETCH NEXT FROM Portals_Cursor
into @PortalID,@AdministratorRoleId
WHILE @@FETCH_STATUS = 0
BEGIN
if @AdministratorRoleId=-1 or @AdministratorRoleId not in (select roleid from dbo.dnn_userroles as ur inner join dbo.dnn_userportals as up on ur.userid=up.userid where up.portalid=@portalid)

update portals set AdministratorRoleId =
(select roleid from dbo.dnn_Roles as r where
r.PortalID =dbo.dnn_Portals.PortalID and RoleName = 'Administrators' and dbo.dnn_Portals.portalid=@portalid) where portalid=@portalid

FETCH NEXT FROM Portals_Cursor
into @PortalID, @AdministratorRoleId

END
CLOSE Portals_Cursor

 
New Post
8/26/2010 11:35 AM
 
Hi,

As the log showing  SQL error  i suspect it  is to do with SQL Server connection and permissions issue.
Please check the permissions for the  DNN database. ( dbowner)

hope that helps.

Thanks
Viajy
 
New Post
8/26/2010 1:20 PM
 
AFAIK there has been an issue reported in the script, which will hopefully be fixed in 5.5.1

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
8/26/2010 2:57 PM
 

Hi Sebastian,

 Recently i  upgraded  from  the DNN 5.4.4 to 5.5.... the upgradation went  smooth with  one issue which i do not remember right now...but  i am able to access the site  and host setting also  show 5.5.  Is the script error has any major impact on the functioning of site. BTW i was just trying on localhost.

Thanks
Vijay

 
New Post
8/26/2010 5:49 PM
 
Check the permissions for pages and modules. If they look fine, i.e. locked for admins and configurable for all other users, you should be fine.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Upgrading from 5.4.4 to 5.5 (Latest Version)Upgrading from 5.4.4 to 5.5 (Latest 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