Unrecognized attribute targetFramework error: W2003 & IIS 6

canuckconsulting
canuckconsulting used Ask the Experts™
on
I have an application which I have just moved from .Net 3..5 to 4.0.  Works great on my development machine (Windows 7) but when I deploy to Windows 2003 production server it chokes giving me Unrecognized attribute 'targetFramework' error.

I have installed .Net 4.0 Framework and enabled the set the Web Service Extention to Allowed.  I have set the ASP.Net version to 4 for the application.  
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2013
Commented:
You might have come across this ..but if not: http://forums.asp.net/t/1491204.aspx
Two things to note:
1: Setting application pool
2: Right framework version on server..

Author

Commented:
Thanks!  I cannot figure out how to set the framework used by the application pool in iis 6.  There is no .Net Framework section under properties.  Where can I find this?
Top Expert 2013

Commented:
I think you said you already  have set what is under ASP.NET Tab and that should do it.
And so for that case you should be fine.

Author

Commented:
I did that by right clicking the applicatin itself not the application pool.  Do IIS 6 Application pools not get configured to use a particular version of .Net?

It is kind of working now.  It was externally but if I try internally (localhost) it doesn't.  Mental.  I'll admit to not being the brightest spark but I'm surprised at how convoluted setting this up on W2k3 has been.  I guess instead of whining about 2003 I should be praising 2008!

Author

Commented:
I should have said that I'm not sure what got it working.  The last thing I did was register .net 4 using the /i switch.  I am far from convinced this was what did it!
Top Expert 2013

Commented:
good it is working...may be app pool recycling or something triggered the changed....

Author

Commented:
It is working but I wish i could conclusively say what change did it for future users.  Regardless, thank you for your help!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial