Unrecognized attribute 'xmls' when working with vs. Net express Edition

Source: Internet
Author: User
Problems encountered when executing Asp.net 2.0 are mainly caused by version loading.

Unrecognized attribute 'xmls' when working with vs. Net express Edition

Symptoms
When using vs. NET web developer express edition, you may have a site that compiles fine in the development environment but fails when you copy it to the local IIS server.

Cause
ASP. NET 2.0 is not the default. net version used by IIS. it works in the development environment because. net compiles a virtual web server with the proper. net version before code compilation begins.

Thinking it occurred because the virtual directory wasn't identified as an application, I created a site (called personal) that mapped to the directory I copied, but still failed.

As it turns out, 'xmls' is a component in ASP. NET 2.0, and will generate that error when compiled on an IIS server running ASP. NET 1.1. this is delightfully easy to fix:

  • Open Internet Information Services and navigate to "Default web site" (or the site you're using as your default ).
  • Right click the site icon (the one with the globe ).
  • Select the ASP. NET tab. You'll see a drop-down with the available versions (if you're getting the error, odds are, you'll see 1.1 ).
  • Select the proper build of ASP. NET 2.0.
  • Restart IIS.

Your page shocould now work.

Posted on Sunday, August 21,200 AM

Feedback

# Re: Unrecognized attribute 'xmls' when working with vs. Net express edition 11/4/2005 AM Paul Campbell

Legend!

Thanks man-very helpful

# Re: Unrecognized attribute 'xmls' when working with vs. Net express edition 11/7/2005 8:36 AM AJ

(Forgot to add this: please email me at raj@rhealsoft.com or raj@xtremebiz.biz if you have a solution for this)

Hi,

Can you help me with this:

I have an Asp.net 1.1 Application FOLDER inside an Asp.net 2.0 APPLICATION folder.

Although I have set IIS to run the 1.1 Application folder under Asp.net 1.1 DLL, when I try to access my 1.1 Application, I get the same xmlns runtime error.

This is happening because Asp.net 1.1 first tries to read the web. config of the upper level folder which infact is 2.0 application's web. config File and so it cant recognize this. is there a work around for this

Thanks in advance,
Raj

# Re: Unrecognized attribute 'xmls' when working with vs. Net express edition 11/7/2005 am opsan

That is really interesting; can you run a 1.1 Application Inside a 2.0 folder? Is the 2.0 folder a virtual directory? If so, I-think-it 'd be recognized as a 2.0 application.

That said, what is your need to have a nested 1.1 application? If you run the 1.1 Application in it's own 1.1 folder, does it function alongside your 2.0 Environment? I wocould login CT IIS to support that.

# Re: Unrecognized attribute 'xmls' when working with vs. Net express edition 11/10/2005 7:34 am john doe

Can't you just add a new Web. config file in the ASP. NET 1.1 directory? It shoshould use that file rather than the root web. config.

# Re: Unrecognized attribute 'xmls' when working with vs. Net express edition 11/10/2005 8:09 am opsan

Great suggestion; does that work? I seem to recall being able to assign custom. config files rather than the standard web. config, which might also allow.

I guess I don't quite understand the problem space; Maybe Raj can enlighten us.

# Re: Unrecognized attribute 'xmls' when working with vs. Net express edition 11/10/2005 8:16 am adam

Thanks a bunch. You are a real life saver.

# Re: Unrecognized attribute 'xmls' when working with vs. Net express edition 11/18/2005 6:20 am Chris

Thank you very much, I was getting quite frustrated with this error!

# Re: Unrecognized attribute 'xmls' when working with vs. Net express edition 11/26/2005 :34 am Jim sneeringer

I have the same error message, but there is no ASP. net tab. when I look under c: \ windows \ Microsoft. net \ framework, there is no folder. NET 2.0, but when I try to reinstall. NET 2.0, it tells me it is already installed. I went to Add/Remove Programs to try to uninstall, but only 1.0 and 1.1 are there.

Anyone have any ideas?

# Re: Unrecognized attribute 'xmls' when working with vs. Net express edition 11/26/2005 405 PM opsan

It does sound like. NET 2.0 is not installed; is it possible you installed a beta version at one time or another?

Are there any other post-. NET 2.0 programs installed? Winfx beta, perhaps?

# Re: Unrecognized attribute 'xmls' when working with vs. Net express edition 11/30/2005 PM Matthew Parker

Thanx for the help, solved my problem

# Unrecognized attribute 'xmls' when working with vs. Net express edition 12/18/2005 am Anil Kumar

Iam Using XP o/s
. NET Framework 1.1 Configuration

(Version 1.1.4322.573

An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser error message: Unrecognized attribute 'xmls'

# Re: Unrecognized attribute 'xmls' when working with vs. Net express edition 12/18/2005 8:55 am opsan

Anil, if this is request for balance, this article covers your issue. Please step through it and advise if it doesn't resolve the problem.

# Re: Unrecognized attribute 'xmls' when working with vs. Net express edition 12/19/2005 PM unfrustrated

It worked, thanks!

# Re: Unrecognized attribute 'xmls' when working with vs. Net express edition 3/8/2006 5:19 am Taj

Thanks

# Re: Unrecognized attribute 'xmls' when working with vs. Net express edition 4/15/2006 8:23 am thiru

Amazing post... I searched for two days to fix this problem... great... thanx...

# Re: Unrecognized attribute 'xmls' when working with vs. Net express edition 5/11/2006 8:30 am daniel

Strange! When I follow the advise and change the ASP. net version under the ASP. nettab of the default web site properties from 1.1 to 2.0 this does not have any effect. instead, after Restarting IIS the ASP. net version is switched back to 1.1

# Re: Unrecognized attribute 'xmls' when working with vs. Net express edition 5/11/2006 8:48 AM Daniel

Found the reason!
When Restarting IIS the ASP. Net version seems to be switched to 1.1 whenever there is at least one application that is set to 1.1

# Re: Unrecognized attribute 'xmls' when working with vs. Net express edition 5/15/2006 8:39 am Andrea

Thanks !!! Very helpfull

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.