Bad web.config in AJAX.NET 1.0 under .NET 2.0 Express

My setup is MS.NET v2.0 with the C# and Web Express editions of 2005. I also installed the AJAX 1.0 release with the respective toolkit as indicated in the AJAX.NET site.

 However, when I create a new project I am presented with the usual bare bones default.aspx and the web.config. However the web.config shows a lot of warnings and errors.

One of them was being that the "requiredPermission" (or something like that) attribute was not recognized. Somewhere on the net there is a post of a correction to the DotNetConfig.xsd schema file in VS.2005 so I used it and it got rid of THAT warning.

 

But I still see the following:

 Message    1    Could not find schema information for the element 'system.web.extensions'.    E:\WebSites\TestProject\Web.config    46    4    E:\WebSites\TestProject\
Message    2    Could not find schema information for the element 'scripting'.    E:\WebSites\TestProject\Web.config    47    6    E:\WebSites\TestProject\
Message    3    Could not find schema information for the element 'webServices'.    E:\WebSites\TestProject\Web.config    48    8    E:\WebSites\TestProject\
Message    4    Could not find schema information for the element 'validation'.    E:\WebSites\TestProject\Web.config    78    6    E:\WebSites\TestProject\
Message    5    Could not find schema information for the attribute 'validateIntegratedModeConfiguration'.    E:\WebSites\TestProject\Web.config    78    17    E:\WebSites\TestProject\
Message    6    Could not find schema information for the element 'modules'.    E:\WebSites\TestProject\Web.config    79    6    E:\WebSites\TestProject\
Message    7    Could not find schema information for the element 'add'.    E:\WebSites\TestProject\Web.config    80    8    E:\WebSites\TestProject\
Message    8    Could not find schema information for the attribute 'name'.    E:\WebSites\TestProject\Web.config    80    12    E:\WebSites\TestProject\
Message    9    Could not find schema information for the attribute 'preCondition'.    E:\WebSites\TestProject\Web.config    80    32    E:\WebSites\TestProject\
Message    10    Could not find schema information for the attribute 'type'.    E:\WebSites\TestProject\Web.config    80    62    E:\WebSites\TestProject\
Message    11    Could not find schema information for the element 'handlers'.    E:\WebSites\TestProject\Web.config    82    6    E:\WebSites\TestProject\
Message    12    Could not find schema information for the element 'remove'.    E:\WebSites\TestProject\Web.config    83    8    E:\WebSites\TestProject\
Message    13    Could not find schema information for the attribute 'name'.    E:\WebSites\TestProject\Web.config    83    15    E:\WebSites\TestProject\
Message    14    Could not find schema information for the element 'add'.    E:\WebSites\TestProject\Web.config    84    8    E:\WebSites\TestProject\
Message    15    Could not find schema information for the attribute 'name'.    E:\WebSites\TestProject\Web.config    84    12    E:\WebSites\TestProject\
Message    16    Could not find schema information for the attribute 'verb'.    E:\WebSites\TestProject\Web.config    84    40    E:\WebSites\TestProject\
Message    17    Could not find schema information for the attribute 'path'.    E:\WebSites\TestProject\Web.config    84    49    E:\WebSites\TestProject\
Message    18    Could not find schema information for the attribute 'preCondition'.    E:\WebSites\TestProject\Web.config    84    63    E:\WebSites\TestProject\
Message    19    Could not find schema information for the attribute 'type'.    E:\WebSites\TestProject\Web.config    85    12    E:\WebSites\TestProject\
Message    20    Could not find schema information for the element 'add'.    E:\WebSites\TestProject\Web.config    86    8    E:\WebSites\TestProject\
Message    21    Could not find schema information for the attribute 'name'.    E:\WebSites\TestProject\Web.config    86    12    E:\WebSites\TestProject\
Message    22    Could not find schema information for the attribute 'verb'.    E:\WebSites\TestProject\Web.config    86    51    E:\WebSites\TestProject\
Message    23    Could not find schema information for the attribute 'path'.    E:\WebSites\TestProject\Web.config    86    60    E:\WebSites\TestProject\
Message    24    Could not find schema information for the attribute 'preCondition'.    E:\WebSites\TestProject\Web.config    86    84    E:\WebSites\TestProject\
Message    25    Could not find schema information for the attribute 'type'.    E:\WebSites\TestProject\Web.config    87    12    E:\WebSites\TestProject\
Message    26    Could not find schema information for the element 'add'.    E:\WebSites\TestProject\Web.config    88    8    E:\WebSites\TestProject\
Message    27    Could not find schema information for the attribute 'name'.    E:\WebSites\TestProject\Web.config    88    12    E:\WebSites\TestProject\
Message    28    Could not find schema information for the attribute 'preCondition'.    E:\WebSites\TestProject\Web.config    88    34    E:\WebSites\TestProject\
Message    29    Could not find schema information for the attribute 'verb'.    E:\WebSites\TestProject\Web.config    88    64    E:\WebSites\TestProject\
Message    30    Could not find schema information for the attribute 'path'.    E:\WebSites\TestProject\Web.config    88    80    E:\WebSites\TestProject\
Message    31    Could not find schema information for the attribute 'type'.    E:\WebSites\TestProject\Web.config    88    106    E:\WebSites\TestProject\
Error    32    Unrecognized attribute 'xmlns:xs'. Note that attribute names are case-sensitive.    E:\WebSites\TestProject\Web.config    2    
Error    33    E:\WebSites\TestProject\Default.aspx: ASP.NET runtime error: Unrecognized attribute 'xmlns:xs'. Note that attribute names are case-sensitive. (E:\WebSites\TestProject\web.config line 2)    E:\WebSites\TestProject\Default.aspx    1    1    E:\WebSites\TestProject\


 



