![]() |
|
|
|||||||
![]() |
ASP Net - Changes for configuration in ASP.NET |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
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. Shimon Sim |
|
|
|
|
#2 |
|
Posts: 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. > > > =?Utf-8?B?Q3VydF9DIFtNVlBd?= |
|
|
|
#3 |
|
Posts: 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" <> wrote in message news:... > 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. > Juan T. Llibre |
|
|
|
#4 |
|
Posts: 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=""/> </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:44221E51-F9E0-40BC-85C3-... > "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. >> >> >> Shimon Sim |
|
|
|
#5 |
|
Posts: 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" <> wrote in message news:... > 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. > Kevin Spencer |
|
|
|
#6 |
|
Posts: n/a
|
Thank a lot for the link.
Shimon. "Kevin Spencer" <> wrote in message news:... > 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" <> wrote in message > news:... >> 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. >> > > Shimon Sim |
|
|
|
#7 |
|
Posts: 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" <> | References: <> <44221E51-F9E0-40BC-85C3-> | 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: <> | 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=""/> | | </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:44221E51-F9E0-40BC-85C3-... | > "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. | >> | >> | >> | | | Steven Cheng[MSFT] |
|
|
|
#8 |
|
Posts: n/a
|
Thanks to everyone.
Shimon. "Steven Cheng[MSFT]" <> wrote in message news:... > 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" <> > | References: <> > <44221E51-F9E0-40BC-85C3-> > | 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: <> > | 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=""/> > | > | </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:44221E51-F9E0-40BC-85C3-... > | > "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. > | >> > | >> > | >> > | > | > | > Shimon Sim |
|
|
|
#9 |
|
Posts: 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" <> | References: <> <44221E51-F9E0-40BC-85C3-> <> <> | 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: <#> | 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]" <> wrote in message | news:... | > 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" <> | > | References: <> | > <44221E51-F9E0-40BC-85C3-> | > | 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: <> | > | 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=""/> | > | | > | </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:44221E51-F9E0-40BC-85C3-... | > | > "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. | > | >> | > | >> | > | >> | > | | > | | > | | > | | | Steven Cheng[MSFT] |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| viewstate MAC failed in asp.net 2.0 while postback the page | azraffarveen | Software | 0 | 05-12-2009 03:24 PM |
| .NET 2.0 Web Apps / .NET 3.5 ASP.NET Apps - Differences/Similariti | london1919 | MCTS | 1 | 12-08-2008 03:16 PM |
| ASP.NET: Asign Users in Roles(Array.IndexOf(Of String) method) | msandlana | Software | 0 | 04-25-2008 06:37 AM |
| ASP.NET deadlock | viktoria | Software | 0 | 07-05-2007 02:53 AM |
| ASP.NET 2.0 application does not run in WIN2k3 | johnfraj | Software | 0 | 04-19-2007 08:27 AM |