Web Deploy MVC 3.0 Nerd Dinner There is a duplicate 'uri' section defined

May 25, 2011 at 12:08 PM

I'm triyng to deploy nerd dinner and the publish is successful but I'm getting the following error:

HTTP Error 500.19 - Internal Server Error

The requested page cannot be accessed because the related configuration data for the page is invalid.

Module IIS Web Core
Notification Unknown
Handler Not yet determined
Error Code 0x800700b7
Config Error There is a duplicate 'uri' section defined
Config File \\?\C:\inetpub\DinnerNow\web.config

Config Source

   14: 		<section name="dotNetOpenAuth" type="DotNetOpenAuth.Configuration.DotNetOpenAuthSection" requirePermission="false" allowLocation="true" />
   15: 		<section name="uri" type="System.Configuration.UriSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
   16: 	</configSections>
I haven't changed anything but I've been looking around and tried this unsuccessfully: http://stackoverflow.com/questions/4757291/dotnetopenauth-3-4-6-with-mvc3-invalidoperationexception
Any ideas?
Coordinator
May 26, 2011 at 2:30 PM

Have you tried removing the '<section name="uri" type="System.Configuration.UriSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />' section?

It seems that the DotNetOpenAuth inserts this section.