Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

PortalWebHosting
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
OnyakTech
 


  Sponsors  

Meet Our Sponsors

Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
Click here to go to dev.live.com for Windows Live developer resources
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Install It!  Cannot Login After Upgrade
Previous Previous
 
Next Next
New Post 5/4/2008 7:46 PM
Unresolved
User is offline Craig Rusch
5 posts
10th Ranked


Cannot Login After Upgrade 
Modified By Chris Hammond  on 5/4/2008 10:48:13 PM)

I just upgrade from DNN 4.5.5 to DNN 4.8.2.  I can access my site (www.northwestdistrictassociation.org), but whenever I select Login, I receive the error:

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

During the upgrade process, there was an error recorded in the log for the upgrade from 4.5.5 to 4.6.0:

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

When I check my Event Log in the database, I find the following log explanation:

Object reference not set to an instance of an object.</PropertyValue></LogProperty><LogProperty><PropertyName>FileName</PropertyName>

<PropertyValue /></LogProperty><LogProperty><PropertyName>FileLineNumber</PropertyName><PropertyValue>0</PropertyValue>

</LogProperty><LogProperty><PropertyName>FileColumnNumber</PropertyName><PropertyValue>0</PropertyValue></LogProperty><LogProperty>

<PropertyName>Method</PropertyName><PropertyValue>DotNetNuke.Services.Authentication.AuthenticationConfigBase.get_AuthenticationModuleID</PropertyValue></LogProperty>

<LogProperty><PropertyName>StackTrace</PropertyName><PropertyValue /></LogProperty><LogProperty><PropertyName>Message</PropertyName>

<PropertyValue>DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to an instance of an object. ---&gt; System.NullReferenceException: Object reference not set to an instance of an object.
   at DotNetNuke.Services.Authentication.AuthenticationConfigBase.get_AuthenticationModuleID()
   at DotNetNuke.Services.Authentication.AuthenticationConfigBase..ctor(Int32 portalID)
   at DotNetNuke.Services.Authentication.AuthenticationConfig..ctor(Int32 portalID)
   at DotNetNuke.Services.Authentication.AuthenticationConfig.GetConfig(Int32 portalId)
   at DotNetNuke.Modules.Admin.Authentication.Login.get_Enabled()
   at DotNetNuke.Modules.Admin.Authentication.Login.BindLogin()
   at DotNetNuke.Modules.Admin.Authentication.Login.ShowPanel()
   at DotNetNuke.Modules.Admin.Authentication.Login.Page_Load(Object sender, EventArgs e)
   at System.Web.UI.Control.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   --- End of inner exception stack trace ---</PropertyValue></LogProperty><LogProperty><PropertyName>Source</PropertyName><PropertyValue /></LogProperty></LogProperties>

Cannot insert the value NULL into column 'ModuleID'

There appears to be an issue with the authentication module that is causing this, but I can't figure it out.  I have:

  • Double and trible checked to ensure that all files copied properly.
  • Checked to make sure that my keys are correct.
  • Made sure that I can view the basic templates for DNN (Horizontal blue)

Any help on this would be much appreciated.

Thanks,

Craig

 
New Post 7/9/2008 1:34 PM
User is offline Matt Gudmundson
2 posts
10th Ranked


Re: Cannot Login After Upgrade 

I am getting the same problem with DNN.  Upgrading from 3.0 to 4.8.4.  The upgrade was successful yet when I try to login I end up back on the default page with the critical error.  Same stack as well.

Were you able to get the login to work?

 
New Post 7/14/2008 1:01 PM
User is offline Matt Gudmundson
2 posts
10th Ranked


Re: Cannot Login After Upgrade 

   My case was I had a few errors around the 4.0 upgrade.  I also had a few portals that I could not delete.  Most fun let me tell yea.

-Try this first in a dev environment before your live site.

