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 ...LOCKED OUT! Clicking Login Button Generates ErrorLOCKED OUT! Clicking Login Button Generates Error
Previous
 
Next
New Post
7/17/2008 10:41 PM
 

 LOCKED OUT!  I can't login to 2 separate DNN sites due to the following error when I click the Login link on the Home page.

A critical error has occurred.
Object reference not set to an instance of an object.

I just upgraded both sites from 4.5.3 to 4.8.4.  (I have multiple other sites that I have upgraded to 4.8.4 without issues but none of those were running 4.5.3)

Both sites had the same error when processing the changes for 4.6.0. The error in the LOG file is as follows:

*************************************************************************************
System.Data.SqlClient.SqlException: Cannot insert the value NULL into column 'ModuleID', table 'Enterprise_Web_NYF01.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
************************************************************************************

Any ideas?

 
New Post
7/18/2008 3:07 AM
 

remove all ad code and ad settings in web.config, remove ADconfiguration and get the site running. Afterwards reinstall AD provider from inside host settings and reconfigure it for your site if needed.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
7/18/2008 11:10 AM
 

You may have to provide me with some more details. I removed the following section from the web.config.  I am not sure what you mean by removing the AD configuration.

<authentication defaultProvider="ADSIAuthenticationProvider">
      <providers>
        <clear />
        <add name="ADSIAuthenticationProvider" type="DotNetNuke.Authentication.ActiveDirectory.ADSI.ADSIProvider, DotNetNuke.Authentication.ActiveDirectory" providerPath="~\Providers\AuthenticationProviders\ADSIProvider\" />
      </providers>
    </authentication>

I do have complete backups of the website and database prior to the upgrade. Would it be easier at this point to take it back to the original state and upgrade in a different manner that will not result in the AD problem?

 
New Post
8/25/2008 7:15 PM
 

I have what appears to be the idenitical error w.o any AD security.

It only occurs for Site Settings and Admin Site settings.

 

FOr each of them, I get a continual redirect (as reported by FireFox). It is similar to what one sees if the portal alias settings are not correct, but it is ponly on these two admin pafges

 

 
New Post
9/12/2008 5:08 AM
 

 Hi,

I have the same problem. Did you get a solution ?

 

Thanks for your help

 

Gerrit

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...LOCKED OUT! Clicking Login Button Generates ErrorLOCKED OUT! Clicking Login Button Generates Error


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