Last post Oct 12, 2011 09:09 AM by Tickthebox
Oct 11, 2011 11:35 PM|Tickthebox|LINK
I am a student who is trying to teach myself webforms, who has just downloaded VS express 2010 and created the default website webform. I have built the web site with no errors, and I have copied the web site into the root folder c:\inetweb\www.root\webtrial\trial2
and refreshed.The web site is fine when it is viewed in browser, However, when I browse within iis manager, I get the above error. Why? Please note that sometimes within the mnager, the option to change .Net settings, sometimes =v2.0(50727) with the option
to change it to V4.0(30319). Apologies it this question has been asked before. windows 7 i5 laptop
Oct 12, 2011 01:45 AM|markfitzme|LINK
You would get this error if the application pool for that site is running ASP.Net v 2.x to 3.x. The targetFramework attribute was introduced starting in the 4.0 version of the framework, so previous versions hiccup when they see it. If it's a 4.0 site, change
the application pool to the 4.0 framework and the error will go away.
You'll probably just want to change the application pool to 4.0 as Visual Studio doesn't necessarily know what IIS is doing as it can work without ever talking to it's settings. That's the main reason for some of the errors. When viewing through Visual Studio
you aren't usually going through IIS, but instead a baby developer server which binds just to that project while it's running. Hence the no errors since it's not IIS.
Oct 12, 2011 09:09 AM|Tickthebox|LINK
Thanks very much. It worked!