Thanks for the response Robert,
Glad that you've figured the problem out. If there're anything else we can
help later, please feel free to post here.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| Thread-Topic: VS2005 - Changes to configuration sections between beta 2
and
| thread-index: AcXeg6UuuA6U7jx 1TBWR9kQwwgHH7A ==
| X-WBNR-Posting-Host: 67.180.214.235
| From: =?Utf-8?B?Um9iZXJ0?= <ro*****@noemai l.nospam>
| References: <DF************ *************** *******@microso ft.com>
<vX************ **@TK2MSFTNGXA0 1.phx.gbl>
| Subject: RE: VS2005 - Changes to configuration sections between beta 2 and
| Date: Mon, 31 Oct 2005 17:29:04 -0800
| Lines: 131
| Message-ID: <A8************ *************** *******@microso ft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.publi c.dotnet.genera l
| NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 10.40.2.250
| Path: TK2MSFTNGXA01.p hx.gbl!TK2MSFTN GXA02.phx.gbl!T K2MSFTNGXA03.ph x.gbl
| Xref: TK2MSFTNGXA01.p hx.gbl microsoft.publi c.dotnet.genera l:53206
| X-Tomcat-NG: microsoft.publi c.dotnet.genera l
|
| Thanks, I was able to figure this out today. The error was at the
topmost
| level where i needed to change the syntax of how the custom configuration
| section was returned in the get function.
|
| "Steven Cheng[MSFT]" wrote:
|
| > Hi Robert,
| >
| > Welcome to MSDN newsgroup.
| >
| > From your description, you've implement some custom configuration
section
| > handlers, elements /elementcollecti ons through the .NET 2.0
configuration
| > model. However, the code broke when move from beta2 to the RTM
| > environment,yes ?
| >
| > Based on the code snippet you provided, it seems that the problem is
| > concerned to the element within a collection Element, have you tried
move
| > that problem element out of collection and test it directly under the
| > Section element to see whether it also cause the same error?
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure!
www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| >
| >
| >
| > --------------------
| > | Thread-Topic: VS2005 - Changes to configuration sections between beta
2
| > and rele
| > | thread-index: AcXc5bidBXvi9xo uRk6wjOqqLCrwKw ==
| > | X-WBNR-Posting-Host: 67.180.214.235
| > | From: =?Utf-8?B?Um9iZXJ0?= <ro*****@noemai l.nospam>
| > | Subject: VS2005 - Changes to configuration sections between beta 2
and
| > rele
| > | Date: Sat, 29 Oct 2005 17:06:05 -0700
| > | Lines: 68
| > | Message-ID: <DF************ *************** *******@microso ft.com>
| > | MIME-Version: 1.0
| > | Content-Type: text/plain;
| > | charset="Utf-8"
| > | Content-Transfer-Encoding: 7bit
| > | X-Newsreader: Microsoft CDO for Windows 2000
| > | Content-Class: urn:content-classes:message
| > | Importance: normal
| > | Priority: normal
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| > | Newsgroups: microsoft.publi c.dotnet.genera l
| > | NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 10.40.2.250
| > | Path: TK2MSFTNGXA01.p hx.gbl!TK2MSFTN GXA03.phx.gbl
| > | Xref: TK2MSFTNGXA01.p hx.gbl microsoft.publi c.dotnet.genera l:53084
| > | X-Tomcat-NG: microsoft.publi c.dotnet.genera l
| > |
| > | I have an application with custom configuration sections in it's
| > app.config
| > | file.
| > |
| > | Here's a shortened excerpt:
| > |
| > | <monitors>
| > | <monitor
| > |
type="SystemMon itor.Monitors.N etworkAvailabil ityMonitor,Syst emMonitor">
| > | <notifiers>
| > | <notifier
type="SystemMon itor.Notifiers. MessageBoxNotif ier,SystemMonit or"
| > />
| > | <notifier
type="SystemMon itor.Notifiers. EventLogNotifie r,SystemMonitor ">
| > | </notifier>
| > | </notifiers>
| > | </monitor>
| > | </monitors>
| > |
| > | here's some code from the application. Note again shortened, this is
| > only
| > | the section defining a "monitor" section above:
| > |
| > | mports System
| > | Imports System.Collecti ons.Generic
| > | Imports System.Text
| > | Imports System.Configur ation
| > |
| > | Namespace Configuration
| > | Class MonitorElement
| > | Inherits ConfigurationEl ement
| > |
| > | <ConfigurationP roperty("type") > _
| > | Public Property TypeName() As String
| > | Get
| > | Return CStr(MyBase.Ite m("type"))
| > | End Get
| > | Set(ByVal value As String)
| > | MyBase.Item("ty pe") = value
| > | End Set
| > | End Property
| > |
| > | <ConfigurationP roperty("settin gs",
IsDefaultCollec tion:=False)> _
| > | Public ReadOnly Property Settings() As
SettingElementC ollection
| > | Get
| > | Return CType(MyBase.It em("settings") ,
| > | SettingElementC ollection)
| > | End Get
| > | End Property
| > |
| > | <ConfigurationP roperty("notifi ers",
IsDefaultCollec tion:=False)> _
| > | Public ReadOnly Property Notifiers() As
NotifierElement Collection
| > | Get
| > | Return CType(MyBase.It em("notifiers") ,
| > | NotifierElement Collection)
| > | End Get
| > | End Property
| > | End Class
| > | End Namespace
| > |
| > | Under VS2005 Beta2, this worked just fine. However, now i have
| > recompiled
| > | using VS2005 RTM and am getting an error on the line that says:
| > |
| > | <monitor type=.....
| > |
| > | Specifically the error is that "type" is not defined.
| > |
| > | So obviously something was changed but I am having trouble determing
what
| > | was changed so i can fix the code in question.
| > |
| > | Thanks in advance,
| > | Robert.
| > |
| >
| >
|