I made this stack overflow post detailing my troubles after upgrading DNN to 9.1. I've since made the upgrade to 9.3 and then to 9.6 and the same error persists. All of the upgrades seem to have worked fine, but I still get a 500 response code on many resource requests. Most of the files being rejected are in my Portals folder, but there are other files that aren't loading as well.
Any suggestions are much appreciated!
Hi Joe,
Apologies for the late response, the project was temporarily put on hold.
I believe that MAI is a dependency that was used before I took over this project and is no longer used. That error seems to be popping up randomly and not actually affecting the site.
I was able to find out that the missing resource files were due to a broken DLL file that was supposed to make the site mobile friendly. By removing this module from my web.config I was able to fix the site.
I made the finaly upgrade to 9.8 and the site is mostly working, however now I am getting a strange error when I try to login:
System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Security.Membership.AspNetMembershipProvider.UserLogin(Int32 portalId, String username, String password, String authType, String verificationCode, UserLoginStatus& loginStatus) at DotNetNuke.Entities.Users.UserController.ValidateUser(Int32 portalId, String username, String password, String authType, String verificationCode, String portalName, String ip, UserLoginStatus& loginStatus) at DotNetNuke.Modules.Admin.Authentication.DNN.Login.OnLoginClick(Object sender, EventArgs e) at System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.d__523.MoveNext()
I found this page with a similar issue: https://www.dnnsoftware.c...rship-userinfo
I'm not sure how to proceed from here. Which libraries should I try to remove? And should I be replacing them with something? Should I try running the DNN_9.8_Install package?
Yes, I was not able to login to the site because of that exception. I had tried the Install package because when I tried the Upgrade package, the website returned a blank white screen with no errors and I wasn't sure how to proceed. Instead of figuring out the upgrade, I took dev instance of the site (which was already upgraded to 9.6) and moved the data into that database which worked!
Now I have a new error with email and I can't tell if it's related to the upgrade or not. At first the SMTP settings wouldn't load, and then following this suggestion, https://dnncommunity.org/forums/aft/823, I deleted the SMTPPassword setting in the PortalSettingsTable. Now I am able to edit the settings and send emails, but there is an exception in the GetSystemMessage function which is causing some of the emails to come back with the Body text of the Message Tag instead of the System Message that's supposed to replace it.
Here is my stack trace for the exception:
[ERROR] DotNetNuke.Services.Localization.Localization - System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Entities.Users.UserInfo.GetProperty(String propertyName, String format, CultureInfo formatProvider, UserInfo accessingUser, Scope currentScope, Boolean& propertyNotFound) at DotNetNuke.Services.Tokens.BaseCustomTokenReplace.replacedTokenValue(String objectName, String propertyName, String format) at DotNetNuke.Services.Tokens.BaseTokenReplace.ReplaceTokens(String sourceText) at DotNetNuke.Services.Localization.Localization.GetSystemMessage(String strLanguage, PortalSettings portalSettings, String messageName, UserInfo userInfo, String resourceFile, ArrayList customArray, IDictionary customDictionary, String customCaption, Int32 accessingUserID)
When I look at the code, I see this line seems to be failing: "PropertySource[objectName.ToLower()].GetProperty("
I'm not sure where to go from here since I haven't ever figured out how to debug the code.
Separately, I'm still trying to understand how the upgrades work. Now that I performed the upgrade on the website, does the code need to be upgraded as well? How would I go about doing that to my existing project?
Thanks again for all your help!
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.