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...Getting StartedGetting StartedDotNetNuke.dll requires a later version of .net?DotNetNuke.dll requires a later version of .net?
Previous
 
Next
New Post
2/15/2011 7:41 AM
 
Hello everyone,

I've just installed the Install version of DNN 5.6.1, and opened a new project in VS using Dotnetnuke Compiled Module template.

The issue I'm facing is that VS throws errors when i try to add dotnetnuke.dll in references dialog box:
'DotNetNuke.dll', or one of its dependencies, requires a later version of .NET Framework than the one specified in the project. You can change .NET Framework target etc, etc, etc

It should be mentioned that the app pool .NET version I'm running this installation on is 2.0. Current project .NET version is 2.0. When I change to 4.0 all the errors disappear, and the project builds smoothly, but I need it to run on 2.0 also... The Dotnetnuke.dll version is 5.6.1.238

I just can't figure out what the problem is, cause I run the whole dnn app on the .NET v2.0, but VS refuses to add the dotnetnuke.dll to the references in case of compilation target 2.0, and if I agree to add the reference, it doesn't build.

Please advise me some...

Thanks!
 - David

 
New Post
2/15/2011 10:28 AM
 
DotNetNuke versions 5.02.00 and later require that the application pool be running under ASP.Net 3.5 SP 1 or ASP.Net 4.0. I suspect that you are missing the installation or proper registration of ASP.Net 3.5 SP 1 which "runs on top of" ASP.Net 2.0. There is no separate selection in IIS for 3.5 - the selection will still be shown as 2.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
2/15/2011 10:58 AM
 
Hi William,

Thanks for the answer. If I got you right the following statements should be correct:
  1. DNN minimum requirement for .NET framework is 3.5 SP1;
  2. App pool running DNN installation having .NET Framework v2.0.50527 actually utilizes 3.5 SP1.
  3. Having 1 and 2 means that developing new modules requires VS target compile framework being minimum of 3.5 SP1.

Are all of these correct?

Thanks again!
- David

 
New Post
2/15/2011 1:48 PM
 
That's correct, David. In VS I have the option of targeting .Net frameworks 2.0, 3.0, 3.5 and 4.0. If you will be referencing DotNetNuke.dll from versions 5.02.00 and later, you must target 3.5 or 4.0 for your new module projects. Unless you will be developing a Razor based module, it is best to target 3.5. Razor, however, requires targeting 4.0 AND having the ASP.Net MVC 3 framework installed.

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
2/15/2011 3:06 PM
 
Thanks for exhaustive explanation, Wililam!

Sincerely,
 - David
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting StartedDotNetNuke.dll requires a later version of .net?DotNetNuke.dll requires a later version of .net?


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