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 ...Upgrade error - Need help understandingUpgrade error - Need help understanding
Previous
 
Next
New Post
2/10/2008 8:56 PM
 

I just completed an upgrade from v4.5.1 -> v4.8.0. During the installation, it reported an error, which I think is logged below. I need some help understanding the error, and seeing if there is anything I can/should do to resolve it. Thanks in advance.

 

[ERROR]

System.Data.SqlClient.SqlException: Cannot insert the value NULL into column 'ModuleID', table 'DB_1012933.dbo.ModuleSettings'; column does not allow nulls. UPDATE fails. 
The statement has been terminated.
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)


/* Update UseCaptcha Settings to use the Authentication Module instead of User Accounts */
/****************************************************************************************/

BEGIN
CREATE TABLE #AuthModules
(
ModuleID int,
PortalID int,
AuthModuleID int
)

-- Insert into our temp table
INSERT INTO #AuthModules (ModuleID, PortalID, AuthModuleID )
SELECT
m.ModuleID,
m.PortalID,
(SELECT ModuleID
FROM dbo.Modules MI
INNER JOIN dbo.ModuleDefinitions MDef ON MI.ModuleDefID = Mdef.ModuleDefID
WHERE (MI.PortalID = m.PortalID) AND (MDef.FriendlyName = 'Authentication'))
AS AuthModuleID
FROM dbo.Modules AS m
INNER JOIN dbo.ModuleDefinitions md ON m.ModuleDefID = md.ModuleDefID
WHERE (md.FriendlyName = N'User Accounts')
AND PortalID IS NOT NULL

UPDATE dbo.ModuleSettings
SET ModuleID = a.AuthModuleID,
SettingName = 'DNN_UseCaptcha'
FROM dbo.ModuleSettings s
LEFT JOIN #AuthModules a ON a.ModuleID = s.ModuleID
WHERE SettingName = 'Security_CaptchaLogin'
AND a.PortalID IS NOT NULL

-- Drop temp table
DROP TABLE #AuthModules

END
 
New Post
2/11/2008 10:04 AM
 

From the looks of it, it was trying to put settings in for the authentication providers, but it did not receive the module id for the provider.  This would lead me to believe that the provider did not install correctly.

Did you have any other error messages?


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
2/12/2008 8:19 AM
 

 

Actually, I have several portals running, and on one of them, I cannot login. The login box doesn't even appear. The container for it does, but no login box. Also, it has an Announcements module which isn't appearing. All other content appears ok on it, but I cannot login to it.

Not sure where to check in the Event logs, but I did find a PageLoadException logged.

You can see it here:

www.siegelslanding.com

 

 

 
New Post
5/6/2008 11:02 PM
 

Did you ever find a solution to this?  If so, could you let me know as I have the exact same problem.

Thanks,

Craig

 
New Post
6/24/2008 9:27 AM
 

I have the same problem, Did anyone find a solution????? Please help!

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Upgrade error - Need help understandingUpgrade error - Need help understanding


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