Unknown attribute xmlns

Posted on 2006-05-20
Last Modified: 2008-01-09
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="">
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?
Question by:LarsNess
    LVL 11

    Accepted 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.
    LVL 27

    Expert Comment

    another option  to switch the framework is using the ASPNET VersionSwitcher


    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
    User art_snob ( encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now