Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Error upgrading to .Net 4.0Error upgrading to .Net 4.0
Previous
 
Next
New Post
1/27/2011 10:55 AM
 
I recently moved my DNN instance to Windows Server 2008 and in the process upgraded the site to .Net 4.0 (or at least I attempted to do so.)   Everything seems to be functioning properly with no visible errors showing during the running of the site.   However, there are 2 things that are showing up in the event viewer that are weird.     The first is this:

UpgradeNet: Upgrade to .NET 4.0 failed. Error reported during attemp ...
UpgradeNet: Upgrade to .NET 4.0 failed. Error reported during attempt to update:Error: Object reference not set to an instance of an object. at DotNetNuke.Services.Installer.XmlMerge.UpdateNode(XmlNode rootNode, XmlNode actionNode) at DotNetNuke.Services.Installer.XmlMerge.ProcessNode(XmlNode node) at DotNetNuke.Services.Installer.XmlMerge.ProcessNodes(XmlNodeList nodes, Boolean saveConfig) at DotNetNuke.Services.Installer.XmlMerge.UpdateConfigs() at DotNetNuke.Services.Upgrade.Upgrade.UpdateConfig(String strConfigFile, Version version, String strReason)

The second is this:

General Exception       AssemblyVersion: 5.6.1; PortalID: -1; PortalName ...
AssemblyVersion: 5.6.1
PortalID: -1
PortalName
UserID: -1
UserName
ActiveTabID: -1
ActiveTabName
RawURL: /DesktopModules/Events/EventRSS.aspx?mid=1361&tabid=742
AbsoluteURL: /DesktopModules/Events/EventRSS.aspx
AbsoluteURLReferrer
UserAgent: YahooFeedSeeker/2.0 (compatible; Mozilla 4.0; MSIE 5.5; http://publisher.yahoo.com/rssguide)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: a8b5dcef-71c5-4801-b85b-9fa4dac31a6f
InnerException: Object reference not set to an instance of an object.
FileName
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.Services.Installer.XmlMerge.UpdateNode
StackTrace
Message: System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Services.Installer.XmlMerge.UpdateNode(XmlNode rootNode, XmlNode actionNode) at DotNetNuke.Services.Installer.XmlMerge.ProcessNode(XmlNode node) at DotNetNuke.Services.Installer.XmlMerge.ProcessNodes(XmlNodeList nodes, Boolean saveConfig) at DotNetNuke.Services.Installer.XmlMerge.UpdateConfigs() at DotNetNuke.Services.Upgrade.Upgrade.UpdateConfig(String strConfigFile, Version version, String strReason)

Both seem to be related to the same thing, but I for the life of me can't figure out where the error is occurring or how to fix it.    Any ideas on what I should be doing to fix this issue?   I'd like to get everything working properly under .Net 4.0.   

A point in the right direction would be much appreciated. 

Thanks.
 
New Post
1/27/2011 1:18 PM
 
There are only three modifications made to web.config when switching to ASP.Net 4.0 so these can easily be made manually. The automatic update to web.config using the XmlMerge capability can fail in some cases such as if the ASP.Net worker process account does not have sufficient permissions on the root folder of the website, if web.config is read-only, or if a <location . . > section is used in the web.config.

Here are the three changes:

1. The attribute/value requestValidationMode="2.0" is added to the <httpRuntime . . . /> node.

2. The <bindingRedirect . . . /> for System.Web.Extensions is changed to the following:

<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion-"4.0.0.0" />

3. The <bindingRedirect . . . /> for System.Web.Extensions.Design is changed to the following:

<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion-"4.0.0.0" />


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
1/27/2011 1:41 PM
 
Well that did the trick.  

I didn't have any of those pieces in the web config.   

Adding them all in seems to have fixed the issue.  

If your ever in Fort Collins, CO, lemme know  I owe you a beer! 

Thanks!

Chaitanya Marvici
 
New Post
1/27/2011 9:52 PM
 
I'm glad that that fixed it for you! And thanks for the offer of a beer.

I would be interested to know, however, if your web.config file includes a <location> section as that may be one of the key causes of the XmlMerge filing to update the web.config for ASP.Net 4.0.

Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
1/27/2011 11:00 PM
 
No location node in the web.config file.   

Looking back, I think what happened was strictly a permission issue during the upgrade.  Having just moved it to a new server, I am pretty sure that I attempted to do the upgrade before I had the file permissions set properly for the application.   

That and it seems that it was looking for nodes that did not exist in the file.   

Either way it's working good now...I just needed a little nudge in the right direction.  :)

Chaitanya Marvici
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Error upgrading to .Net 4.0Error upgrading to .Net 4.0


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out