Error in "BlogEngine.Core.Providers.DbMembershipProvider.GetAllUsers" after moved to a new server

Topics: Controls
Feb 28, 2013 at 5:08 PM
Hi BEGuys,

I would like to ask some tips from you guys.

After we move to a new server, our BLOG site is working partially.
The Login.aspx page passed "admin" accout, but, the functions of "Add Entry","Profiles","Users" are not working and "Controls","Categories","Settings" are working.

The articles are displaying and let me delete it, but, I cannot do edit or save.

When, I run Blog in Visual Studion 2010, I got this error on LINE 349 FOREACH statement:

It looks like BlogEngine is looking for a file that is DbMembershipProvider.cs from the old machine, but this machine is no longer exit because we move to a new server.

+++ Actual Part of error messages are here:

BlogEngine.Core.Providers.DbMembershipProvider.GetAllUsers(Int32 pageIndex, Int32 pageSize, Int32& totalRecords) in C:\Users\usuglatwala\Documents\Visual Studio 2008\WebSites\SDTimes3.0\BlogEngine.Core\Providers\DbMembershipProvider.cs:591

+++ Entire Error Message Begin ++++++++++++++++++++++++++++++++++++++++
Line 347: private void BindUsers()
Line 348: {
Line 349: foreach (MembershipUser user in Membership.GetAllUsers())
Line 350: {
Line 351: ddlAuthor.Items.Add(user.UserName);

Source File: c:\inetpub\wwwroot\sdtimes.com\blog\admin\Pages\Add_entry.aspx.cs Line: 349

Stack Trace:

[SqlNullValueException: Data is Null. This method or property cannot be called on Null values.]
System.Data.SqlClient.SqlBuffer.get_DateTime() +5270860
System.Data.SqlClient.SqlDataReader.GetDateTime(Int32 i) +80
BlogEngine.Core.Providers.DbMembershipProvider.GetAllUsers(Int32 pageIndex, Int32 pageSize, Int32& totalRecords) in C:\Users\usuglatwala\Documents\Visual Studio 2008\WebSites\SDTimes3.0\BlogEngine.Core\Providers\DbMembershipProvider.cs:591
System.Web.Security.Membership.GetAllUsers(Int32 pageIndex, Int32 pageSize, Int32& totalRecords) +45
System.Web.Security.Membership.GetAllUsers() +26
admin_entry.BindUsers() in c:\inetpub\wwwroot\sdtimes.com\blog\admin\Pages\Add_entry.aspx.cs:349
admin_entry.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\sdtimes.com\blog\admin\Pages\Add_entry.aspx.cs:35
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
System.Web.UI.Control.OnLoad(EventArgs e) +92
System.Web.UI.Control.LoadRecursive() +54
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772

+++++++++++ Entire Error Message End +++++++++++++++++++++++++++++++++

Does anybody have any idea? Please?
I truly appreciate it.

Thanks,
-Taekwon-