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

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ....NET Framework error.NET Framework error
Previous
 
Next
New Post
4/25/2012 4:12 PM
 

I have a site that i have been developing.. I decided to start over from scratch, so...I have created a new directory and modified the security for that directory - allow all on Users(LAPTOP\Users), allow all on IIS_IURS (LAPTOP\IIS_IUSRS) and allow all on NETWORKSERVICE - I went to Webmatrix and created site from folder (SM1) , the site when i run it in a browser installs dnn. ver 6.1.5 - no errors, install went fine.

I use Visual studios 2010, but when i try to launch VS from webMatrix it launches Visual studios 2008. The site comes up fine in the VS2008. 

Few questions here. How do I get it to open in VS2010?

When I try to open the site in VS2010, I get the following window

The Web site 'C:...\SM1\' is configured to run on an older version of the .NET Framework. Do you want to upgrade the Web site to use .NET Framework version 4.0(...change later using Poject Properties...) 
check/ do the same for all webs targeting an older .Net Framework in this solution

I agreed to this upgrade.

Now when i go to my browser and reload the site, i get the following error:

Server Error in '/' Application.

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.

Source Error: 

Line 124: --> Line 125: <!-- set debugmode to false for running application --> Line 126: <compilation debug="false" strict="false" targetFramework="4.0"> Line 127: <buildProviders> Line 128: <remove extension=".resx"/>

Source File: C:\inetpub\wwwroot\SM1\web.config    Line: 126 


Version Information: Microsoft .NET Framework Version:2.0.50727.5448; ASP.NET Version:2.0.50727.5456 

I see the problem:
Version Information: Microsoft .NET Framework Version:2.0.50727.5448; ASP.NET Version:2.0.50727.5456  

But I have no idea how to resolve this. 

Please advise,
A timely response is needed, my time frame is very critical at this point. Appreciate any assistance anyone can give.




 
New Post
4/25/2012 8:04 PM
 

The Web site 'C:...\SM1\' is configured to run on an older version of the .NET Framework. Do you want to upgrade the Web site to use .NET Framework version 4.0

This mean that you using .NET 2.0 or 3.5 but .NET 4.0 is needed !  You have to change your applicationpool to use .NET 4.0.

 
New Post
5/19/2012 3:44 AM
 
Pls help i have one problem i think is equal, when i try to open me website on browser happens this:



Server Error in '/gabriel/gabriel' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.

Source Error:

Line 125: -->
Line 126:
Line 127:
Line 128:
Line 129:


Source File: c:\inetpub\wwwroot\gabriel\web.config Line: 127

Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082
 
New Post
5/19/2012 12:02 PM
 
Please check the .NET Version of your application pool on your IIS.  It should be the Version 4.0 now. On the information you posted on the post above I see your IIS is still using .NET 3.5.
 
New Post
5/20/2012 3:13 AM
 
OK, sounds like you found the problem..

is this the correct way to do what you suggested?

Chances are you need to install .NET 4 (Which will also take care of a new AppPool for you)

  1. Open your command prompt (Windows + R) and type cmd and press ENTER
    You may need to start this as an administrator if you have UAC enabled.
    To do so, locate the exe (usually you can start typing with Start Menu open), right click and select "Run as Administrator"
  2. Type cd C:\Windows\Microsoft.NET\Framework\v4.0.30319\ and press ENTER.
  3. Type aspnet_regiis.exe -ir and press ENTER again.
    • at this point you will see it begin working on installing .NET's framework in to IIS for you
  4. Close the DOS prompt, re-open your start menu and right click Computer and select Manage
  5. Expand the left-hand side (Services and Applications) and select Internet Information Services
    • You'll now have a new applet within the content window exclusively for IIS.
  6. Expand out your computer and locate the Application Pools node, and select it. (You should now see ASP.NET v4.0 listed)
  7. Expand out your Sites node and locate the site you want to modify (select it)
  8. To the right you'll notice Basic Settings... just below the Edit Site text. Click this, and a new window should appear
  9. Select the .NET 4 AppPool using the Select... button and click ok.
  10. Restart the site, and you should be good-to-go.

(You can repeat steps 7-on for every site you want to apply .NET 4 on as well).


Just dont want to mess anything up...

Thanks for your help

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ....NET Framework error.NET Framework error


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