Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - Changes for configuration in ASP.NET

 
Thread Tools Search this Thread
Old 09-13-2005, 02:41 PM   #1
Default Changes for configuration in ASP.NET


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
  Reply With Quote
Old 09-13-2005, 02:59 PM   #2
=?Utf-8?B?Q3VydF9DIFtNVlBd?=
 
Posts: n/a
Default RE: Changes for configuration in ASP.NET
"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?=
  Reply With Quote
Old 09-13-2005, 03:46 PM   #3
Juan T. Llibre
 
Posts: n/a
Default Re: Changes for configuration in ASP.NET
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
  Reply With Quote
Old 09-13-2005, 07:22 PM   #4
Shimon Sim
 
Posts: n/a
Default Re: Changes for configuration in ASP.NET
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
  Reply With Quote
Old 09-13-2005, 07:30 PM   #5
Kevin Spencer
 
Posts: n/a
Default Re: Changes for configuration in ASP.NET
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
  Reply With Quote
Old 09-13-2005, 07:46 PM   #6
Shimon Sim
 
Posts: n/a
Default Re: Changes for configuration in ASP.NET
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
  Reply With Quote
Old 09-14-2005, 03:31 AM   #7
Steven Cheng[MSFT]
 
Posts: n/a
Default Re: Changes for configuration in ASP.NET
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]
  Reply With Quote
Old 09-14-2005, 03:58 AM   #8
Shimon Sim
 
Posts: n/a
Default Re: Changes for configuration in ASP.NET
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
  Reply With Quote
Old 09-14-2005, 04:21 AM   #9
Steven Cheng[MSFT]
 
Posts: n/a
Default Re: Changes for configuration in ASP.NET
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]
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

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




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46