I would add a few notes to that, having upgraded from 4.9.5 to 5.4.4 several times, now. If you are using Chat, and want to just fix it, you can do that in the files on the system after you upload and just before you run the upgrade script. Likewise with the XML module, although getting the latest is always best. Here are notes on the subject that I have compiled from several sources:
Upgrading from Version 4.9.5 to Version 5.4.4
Deletions
In the existing Website: delete the \portals\_default\EventQueue\EventQueue.config file.
Ensure file exists in all portals
· In Windows Explorer (or through FTP) Search for "Default.page.template" and make sure it exists in all portal Template subdirectories.
Fix the XML module
1. Find the download.vb file in the App_Code\XML\Handlers directory
2. Edit line 34 from:
Private Sub RenderToResponseStream(ByVal Response As Web.HttpResponse, ByVal controller As XmlController)
TO:
Private Sub RenderToResponseStream(ByVal Response As System.Web.HttpResponse, ByVal controller As XmlController)
NOTE: You simply need to fully qualify the Web.HttpResponse as a System.Web.HttpRespone
3. Edit line 89 from:
Private Sub handleAuthenticateRequest(ByVal context As Web.HttpContext)
To:
Private Sub handleAuthenticateRequest(ByVal context As System.Web.HttpContext)
Fix the DnnChat module
· If you are not using the Chat module but have it installed - remove all files from the folder App_Code\Chat. You should then be able to open the site and log-in as host user to delete the Chat module extension (including all files).
· If you are using the Chat module, you can easily fix the issue by editing line 309 in the code file App_Code\Chat\DNNChatCodeHelper.vb.
Change line 309:
Dim ctx As Web.HttpContext = Web.HttpContext.Current
to
Dim ctx As System.Web.HttpContext = System.Web.HttpContext.Current
Note that I have added System. in two places in that line.
Save the changed file (or re-upload it to your hosted site via FTP) and you should be good to go.