Welcome to HostingForumz.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Is there an XML Schema for the web.config file

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Next:  Search Engine Optimization Tutorials  
Author Message
JimM

External


Since: Oct 19, 2005
Posts: 4



(Msg. 1) Posted: Thu Oct 20, 2005 12:02 pm
Post subject: Is there an XML Schema for the web.config file
Archived from groups: microsoft>public>inetserver>iis (more info?)

Is there a XML schema definition for the web.config file? I am looking for
one to validate the file.
--
Jim

 >> Stay informed about: Is there an XML Schema for the web.config file 
Back to top
Login to vote
Wei-Dong XU [MSFT]

External


Since: Feb 05, 2005
Posts: 100



(Msg. 2) Posted: Fri Oct 21, 2005 6:49 am
Post subject: RE: Is there an XML Schema for the web.config file [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Jim,

Yes, there is one schema for web.config. However, it is not public. This is
mostly because ASP.net runtime will parse the web.config at the first
access of the web application. ASP.net will parse it for you and if it is
invalid, ASP.net will return error immediately. So there is no one schema
available.

Please feel free to let me know if you have any further question on this
matter.

Best Regards,
Wei-Dong XU
Microsoft Product Support Services
This posting is provided "AS IS" with no warranties, and confers no rights.
It is my pleasure to be of assistance.

 >> Stay informed about: Is there an XML Schema for the web.config file 
Back to top
Login to vote
JimM

External


Since: Oct 19, 2005
Posts: 4



(Msg. 3) Posted: Fri Oct 21, 2005 9:25 am
Post subject: RE: Is there an XML Schema for the web.config file [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks for the response.

Too bad the schema is not public. It would be nice to have. You could
validate the XML in Visual Studio in stead of when ASP.NET parses it. I am
not impressed with the errors ASP.NET returns. I have one occasion where the
error report was the web.config file needed either:

<customErrors mode="RemoteOnly">
<error statusCode="nnn" redirect="Errornnn.htm" />
</customErrors>
or
<<customErrors mode="Off" />

The customeErrors element was in the file, in its normal generated location,
but the cause of the error was above it. Validating the file would have found
the problem before running the ASP.NET application.

I suggest the schema be made public so Visual Studio can be used to validate
the web.config before running the ASP.NET application. With the enterprise
framework for the web.config file I would thought one would be available.

--
Jim


"Wei-Dong XU [MSFT]" wrote:

> Hi Jim,
>
> Yes, there is one schema for web.config. However, it is not public. This is
> mostly because ASP.net runtime will parse the web.config at the first
> access of the web application. ASP.net will parse it for you and if it is
> invalid, ASP.net will return error immediately. So there is no one schema
> available.
>
> Please feel free to let me know if you have any further question on this
> matter.
>
> Best Regards,
> Wei-Dong XU
> Microsoft Product Support Services
> This posting is provided "AS IS" with no warranties, and confers no rights.
> It is my pleasure to be of assistance.
>
>
 >> Stay informed about: Is there an XML Schema for the web.config file 
Back to top
Login to vote
Wei-Dong XU [MSFT]

External


Since: Feb 05, 2005
Posts: 100



(Msg. 4) Posted: Mon Oct 24, 2005 2:55 am
Post subject: RE: Is there an XML Schema for the web.config file [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Jim,

Thanks for the great suggestion! I have reported this as one product
feedback to product team. Hope it will be added into the ASP.net in a near
future!

Best Regards,
Wei-Dong XU
Microsoft Product Support Services
This posting is provided "AS IS" with no warranties, and confers no rights.
It is my pleasure to be of assistance.
 >> Stay informed about: Is there an XML Schema for the web.config file 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]