Solved

old version

Posted on 2011-03-03
6
739 Views
Last Modified: 2012-05-11
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
Comment
Question by:jagguy
  • 3
  • 2
6 Comments
 
LVL 13

Expert Comment

by:devlab2012
Comment Utility
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
 
LVL 8

Expert Comment

by:Anurag Agarwal
Comment Utility
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
 

Author Comment

by:jagguy
Comment Utility
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 8

Expert Comment

by:Anurag Agarwal
Comment Utility
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
 

Accepted Solution

by:
jagguy earned 0 total points
Comment Utility
the problem was virtual directory set up seems to work now
0
 

Author Closing Comment

by:jagguy
Comment Utility
last comment
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Explain Unit of Work pattern 2 46
popup message 3 26
Azure Web App - See files 3 21
DLL in ASP.NET 20 38
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now