Unknown attribute xmlns

Hi Experts.

I have been using BDS 2006 to develop ASP.NET/C# solutions for framework 1.1, but I have now changed to Visual Studio 2005.

I am converting one of my sites already developed on BDS 2006 to VS and while I've got it up and running in the VS internal web server, I have some problems when publishing it in my localhost IIS. I get this:

Unknown attribute xmlns

Line 1:  <?xml version="1.0"?>
Line 2:  <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
Line 3:        <system.web>
Line 4:              <!--  DYNAMIC DEBUG COMPILATION

Source: web.config    Line: 2

I figured this to be a framework 1.1 -> 2.0 problem, so I tried the "aspnet_regiis -i" command on the folder, but it didn't help. Additionally I noticed that this command still installed ASP.NET (1.1.4322.0). Shouldn't I get 2.0.xx something here now, after installing VS2005/.NET framework 2.0?

My IIS is v5.1

Any clues?
Who is Participating?
Make sure you're actually using ASP.NET 2.0 to run your app, go to IIS MMC, right-click on your web site's property, navigate to ASP.NET tab and make sure that ASP Version dropdown list has 2.0.xxxxx.
another option  to switch the framework is using the ASPNET VersionSwitcher

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.