Hello Westa,
Before I share the latest findings with you I will let you know that yes you are correct in that my installation of DNN was once on sql2005 but since that time I have transferred the install to powerdnn running mssql2008R2 with I would assume the latest server pack since I just moved hosting environments within 2 to 3 weeks ago which is where I first noticed these upgrade problems in the first place so these upgrade problems starting from 5.2.3 to a later version occured after the migration to sql2008R2 on iis6 but as of late I had them migrate my iis to iis7 for transparency purposes and found I ran into similiar issues their that I ran in on my computer locally running the same iis versions.
Here is the latest information on my progress to resolve the issue in this thread. I was able to achieve a "successful" upgrade all the way to 5.6.3 but the cavet is I had to baby the web.config file all the way up going from 5.2.3 to 5.3.1 to 5.4.4 etc... When doing this I did not run into the updating config errror or the core sitemap error or these telerik errros. In brief the issues seems to be that iis7/7.5 for whatever reason thinks it needs to read both the module node and end module node the handler and end handler as well as the ones that start with http prepended to the module and handler mode hence a duplication error of the add property between the neodes of module and handler. When upgrading to the next version DNN throws the new provider information into both the handler and httphandler and probably the module and httpmodule if their was a module update and this causes errors in iis again until I delete or comment out all the providers dumped into the handler node than it works.
Now here is the story comparing my dnn5.2.3 web.config to the release.config found in the same installation I noted that my web.config did not have the handler nodes which I remember I got rid of because of all these duplication errors but here is the thing.
Upon observing the handler and httphandler nodes I was looking for something that perhaps was not duplicated in the httphandler that was found in the handler node and this is what I discovered.
--------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------
When this line was left in the handler node and all the other lines of handler were commented out so as not to make iis think their were duplicates going on here than it upgraded successfully to the next version but again in the process dumped the new coresiteprovider and telerik into both types of handlers in the web.config file.
There actually was a remove statement in the httphandlers node which was the following:
-------------------------------------------------------------------------------
----------------------------------------------------------------------
As you can see though this remove statement is not exactly the same as that found in the handler node.
Now I went one step further Westa and Joe and that is just now I did it in reverse commenting out all the httpmodule and httphandler nodes while leaving the handler and module nodes uncommented so that their should still not be a duplication error but I just flipped things around a bit.
When I did this I got the same duplication error as I did had I not commented any of the handler or httphandler content in the web.config file but again when I commented out the handler but left the httphandler uncommented than this duplication error did not occur.
Lastly for kicks I commented out all handler and module nodes as well as there corresponding httphandler and httpmodule nodes and of course not surprisingly I just got an error message with no feedback whatsoever.
Another thing to note is that when I upgrade to the next version I must be in integrated mode and when I view the installation I must be in classic mode otherwise if I do not switch to integrated mode while upgrading I get the object not set to a refrence of an object error and when I do switch to integrated mode after dumping the upgrade files on my file system the upgrade engine works as expected but than when I click on view my portal I get an unspecified errror unless I go back to classic mode.
This was happening on my local environment running windows 7 ultimate and iis7.5 for the server.
This same behavior also could be simulated on powerdnn iis 7 server so I am confident this has nothing to do with how my iis 7 is set up locally at least not directly.
After talking with a powerdnn I started to discover myself that perhaps what was going on here is DNN was trying to use both iis environments at the same time and as a result couldn't use one currently unless the information or content of the modules and handler were first commented out so I am sure having to do this is also related to why I have to switch pipelines in my iis apppool to upgrade and switch back to view.
It is almost as if DNN wants to be in iis7 mode to go through the upgrade procedure from 5.2.3 to whatever comes next and it wants to be in iis6 mode to view what it had upgraded.
This is very bizarre to me indeed.
Now my question to anyone who might be viewing this topic is the following I know that the module node is meant for one iis environment and the httpmodule node is meant for a different iis environment one taylored for iis 6 and one taylored for iis7. My question is which nodes are taylored for which iis environment.
I guess one of them uses webservices and the other uses a different name which the older iis used and I can't remember which that was but at anyrate whatever the module and handler nodes are suppose to support are the ones that must be commented out in order for iis to not through the duplication error as doing it in reverse makes no difference.
Lastly what is it about that remove statement found between the
that makes it possible to upgrade DNN successfully given you are on the integrated pipeline as well as given you ensure that all handler and module content is commented out while httpmodule and httphandler content should not be commented out.
here is that remove statement once again
--------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------
According to powerdnn you are not suppose to have to keep changing iis pipelines in iis7 in order to perform upgrades and to view the new site that was just upgraded it should be able to be either on classic pipeline or integrated pipeline for both upgrading and viewing and not have to be switched back and forth to perform these various tasks.
Here is the actual error message I got when trying to upgrade to 5.3.1 under classic mode
-----------------------------------------------------------------------------------------------------------------
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
DotNetNuke.Entities.Portals.PortalInfo.get_Pages() +58
DotNetNuke.Entities.Portals.PortalSettings.GetPortalSettings(Int32 tabID, PortalInfo portal) +742
DotNetNuke.Common.Globals.GetHostPortalSettings() +129
DotNetNuke.Common.Globals.GetPortalSettings() +111
DotNetNuke.Authentication.ActiveDirectory.HttpModules.AuthenticationModule.OnAuthenticateRequest(Object s, EventArgs e) +61
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +79
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +170
---------------------------------------------------------------------------------------------------------------------
Now if I stay in integrated mode and view my site here is the error you will see
--------------------------------------------------------------------------------------
DotNetNuke Error
An error has occurred.
An error has occurred.
------------------------------------------------------------------------------
Now switching back to classic mode and looking at the event viewer we find the following details in the error logs after the upgrade and viewing the site in integrated mode before switching to classic mode( Please note that there is no error logged after upgrade if I switch to classic mode fefore clicking on go to my portal since it resolves without incident neither is their an error in the event viewer when I try to view my site in integrated mode before the upgrade though an error shows up on the screen. The only error that gets logged in all of this in the event viewer is that which comes from trying to initially go to the protal after an upgrade but before switching to classic mode and by the way their is no data in the providers>dbproviders>*.log files though these files had been generated when opening them up they are simply empty.)
So going to the event viewer right after trying to view site in integrated mode and then actually viewing it in classic mode reveals 4 errors after a successful upgrade. (By the way after clearing the error log before dumping the files from the upgrade folder getting the error for not going to integrated mode to install and again for not going to classic mode to view the site I found 9 pages of errors but only 4 show after the log shows the upgrade completed)
So here are the error details below the first 3 were page load errors and the last a schedule exception.
---------------------------------------------------------------------------------------
AssemblyVersion: 5.3.1
PortalID: -1
PortalName:
UserID: -1
UserName:
ActiveTabID: -1
ActiveTabName:
RawURL: /stevenson/Default.aspx
AbsoluteURL: /stevenson/Default.aspx
AbsoluteURLReferrer: http://localhost/stevenson/Install/Install.aspx?mode=upgrade
UserAgent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; MANM; MANM)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: f261908c-7699-4375-a5a4-4e7f3b4eca81
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.Services.Localization.Localization.GetPageLocale
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Services.Localization.Localization.GetPageLocale(PortalSettings portalSettings) at DotNetNuke.Framework.PageBase.get_PageCulture() at DotNetNuke.Framework.PageBase.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
----------------------------------------------------------------------------------------------------------------------------
Next error
--------------------------------------------------------------------------------------------------------------------------
AssemblyVersion: 5.3.1
PortalID: -1
PortalName:
UserID: -1
UserName:
ActiveTabID: -1
ActiveTabName:
RawURL: /stevenson/Default.aspx?error=Object+reference+not+set+to+an+instance+of+an+object.&content=0
AbsoluteURL: /stevenson/Default.aspx
AbsoluteURLReferrer: http://localhost/stevenson/Install/Install.aspx?mode=upgrade
UserAgent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; MANM; MANM)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 0f6e4ce2-350d-42f1-b0d6-42db235d7dd4
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.Services.Localization.Localization.GetPageLocale
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Services.Localization.Localization.GetPageLocale(PortalSettings portalSettings) at DotNetNuke.Framework.PageBase.get_PageCulture() at DotNetNuke.Framework.PageBase.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
----------------------------------------------------------------------------------------------------------------------
Next Error
--------------------------------------------------------------------------------------------------------------------
AssemblyVersion: 5.3.1
PortalID: -1
PortalName:
UserID: -1
UserName:
ActiveTabID: -1
ActiveTabName:
RawURL: /stevenson/Default.aspx?error=Object+reference+not+set+to+an+instance+of+an+object.&content=0
AbsoluteURL: /stevenson/Default.aspx
AbsoluteURLReferrer: http://localhost/stevenson/Install/Install.aspx?mode=upgrade
UserAgent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; MANM; MANM)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 021d7c43-ffc6-4149-b720-664cd4f943a6
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.Services.Localization.Localization.GetPageLocale
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Services.Localization.Localization.GetPageLocale(PortalSettings portalSettings) at DotNetNuke.Framework.PageBase.get_PageCulture() at DotNetNuke.Framework.PageBase.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
Source:
----------------------------------------------------------------------------------------------------------------
Last error a schedule exception error
------------------------------------------------------------------------------------------------
AssemblyVersion: 5.3.1
PortalID: -1
PortalName:
UserID: -1
UserName:
ActiveTabID: -1
ActiveTabName:
RawURL:
AbsoluteURL:
AbsoluteURLReferrer:
UserAgent:
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: ea6dde1a-eebf-48c8-9c00-633fc607bbc8
InnerException: Thread was being aborted.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Threading.Thread.SleepInternal
StackTrace:
Message: System.Threading.ThreadAbortException: Thread was being aborted. at System.Threading.Thread.SleepInternal(Int32 millisecondsTimeout) at DotNetNuke.Services.Scheduling.DNNScheduling.Scheduler.CoreScheduler.Start()
Source:
----------------------------------------------------------------------------------------------------------------
In case you want to see the web.config file I have before upgrade that I have tweaked so it could upgrade successfully in integrated mode here are the details below:
Here is a couple errors that showed up before upgrade showed successful and it points to .3.1 as well interestingly enough this is a general exception below
------------------------------------------------------------------------------------------------------------
AssemblyVersion: 5.3.1
PortalID: -1
PortalName:
UserID: -1
UserName:
ActiveTabID: -1
ActiveTabName:
RawURL: /stevenson/Install/Install.aspx?mode=upgrade
AbsoluteURL: /stevenson/Install/Install.aspx
AbsoluteURLReferrer:
UserAgent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; MANM; MANM)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 6b14cb9a-f65c-4415-9cc4-91b25a3f2e4c
InnerException: ContentItemID
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Data.ProviderBase.FieldNameLookup.GetOrdinal
StackTrace:
Message: System.IndexOutOfRangeException: ContentItemID at System.Data.ProviderBase.FieldNameLookup.GetOrdinal(String fieldName) at System.Data.SqlClient.SqlDataReader.GetOrdinal(String name) at System.Data.SqlClient.SqlDataReader.get_Item(String name) at DotNetNuke.Entities.Content.ContentItem.FillInternal(IDataReader dr) at DotNetNuke.Entities.Tabs.TabInfo.Fill(IDataReader dr) at DotNetNuke.Common.Utilities.CBO.FillObjectFromReader(Object objObject, IDataReader dr)
Source:
---------------------------------------------------------------------------------------------------------------------
It appears these 9 pages of errors logged here seem to be exactly the same error duplicated many many times even to 9 pages just from upgrading. I hope this gives you more insight into how I got these providers to install and how I came about to have no errors in this upgrade as well as the cavets that come along with getting successful upgrades through the iterations and the confusion about why iis is balking or thinking that information in modules and handlers is a duplicate of httpmodule and httphandler or at least why it seems to have to read both these nodes if one is meant for the older iis and one is meant for the newer iis and you can only use one pipelien at a time in iis 7.5.
Below is a copy of my web.config file after I modified it so I could get it to upgrade to the next version "successfully" or perhaps this was upgraded to 5.4.4 successfully since it shows the telerik information either way it will give you an idea of what I must do in regards to this commenting out of most of the nodes between handler and all the content between the module nodes while leaving the httpmodule and httphandler nodes untouched.
Thank You,
Bo
---------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
In case you wanted to see exactly what modules were left in my install while I was attempting these upgrades or what is now there (as a couple modules were added when going to 5.3.1) after the upgrades here they are pasted below
----------------------------------------------------------------------------------------------
Authentication
Allows you to manage authentication settings for sites using Windows Authentication.
1.0.0
No
Console
Display children pages as icon links for navigation.
1.0.0
Yes
Dashboard
Provides a snapshot of your DotNetNuke Application.
1.0.0
Yes
Extensions
Allows a Super User to manage the various extensions, such as Skins, Modules Language Packs, providers etc.
1.0.0
Yes
File Manager
Administrators can manage the files stored in their upload directory. This module allows you to upload new files, download files, delete files, and synchronize your upload directory. It also provides information on the amount of disk space used and available.
1.0.0
Yes
Host Settings
The Super User can manage the configuration settings which apply to the entire site.
1.0.0
Yes
HTML
This module renders a block of HTML or Text content. The Html/Text module allows authorized users to edit the content either inline or in a separate administration page. Optional tokens can be used that get replaced dynamically during display. All versions of content are stored in the database including the ability to rollback to an older version.
5.2.0
No
Languages
1.0.0
Yes
Links
This module renders a list of hyperlinks. Links includes an edit page, which allows authorized users to edit the Links data stored in the SQL database.
4.0.1
No
Lists
Allows you to edit common lists.
1.0.0
Yes
Log Viewer
Allows you to view log entries for portal events.
1.0.0
Yes
Map
The core map module for DotNetNuke.
1.0.9
No
Messaging
The Messaging module allows users to send and receive private messages.
1.0.0
Yes
Portals
The Super User can manage the various parent and child Portals within the site. This module allows you to add a new portal, modify an existing portal, and delete a portal.
1.0.0
Yes
Recycle Bin
The Recycle Bin provides an interface for restoring or permanently deleting Tabs and Modules.
1.0.0
Yes
Scheduler
Allows you to schedule tasks to be run at specified intervals.
1.0.0
Yes
Search Admin
The Search Admininstrator provides the ability to manage search settings.
1.0.0
Yes
Search Results
The Search Results module displays search results.
1.0.0
No
SearchInput
The Search Input module provides the ability to submit a search to a given search results module.
1.0.0
No
Site Log
Administrators can view the details of visitors using their portal. There are a variety of reports available to display information regarding site usage, membership, and volumes.
1.0.0
Yes
Sitemap
1.0.0
Yes
SiteWizard
The Administrator can use this user-friendly wizard to set up the common Extensions of the Portal/Site.
1.0.0
Yes
Skin Designer
Allows you to modify skin attributes.
1.0.0
Yes
Skins
1.0.0
Yes
Solutions
Browse additional solutions for your application.
1.0.0
Yes
SQL
The Super User can execute SQL statements against the database.
1.0.0
Yes
Tabs
Administrators can manage the Tabs within the portal. This module allows you to create a new tab, modify an existing tab, delete tabs, change the tab order, and change the hierarchical tab level.
1.0.0
Yes
Taxonomy Manager
Administrators can manage the Taxonomy for their portal.
1.0.0
Yes
Users and Roles
Administrators can manage the security roles defined for their portal. The module allows you to add new security roles, modifexisting security roles, delete security roles, and manage the users assigned to security roles.
1.0.0
Yes
Vendors
Administrators can manage the Vendors and Banners associated to the portal. This module allows you to add a new vendor, modify an existing vendor, and delete a vendor.
1.0.0
Yes
ViewProfile
1.0.0
Yes
------------------------------------------------------------------------------------------------------------
If you need anymore information than what I have already provided let me know.
Thanks,
Bo