Link to home
Start Free TrialLog in
Avatar of jagguy
jagguyFlag for Australia

asked on

old version

I nvs2010 I have .net 4 as default seting and on my host server I have a asp.net setting of .4 net but my page displays an error with .net version 2?

http://www.mymrt.net/sums1/sums1/intro.aspx


i add tis line in and i get another error
Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.

   <compilation debug="true" strict="false" explicit="true" targetFramework="4.0" />
Avatar of devlab2012
devlab2012
Flag of India image

remove the changes that you made in web.config

In IIS, create a new Application Pool with target framework as 4.0.
In IIS, change your web-site to "application". For this, In IIS right click your website node in IIS and select "Convert to Application". Then select the Application Pool created in above step.
the best thisng to solve this problem is to that if now you are using vs2010 for projects which were made in framework 2.0 (using vs2008 or vs2005 ) add new web config from vs2010 and remove/exclude old webconfig. Add all connectionstring and other keys to new webconfig as in webconfig of framework 4.0 its much different from webconfig 2.0 framework.

or else you can do    <compilation debug="true" strict="false" explicit="true" targetFramework="2.0" />
Avatar of jagguy

ASKER

I am making vs2010 projects using framework 4 . i am using code from older vs2008 projects but the files are all created in vs2010. I want to use .net 4

in my host panel i get IIS application pool disabled?
Please mention which IIS u r using IIS6 or IIS7 secondly pls paste your webconfig file here,

is your application running properly from vs2010 ??
ASKER CERTIFIED SOLUTION
Avatar of jagguy
jagguy
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jagguy

ASKER

last comment