By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,384 Members | 671 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,384 IT Pros & Developers. It's quick & easy.

Changes for configuration in ASP.NET

P: n/a
Hi
I converted my existing ASP.NET project to VS.NET 2005. Build gives me some
warnings about config file.
I have custom section definition in web.config.
Were there any changes in this for ASP.NET 2.0. Where can I see what was
change and how I can migrate?
Thank you
Shimon.
Nov 19 '05 #1
Share this Question
Share on Google+
8 Replies


P: n/a
"some warnings"????
Could you give us a little more detail if possible.

Thanks

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Shimon Sim" wrote:
Hi
I converted my existing ASP.NET project to VS.NET 2005. Build gives me some
warnings about config file.
I have custom section definition in web.config.
Were there any changes in this for ASP.NET 2.0. Where can I see what was
change and how I can migrate?
Thank you
Shimon.

Nov 19 '05 #2

P: n/a
The conversion wizard must have prompted you
whether you wanted to create a backup.

If you did, just compare the converted files to the originals.

Juan T. Llibre
ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
==========================

"Shimon Sim" <sh**********@community.nospam> wrote in message
news:et**************@TK2MSFTNGP10.phx.gbl...
Hi
I converted my existing ASP.NET project to VS.NET 2005. Build gives me some warnings
about config file.
I have custom section definition in web.config.
Were there any changes in this for ASP.NET 2.0. Where can I see what was change and how
I can migrate?
Thank you
Shimon.

Nov 19 '05 #3

P: n/a
I have following entries in my web.config file:
<configSections>

<sectionGroup name="system.web">

<section name="siata.mail"
type="Company.Notifications.MailConfiguration,__Co de"/>

</sectionGroup>

</configSections>

and then later:

<system.web>

<siata.mail>

<server smtp="mail.sever.net" address="no**********@somesite.com"/>

</siata.mail>

<!-- DYNAMIC DE.....and so on

I get follwing message.
Warning 1 The element 'system.web' in namespace
'http://schemas.microsoft.com/.NetConfiguration/v2.0' has invalid child
element 'siata.mail' in namespace
'http://schemas.microsoft.com/.NetConfiguration/v2.0'. Expected
'anonymousIdentification, authentication, authorization, browserCaps,
clientTarget, compilation, customErrors, deployment, deviceFilters,
globalization, healthMonitoring, hostingEnvironment, httpCookies,
httpHandlers, httpModules, httpRuntime, identity, machineKey, membership,
mobileControls, pages, processModel, profile, protocols, roleManager,
securityPolicy, sessionPageState, sessionState, siteMap, trace, trust,
urlMappings, webControls, webParts, webServices, xhtml11Conformance,
caching' in namespace 'http://schemas.microsoft.com/.NetConfiguration/v2.0'.

It differs from the ASP.NET 1.1 version only in " __Code" part that used to
be the name of the project assembly.

Thank you
Shimon
"Curt_C [MVP]" <software_at_darkfalz.com> wrote in message
news:44**********************************@microsof t.com...
"some warnings"????
Could you give us a little more detail if possible.

Thanks

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Shimon Sim" wrote:
Hi
I converted my existing ASP.NET project to VS.NET 2005. Build gives me
some
warnings about config file.
I have custom section definition in web.config.
Were there any changes in this for ASP.NET 2.0. Where can I see what was
change and how I can migrate?
Thank you
Shimon.

Nov 19 '05 #4

P: n/a
Using Custom configuration sections in .Net 2.0 has changed quite a bit. I
have had the same problem. I found this article very helpful:

http://fredrik.nsquared2.com/viewpost.aspx?PostID=253

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"Shimon Sim" <sh**********@community.nospam> wrote in message
news:et**************@TK2MSFTNGP10.phx.gbl...
Hi
I converted my existing ASP.NET project to VS.NET 2005. Build gives me
some warnings about config file.
I have custom section definition in web.config.
Were there any changes in this for ASP.NET 2.0. Where can I see what was
change and how I can migrate?
Thank you
Shimon.

Nov 19 '05 #5

P: n/a
Thank a lot for the link.
Shimon.
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:OY**************@TK2MSFTNGP14.phx.gbl...
Using Custom configuration sections in .Net 2.0 has changed quite a bit. I
have had the same problem. I found this article very helpful:

