Re: Changes for configuration in ASP.NET
- From: stcheng@xxxxxxxxxxxxxxxxxxxx (Steven Cheng[MSFT])
- Date: Wed, 14 Sep 2005 03:21:38 GMT
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" <shimonsim048@xxxxxxxxxxxxxxxx>
| References: <etqaUjGuFHA.1132@xxxxxxxxxxxxxxxxxxxx>
<44221E51-F9E0-40BC-85C3-9B7B5FC53F2A@xxxxxxxxxxxxx>
<uPwxXAJuFHA.3548@xxxxxxxxxxxxxxxxxxxx>
<H5tqASNuFHA.896@xxxxxxxxxxxxxxxxxxxxx>
| 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: <#sNY7gNuFHA.3660@xxxxxxxxxxxxxxxxxxxx>
| 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!tk2msftngp13.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]" <stcheng@xxxxxxxxxxxxxxxxxxxx> wrote in message
| news:H5tqASNuFHA.896@xxxxxxxxxxxxxxxxxxxxxxxx
| > 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" <shimonsim48@xxxxxxxxxxxxxxxx>
| > | References: <etqaUjGuFHA.1132@xxxxxxxxxxxxxxxxxxxx>
| > <44221E51-F9E0-40BC-85C3-9B7B5FC53F2A@xxxxxxxxxxxxx>
| > | 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: <uPwxXAJuFHA.3548@xxxxxxxxxxxxxxxxxxxx>
| > | 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!tk2msftngp13.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,__Code"/>
| > |
| > | </sectionGroup>
| > |
| > | </configSections>
| > |
| > |
| > |
| > | and then later:
| > |
| > | <system.web>
| > |
| > | <siata.mail>
| > |
| > | <server smtp="mail.sever.net"
address="notification@xxxxxxxxxxxx"/>
| > |
| > | </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-9B7B5FC53F2A@xxxxxxxxxxxxxxxx
| > | > "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.
| > | >>
| > | >>
| > | >>
| > |
| > |
| > |
| >
|
|
|
.
- References:
- Re: Changes for configuration in ASP.NET
- From: Shimon Sim
- Re: Changes for configuration in ASP.NET
- Prev by Date: Re: The directory /App_Code is not allowed because the application is precompiled
- Next by Date: Re: The directory /App_Code is not allowed because the application is precompiled
- Previous by thread: Re: Changes for configuration in ASP.NET
- Next by thread: Re: Changes for configuration in ASP.NET
- Index(es):
Relevant Pages
|