‘Unrecognized attribute xmlns’ errors

APS.Net 2.0 is not the default .Net version used by IIS. It works in the development environment because VS.Net compiles a virtual web server with the proper .Net version before code compilation begins.


As it turns out, ‘xmlns’ is a component in ASP.Net 2.0 and will generate that error when compiled on an IIS server running ASP.Net 1.1. To fix this:


  • Open Internet Information Services and navigate to ‘Default Web Site’ (or whatever).
  • Right click the site icon
  • Select ASP.Net tab
  • Select the proper version of .Net
  • Restart IIS

Comments are closed.