June 15th, 2012, 11:39 AM
Problem testing website on iis
hi i created a simple website on asp.net and i tested it and it works fine on visual studio but when i try to test it on iis it does not work it returns an error
I'm testing it on my laptop and i have the iis that is installed in window 7
Server Error in '/cse' Application.
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.
Line 15: </connectionStrings>
Line 16: <system.web>
Line 17: <compilation debug="true" strict="false" explicit="true" targetFramework="4.0" />
Line 19: <authentication mode="Forms">
Source File: C:\Users\jb\try\web.config Line: 17
looks like the problem is that my web config is set to net 4 and the iis application pool is set to 2 so i tried to change the application pool to 4 but it didn't help and it seems the page is still running on because on the bottom of the error it says
Version Information: Microsoft .NET Framework Version:2.0.50727.5420; ASP.NET Version:2.0.50727.5420
so maybe there is a different way to change the net
i also tried to change the config file to net 2 but it also failed to work
any ideas help?
June 20th, 2012, 12:46 PM
I don't have any suggestions, sorry. Often googling for the exact error message turns up help from others who have had similar problems.
I've never been able to appreciate the sublime arrogance of folks who feel they were put on earth just to save other folks from themselves .." - Donald Hamilton
June 20th, 2012, 09:44 PM
It seems that you havent configured .net 4 properly. Please reinstall it again. If you see an error message, your site should be working on .net 4 version.
Originally Posted by jcgldr