[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 692
  • Last Modified:

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?
1 Solution
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.
Sammy AgeilCommented:
another option  to switch the framework is using the ASPNET VersionSwitcher


Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now