First thing to do is back up your site and database.  You could clean up any portals you no longer will be using at this point.  I actually had a few that were not deleting through admin functionality. Had to write a sproc to get things moving along.  This may not apply to you but at least verify this functionality is working on dev.  You can always restore afterwards.  Also, membership has changed with newer DNN in which your usernames will need to be unique with all your portals.  You will need to deal with those conflicting usernames before you update to the 4.0 land.

Second, download your install packages from dotnetnuke.com.  I went with 3.3.7 and 4.8.4.  Edit the web.configs and copy over connection strings keys and machine keys.

Third step, which may not apply to you but for some reason I had to manually add in 'Email varchar 256 nullable' to the 'Users' table. 

 Fourth step is verify iis is set to .net 1.1.  Pretty sure it is but keep it open since you will change it soon.  

-Few things to note, you will need to login as host, and you will also need to double-check your portal aliases.  If you don't know your host password like I didn't I would get that situated before you upgrade.  With that you will need to go into the asp membership table and copy over password and salt password to your host userid.

-Fifth. Extract the contents of your install zip folder over the contents of your site. 

 -Ok so now we should be good to go.  Navigate to http://~YourRoot~//Install/Install.aspx?mode=upgrade 

  You should see a site-unavailable page.  Give it a minute or two.  Just hit refresh on that url and you'll see the progress.  If all is green your good to go, if not I would check into the errors. 

  At this point, I would login into the site, verify its working good and everything is intact. 

  Here we go, extract 4.8.4 over the contents of your site.  Edit the config file for the app connection string and machine key.  Note the <connectionStrings> is available in this and edit these values since I think they now play a role with DNN.  Change your iis to .net 2.0.  I didn’t have any problems with the site modules with this conversion.  If you have purchased or built custom modules for your site you will need to look into that a bit before you upgrade.  If you purchased the module there may be some updates available through your vendor.

 -Ok so now we should be good to go.  Navigate to http://~YourRoot~//Install/Install.aspx?mode=upgrade 

  You should see a site-unavailable page.  Give it a minute or two.  Just hit refresh on that url and you'll see the progress.  If all is green your good to go, if not I would check into the errors. 

And that’s it. I was able to navigate to the login page and login.  3.3.7 was crucial for some reason and after that I was able to upgrade to the latest.  Huh.

 

 
New Post 7/30/2008 11:15 PM
User is offline amruta.taralkar
3 posts
10th Ranked


Re: Cannot Login After Upgrade 

I have just upgrade from 4.8.2 to 4.8.4 and i am unable to login with existing username.

if i am register with new username then i am able to log in.

could you please suggest me any solution.

 

 
New Post 7/31/2008 12:12 AM
User is offline Sebastian Leupold
13721 posts
www.deutschnetnuke.de
1st Ranked












Re: Cannot Login After Upgrade 

there seems to be an issue with the machine key in your web.config file. An upgrade from 4.8.2 to 4.8.4 should not have touched this entry, but either you modified web.config file yourself or there has been problems accessing the database during upgrade. Please restore the machine key entry from a backup of previously used web.config file.

PS: please create a new thread for new questions.


Sebastian Leupold

DeutschNetNuke dnnWerk - The DotNetNuke Experts German DotNetNuke User-Group

DotNetNuke Project UserDefinedTable
DotNetNuke Project Release Tracker
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Install It!  Cannot Login After Upgrade
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Faculty of Graduate and Postdoctoral Studies
At the graduate level, the University of Ottawa offers more than 180 graduate certificates, master's degrees and PhDs, as well as interdisciplinary programs such as Women's Studies and Canadian Studies. Many postdoctoral opportunities are available in both the sciences and the humanities. For further information, please consult the site of the Faculty of Graduate and Postdoctoral Studies.
www.grad.uottawa.ca
Vekkin Solutions
Vekkin Solutions provides complete website solutions and custom module development to churches and small businesses.
www.vekkin.com
Powered by Adcuent®.Com
Adcuent® Consulting & Technology offers custom development web applications and hosting projects under the brand of Powered by Adcuent®.Com
www.adcuent.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP