• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 792
  • Last Modified:

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" />
0
jagguy
Asked:
jagguy
  • 3
  • 2
1 Solution
 
devlab2012Commented:
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.
0
 
Anurag AgarwalCommented:
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" />
0
 
jagguyAuthor Commented:
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?
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
Anurag AgarwalCommented:
Please mention which IIS u r using IIS6 or IIS7 secondly pls paste your webconfig file here,

is your application running properly from vs2010 ??
0
 
jagguyAuthor Commented:
the problem was virtual directory set up seems to work now
0
 
jagguyAuthor Commented:
last comment
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now