http://fredrik.nsquared2.com/viewpost.aspx?PostID=253

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Neither a follower nor a lender be.

"Shimon Sim" <sh**********@community.nospam> wrote in message
news:et**************@TK2MSFTNGP10.phx.gbl...
Hi
I converted my existing ASP.NET project to VS.NET 2005. Build gives me
some warnings about config file.
I have custom section definition in web.config.
Were there any changes in this for ASP.NET 2.0. Where can I see what was
change and how I can migrate?
Thank you
Shimon.


Nov 19 '05 #6

P: n/a
Hi Shimon,

As for the configuration in ASP.NET 2.0's web.config, the exiting element
schema hasn't changed. And as for defining custom section and section
handler, you can refer to the other member's suggestion or the following
article:

http://fredrik.nsquared2.com/viewpost.aspx?PostID=253

And since the new custom section development model is quite simple and
clear, we strongly recommend that you migrate your old ones to the new
model.

And the warning message is just because your custom element's defination
doesn't exist in the ASP.NET buildin configuration schema, so the
design-time validation will output such warning. You can just ignore it for
your custom configuration section.

If there're any further questions, please feel free to post here.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| From: "Shimon Sim" <sh*********@community.nospam>
| References: <et**************@TK2MSFTNGP10.phx.gbl>
<44**********************************@microsoft.co m>
| Subject: Re: Changes for configuration in ASP.NET
| Date: Tue, 13 Sep 2005 14:22:16 -0400
| Lines: 77
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| Message-ID: <uP**************@tk2msftngp13.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: ool-44c05922.dyn.optonline.net 68.192.89.34
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msft ngp13.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:124291
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| I have following entries in my web.config file:
| <configSections>
|
| <sectionGroup name="system.web">
|
| <section name="siata.mail"
| type="Company.Notifications.MailConfiguration,__Co de"/>
|
| </sectionGroup>
|
| </configSections>
|
|
|
| and then later:
|
| <system.web>
|
| <siata.mail>
|
| <server smtp="mail.sever.net" address="no**********@somesite.com"/>
|
| </siata.mail>
|
| <!-- DYNAMIC DE.....and so on
|
| I get follwing message.
| Warning 1 The element 'system.web' in namespace
| 'http://schemas.microsoft.com/.NetConfiguration/v2.0' has invalid child
| element 'siata.mail' in namespace
| 'http://schemas.microsoft.com/.NetConfiguration/v2.0'. Expected
| 'anonymousIdentification, authentication, authorization, browserCaps,
| clientTarget, compilation, customErrors, deployment, deviceFilters,
| globalization, healthMonitoring, hostingEnvironment, httpCookies,
| httpHandlers, httpModules, httpRuntime, identity, machineKey, membership,
| mobileControls, pages, processModel, profile, protocols, roleManager,
| securityPolicy, sessionPageState, sessionState, siteMap, trace, trust,
| urlMappings, webControls, webParts, webServices, xhtml11Conformance,
| caching' in namespace
'http://schemas.microsoft.com/.NetConfiguration/v2.0'.
|
| It differs from the ASP.NET 1.1 version only in " __Code" part that used
to
| be the name of the project assembly.
|
| Thank you
| Shimon
|
|
| "Curt_C [MVP]" <software_at_darkfalz.com> wrote in message
| news:44**********************************@microsof t.com...
| > "some warnings"????
| > Could you give us a little more detail if possible.
| >
| > Thanks
| >
| > --
| > Curt Christianson
| > site: http://www.darkfalz.com
| > blog: http://blog.darkfalz.com
| >
| >
| >
| > "Shimon Sim" wrote:
| >
| >> Hi
| >> I converted my existing ASP.NET project to VS.NET 2005. Build gives me
| >> some
| >> warnings about config file.
| >> I have custom section definition in web.config.
| >> Were there any changes in this for ASP.NET 2.0. Where can I see what
was
| >> change and how I can migrate?
| >> Thank you
| >> Shimon.
| >>
| >>
| >>
|
|
|

Nov 19 '05 #7

P: n/a
Thanks to everyone.
Shimon.
"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
news:H5*************@TK2MSFTNGXA01.phx.gbl...
Hi Shimon,

As for the configuration in ASP.NET 2.0's web.config, the exiting element
schema hasn't changed. And as for defining custom section and section
handler, you can refer to the other member's suggestion or the following
article:

http://fredrik.nsquared2.com/viewpost.aspx?PostID=253

And since the new custom section development model is quite simple and
clear, we strongly recommend that you migrate your old ones to the new
model.

And the warning message is just because your custom element's defination
doesn't exist in the ASP.NET buildin configuration schema, so the
design-time validation will output such warning. You can just ignore it
for
your custom configuration section.

If there're any further questions, please feel free to post here.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| From: "Shimon Sim" <sh*********@community.nospam>
| References: <et**************@TK2MSFTNGP10.phx.gbl>
<44**********************************@microsoft.co m>
| Subject: Re: Changes for configuration in ASP.NET
| Date: Tue, 13 Sep 2005 14:22:16 -0400
| Lines: 77
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| Message-ID: <uP**************@tk2msftngp13.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: ool-44c05922.dyn.optonline.net 68.192.89.34
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msft ngp13.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:124291
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| I have following entries in my web.config file:
| <configSections>
|
| <sectionGroup name="system.web">
|
| <section name="siata.mail"
| type="Company.Notifications.MailConfiguration,__Co de"/>
|
| </sectionGroup>
|
| </configSections>
|
|
|
| and then later:
|
| <system.web>
|
| <siata.mail>
|
| <server smtp="mail.sever.net" address="no**********@somesite.com"/>
|
| </siata.mail>
|
| <!-- DYNAMIC DE.....and so on
|
| I get follwing message.
| Warning 1 The element 'system.web' in namespace
| 'http://schemas.microsoft.com/.NetConfiguration/v2.0' has invalid child
| element 'siata.mail' in namespace
| 'http://schemas.microsoft.com/.NetConfiguration/v2.0'. Expected
| 'anonymousIdentification, authentication, authorization, browserCaps,
| clientTarget, compilation, customErrors, deployment, deviceFilters,
| globalization, healthMonitoring, hostingEnvironment, httpCookies,
| httpHandlers, httpModules, httpRuntime, identity, machineKey,
membership,
| mobileControls, pages, processModel, profile, protocols, roleManager,
| securityPolicy, sessionPageState, sessionState, siteMap, trace, trust,
| urlMappings, webControls, webParts, webServices, xhtml11Conformance,
| caching' in namespace
'http://schemas.microsoft.com/.NetConfiguration/v2.0'.
|
| It differs from the ASP.NET 1.1 version only in " __Code" part that used
to
| be the name of the project assembly.
|
| Thank you
| Shimon
|
|
| "Curt_C [MVP]" <software_at_darkfalz.com> wrote in message
| news:44**********************************@microsof t.com...
| > "some warnings"????
| > Could you give us a little more detail if possible.
| >
| > Thanks
| >
| > --
| > Curt Christianson
| > site: http://www.darkfalz.com
| > blog: http://blog.darkfalz.com
| >
| >
| >
| > "Shimon Sim" wrote:
| >
| >> Hi
| >> I converted my existing ASP.NET project to VS.NET 2005. Build gives
me
| >> some
| >> warnings about config file.
| >> I have custom section definition in web.config.
| >> Were there any changes in this for ASP.NET 2.0. Where can I see what
was
| >> change and how I can migrate?
| >> Thank you
| >> Shimon.
| >>
| >>
| >>
|
|
|

Nov 19 '05 #8

P: n/a
You're welcome :-)

Enjoy ASP.NET 2.0!

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| From: "Shimon Sim" <sh**********@community.nospam>
| References: <et**************@TK2MSFTNGP10.phx.gbl>
<44**********************************@microsoft.co m>
<uP**************@tk2msftngp13.phx.gbl>
<H5*************@TK2MSFTNGXA01.phx.gbl>
| Subject: Re: Changes for configuration in ASP.NET
| Date: Tue, 13 Sep 2005 22:58:50 -0400
| Lines: 140
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
| X-RFC2646: Format=Flowed; Original
| Message-ID: <#s**************@tk2msftngp13.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: ool-44c05922.dyn.optonline.net 68.192.89.34
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msft ngp13.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:124408
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Thanks to everyone.
| Shimon.
| "Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
| news:H5*************@TK2MSFTNGXA01.phx.gbl...
| > Hi Shimon,
| >
| > As for the configuration in ASP.NET 2.0's web.config, the exiting
element
| > schema hasn't changed. And as for defining custom section and section
| > handler, you can refer to the other member's suggestion or the following
| > article:
| >
| > http://fredrik.nsquared2.com/viewpost.aspx?PostID=253
| >
| > And since the new custom section development model is quite simple and
| > clear, we strongly recommend that you migrate your old ones to the new
| > model.
| >
| > And the warning message is just because your custom element's defination
| > doesn't exist in the ASP.NET buildin configuration schema, so the
| > design-time validation will output such warning. You can just ignore it
| > for
| > your custom configuration section.
| >
| > If there're any further questions, please feel free to post here.
| >
| > Thanks,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| > --------------------
| > | From: "Shimon Sim" <sh*********@community.nospam>
| > | References: <et**************@TK2MSFTNGP10.phx.gbl>
| > <44**********************************@microsoft.co m>
| > | Subject: Re: Changes for configuration in ASP.NET
| > | Date: Tue, 13 Sep 2005 14:22:16 -0400
| > | Lines: 77
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| > | X-RFC2646: Format=Flowed; Original
| > | Message-ID: <uP**************@tk2msftngp13.phx.gbl>
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | NNTP-Posting-Host: ool-44c05922.dyn.optonline.net 68.192.89.34
| > | Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msft ngp13.phx.gbl
| > | Xref: TK2MSFTNGXA01.phx.gbl
| > microsoft.public.dotnet.framework.aspnet:124291
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > |
| > | I have following entries in my web.config file:
| > | <configSections>
| > |
| > | <sectionGroup name="system.web">
| > |
| > | <section name="siata.mail"
| > | type="Company.Notifications.MailConfiguration,__Co de"/>
| > |
| > | </sectionGroup>
| > |
| > | </configSections>
| > |
| > |
| > |
| > | and then later:
| > |
| > | <system.web>
| > |
| > | <siata.mail>
| > |
| > | <server smtp="mail.sever.net"
address="no**********@somesite.com"/>
| > |
| > | </siata.mail>
| > |
| > | <!-- DYNAMIC DE.....and so on
| > |
| > | I get follwing message.
| > | Warning 1 The element 'system.web' in namespace
| > | 'http://schemas.microsoft.com/.NetConfiguration/v2.0' has invalid
child
| > | element 'siata.mail' in namespace
| > | 'http://schemas.microsoft.com/.NetConfiguration/v2.0'. Expected
| > | 'anonymousIdentification, authentication, authorization, browserCaps,
| > | clientTarget, compilation, customErrors, deployment, deviceFilters,
| > | globalization, healthMonitoring, hostingEnvironment, httpCookies,
| > | httpHandlers, httpModules, httpRuntime, identity, machineKey,
| > membership,
| > | mobileControls, pages, processModel, profile, protocols, roleManager,
| > | securityPolicy, sessionPageState, sessionState, siteMap, trace, trust,
| > | urlMappings, webControls, webParts, webServices, xhtml11Conformance,
| > | caching' in namespace
| > 'http://schemas.microsoft.com/.NetConfiguration/v2.0'.
| > |
| > | It differs from the ASP.NET 1.1 version only in " __Code" part that
used
| > to
| > | be the name of the project assembly.
| > |
| > | Thank you
| > | Shimon
| > |
| > |
| > | "Curt_C [MVP]" <software_at_darkfalz.com> wrote in message
| > | news:44**********************************@microsof t.com...
| > | > "some warnings"????
| > | > Could you give us a little more detail if possible.
| > | >
| > | > Thanks
| > | >
| > | > --
| > | > Curt Christianson
| > | > site: http://www.darkfalz.com
| > | > blog: http://blog.darkfalz.com
| > | >
| > | >
| > | >
| > | > "Shimon Sim" wrote:
| > | >
| > | >> Hi
| > | >> I converted my existing ASP.NET project to VS.NET 2005. Build
gives
| > me
| > | >> some
| > | >> warnings about config file.
| > | >> I have custom section definition in web.config.
| > | >> Were there any changes in this for ASP.NET 2.0. Where can I see
what
| > was
| > | >> change and how I can migrate?
| > | >> Thank you
| > | >> Shimon.
| > | >>
| > | >>
| > | >>
| > |
| > |
| > |
| >
|
|
|

Nov 19 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.