Downloaded a fresh copy of DNN 6 and opened it up in Visual Studio 2010 as a website. VS initially displays a prompt asking if I want to upgrade the website to the latest .net framework (.net 4.0), to which i say yes. After the upgrade process completes, I check the web.config and see some of the changes upgrading to .net 4.0:
<
assemblies
>
<
add
assembly
=
"Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"
/>
<
add
assembly
=
"System.DirectoryServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"
/>
<
add
assembly
=
"System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"
/>
<
add
assembly
=
"System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"
/>
<
add
assembly
=
"System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"
/>
<
add
assembly
=
"System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>
</
assemblies
>
I then run the website through Visual Studio and go through the installation process successfully. After browsing through the site, I noticed that whenever I click the "Update" button under Admin -> Site Settings or Host -> Host Settings, I get a javascript error, and the page never saves or changes, but instead just sits and spins. Looking at firebug, the error "
can't convert undefined to object" is occurring in the jQuery file.
After doing some testing, I decided to just try installing the website on the server directly and not use Visual Studio. So I setup up a website on our server, using IIS 6 with the .net version set to .net 4.0. After completing the installation process, I try updating the Site Settings and of course they work as expected. I check the .net version under Host -> Host Settings and it shows .net 4.0. However when I look at the web.config, everything in there still looks like it is using .net 3.5.:
<
assemblies
>
<
add
assembly
=
"Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"
/>
<
add
assembly
=
"System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"
/>
<
add
assembly
=
"System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"
/>
<
add
assembly
=
"System.Management, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"
/>
<
add
assembly
=
"System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"
/>
<
add
assembly
=
"System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>
<
add
assembly
=
"System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"
/>
<
add
assembly
=
"System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"
/>
<
add
assembly
=
"System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"
/>
<
add
assembly
=
"System.Web.Abstractions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>
</
assemblies
>
<
providerOption
name
=
"WarnAsError"
value
=
"false"
/>
</
compiler
>
</
compilers
>
</
system.codedom
>
What is the correct way to upgrade the site to .net 4.0? And why am I seeing errors when I do the upgrade through Visual Studio?