Re: Changes for configuration in ASP.NET

Tech-Archive recommends: Speed Up your PC by fixing your registry



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.
| > | >>
| > | >>
| > | >>
| > |
| > |
| > |
| >
|
|
|

.



Relevant Pages

  • RE: IIS 6.0,ASP.NET 1.1 and confiig error
    ... "On" Always display custom messages. ... on the local Web server. ... This section sets the authentication policies of the application. ... configuration file located in the root directory of the current web ...
    (microsoft.public.windows.server.general)
  • Re: Windows Forms Stylesheets?
    ... if your users don't know how to modify Windows appearance I don't see how it would be any easier to teach them to use a custom ... As for role-based changes to the UI, I agree that file-based configuration could be useful to an extent, but you'll still have to ... You could also use the .NET 2.0 Providers framework to create configurable settings for certain aspects of the program. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: urlMappings interaction with web.config hierarchy
    ... Presumably I either need a way to manually load configuration files before the Rewrite happens, or I need a way to execute a .aspx class as if it were located at a different location. ... I have written custom url mapping modules, but nothing I know how to do will allow me to solve my problem. ... that's not the currently execution directory, use the GetSection(string, ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Question about "Configuration Error" Message
    ... account(which has the most powerful permission and privileges on local ... Microsoft Online Support ... After you installed the ASP.NET 2.0 QuickStart ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Incorrect Server Error in config file
    ... I assumed that by publishing the site from vs2005 ... server I can browse to testpage.htm, ... custom errors in the config file. ... "web.config" configuration file located in the root directory of the ...
    (microsoft.public.dotnet.framework.aspnet)