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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesConversion from Visual Studio 2008 to 2010Conversion from Visual Studio 2008 to 2010
Previous
 
Next
New Post
2/8/2011 6:46 AM
 
Hi,

I am developing a couple of modules (written in Visual Basic). I started out at around DotNetNuke 5.1.1 and in Visual Studio 2008 (Professional) and I am considering upgrading to Visual Studio 2010 (Premium). Can I just install Visual Studio 2010 (Premium) and continue developing or should I expect conversion problems?
 
New Post
2/8/2011 11:30 AM
 
You shouldn't run into any problems, you'll just need to open the solution in VS2010 when it's installed, it should handle the rest. I would recommend backing up your files before you open with VS2010 though just in case the conversion process has any issues.

Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
2/9/2011 4:04 AM
 
I will. Thank you!
 
New Post
2/15/2011 12:57 PM
 
I'm afraid the problems seem to be countless.

I started out as you suggested (after creating a backup) by opening my solution in Visual Studio 2010. The conversion wizard started and asked me if I wanted to upgrade my "website" to .NET Framework version 4.0. I clicked on No. After the conversion a number of error messages resulted coming from the AjaxControlToolkit (version: 3.0.30930.0) and a DLL-project that is in the same solution as my DNN module project. Both because they target a higher version of the .NET framework. (For 2 error messages, see below.) (Visual Studio 2008 was not so picky.)

I decided first to upgrade my DNN version from 5.1.4 to 5.6.1. (This resulted in itself in quite some error messages and took me a lot of time to accomplish with luckily some help.)

After this upgrade the previous error messages remained and were supplemented with error messages suggesting that DotNetNuke namespaces have changed / can't be referenced.

I've got .NET framework version 4 installed on my PC. Do you know if this means that DotNetNuke automatically uses it? (Even if I did not freshly install DNN, but upgraded it from a version (5.1.4) that did not support .NET 4?)

Error Messages (from AjaxControlToolkit):
"Warning           1          The primary reference "AjaxControlToolkit, Version=3.0.30930.28736, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e, processorArchitecture=MSIL" could not be resolved because it has an indirect dependency on the framework assembly "System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v2.0". To resolve this problem, either remove the reference "AjaxControlToolkit, Version=3.0.30930.28736, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e, processorArchitecture=MSIL" or retarget your application to a framework version which contains "System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"."

Error Messages (from DLL-project):
"Warning           2          The primary reference "D:\DotNetNuke\DesktopModules\DLL\bin\Debug\DLL.dll" could not be resolved because it has an indirect dependency on the framework assembly "System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v2.0". To resolve this problem, either remove the reference "D:\DotNetNuke\DesktopModules\DLL\bin\Debug\DLL.dll" or retarget your application to a framework version which contains "System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"."
 
New Post
2/15/2011 5:43 PM
Accepted Answer 
"I've got .NET framework version 4 installed on my PC. Do you know if this means that DotNetNuke automatically uses it? (Even if I did not freshly install DNN, but upgraded it from a version (5.1.4) that did not support .NET 4?)"

It seems to me that to make DotNetNuke run under .NET 4 you need to change the app pool in iis that is associated with the dnn application to run under .NET 4.

A few things I would try to resolve your issues in VS 2010 are:
1. Go to the properties of your project and select .NET 4 from the target framework dropdown. This will refactor your project references and include the proper dlls.

2. If #1 doesn't fix it, I would manually remove the dll references your project has by going to the references area in VS and removing the ones giving errors, then re-add them, only this time point them to the proper dlls under your .net 4 folders in your file structure

One thing to keep in mind(although I'm not sure about this) if you compile your project against .NET 4 then the production server where your production DNN is will also need .NET 4.
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesConversion from Visual Studio 2008 to 2010Conversion from Visual Studio 2008 to 2010


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