11 November, 2011

Troubleshooting WebSite publishing in Windows 7

Windows logoImage via Wikipedia11-Nov-2011

This is how I found out about the 'BIG' difference between 'COPYING' and 'COMPILING' when publishing a web site, in Windows 7.

  • Follow deployment tutorial from MSDN (compiled web site, published locally)
  • Error: ASP.NET 4.0 application error: Unrecognized attribute 'targetFramework'...
  • Change IIS DefaultAppPool .NET Framework Version to "4.xxx".
  • Error: HTTP Error 500.21 - Internal Server Error
  •  
  • Run "%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i". This is to correct installation of ASP.NET
  • Error: none; website is displayed correctly, and working.
NOTE: \Framework\vN.xxx\ -> this is according to the version that is installed in your computer.
Check from the following folder: C:\Windows\Microsoft.NET\Framework\

I hope that this will be of help to many developers like me who struggles with using the latest technologies, but get stuck somewhere in the middle, one way or another...

Till then!

Enhanced by Zemanta

No comments:

Post a Comment