0
degt
3/7/2007 12:35:11 PM
📁 asp.net.ajax-discussion
📃 13973 articles.
⭐ 1 followers.

💬 5 Replies
👁️‍🗨️ 1467 Views

Could you please post the link to the schema correction for the requiredPermission error??? My web.config does not like the requiredPermission attribute either.

Newbie

0
newbie06
3/7/2007 8:49:23 PM
newbie06:

Could you please post the link to the schema correction for the requiredPermission error??? My web.config does not like the requiredPermission attribute either.

Newbie

http://www.peterritchie.com/Hamlet/Downloads/74.aspx


"If you make it idiot proof, they'll build a better idiot"
0
MorningZ
3/7/2007 10:38:36 PM

Yeah! that is the link I was trying to recover but could not find it anymore. However, don't be too happy about it. Even with that fixed XSD you get 31 warnings. And if you follow the instructions to add the xmlns:xs and xmlns:vs attributes in configuration then you will have to add two errors on top of the 31 warnings!

 Quite frankly I don't know how they released 1.0 without having that fixed. In my web config I left my configuration tag bare, without the xmlns:vs and xmlns:xs attributes in order to get rid of the errors.



0
degt
3/7/2007 10:59:55 PM

You're substituting the word "error" and "warning" as if they are the same

just the fact that the compiler "warns" you that the attribute is unkown doesn't affect it compiling or running even the slightest of bits......  this has been a "bug" (more an "annoyance") for a very long time, but it doesn't stop anything from operating


"If you make it idiot proof, they'll build a better idiot"
0
MorningZ
3/8/2007 12:01:28 AM

MorningZ, I suppose your morning mood is causing you to misinterpret things. If there is something I know with 18 years in the market is the obvious difference between warning and error. However, I mentioned "Error" because the Express edition was also showing 2 errors (yes, the red thing) on the compilation of the website. The errors were related to the web.config file, and I repeat they were marked as errors in addition to the lots of annoying warnings.



0
degt
3/9/2007 1:38:51 PM
Reply: