473,385 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

VS2005 - Changes to configuration sections between beta 2 and rele

I have an application with custom configuration sections in it's app.config
file.

Here's a shortened excerpt:

<monitors>
<monitor
type="SystemMonitor.Monitors.NetworkAvailabilityMo nitor,SystemMonitor">
<notifiers>
<notifier type="SystemMonitor.Notifiers.MessageBoxNotifier,S ystemMonitor" />
<notifier type="SystemMonitor.Notifiers.EventLogNotifier,Sys temMonitor">
</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.Collections.Generic
Imports System.Text
Imports System.Configuration

Namespace Configuration
Class MonitorElement
Inherits ConfigurationElement

<ConfigurationProperty("type")> _
Public Property TypeName() As String
Get
Return CStr(MyBase.Item("type"))
End Get
Set(ByVal value As String)
MyBase.Item("type") = value
End Set
End Property

<ConfigurationProperty("settings", IsDefaultCollection:=False)> _
Public ReadOnly Property Settings() As SettingElementCollection
Get
Return CType(MyBase.Item("settings"),
SettingElementCollection)
End Get
End Property

<ConfigurationProperty("notifiers", IsDefaultCollection:=False)> _
Public ReadOnly Property Notifiers() As NotifierElementCollection
Get
Return CType(MyBase.Item("notifiers"),
NotifierElementCollection)
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.
Oct 30 '05 #1
3 1876
Hi Robert,

Welcome to MSDN newsgroup.

From your description, you've implement some custom configuration section
handlers, elements /elementcollections 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: AcXc5bidBXvi9xouRk6wjOqqLCrwKw==
| X-WBNR-Posting-Host: 67.180.214.235
| From: =?Utf-8?B?Um9iZXJ0?= <ro*****@noemail.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**********************************@microsoft.co m>
| 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.public.dotnet.general
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.dotnet.general:53084
| X-Tomcat-NG: microsoft.public.dotnet.general
|
| I have an application with custom configuration sections in it's
app.config
| file.
|
| Here's a shortened excerpt:
|
| <monitors>
| <monitor
| type="SystemMonitor.Monitors.NetworkAvailabilityMo nitor,SystemMonitor">
| <notifiers>
| <notifier type="SystemMonitor.Notifiers.MessageBoxNotifier,S ystemMonitor"
/>
| <notifier type="SystemMonitor.Notifiers.EventLogNotifier,Sys temMonitor">
| </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.Collections.Generic
| Imports System.Text
| Imports System.Configuration
|
| Namespace Configuration
| Class MonitorElement
| Inherits ConfigurationElement
|
| <ConfigurationProperty("type")> _
| Public Property TypeName() As String
| Get
| Return CStr(MyBase.Item("type"))
| End Get
| Set(ByVal value As String)
| MyBase.Item("type") = value
| End Set
| End Property
|
| <ConfigurationProperty("settings", IsDefaultCollection:=False)> _
| Public ReadOnly Property Settings() As SettingElementCollection
| Get
| Return CType(MyBase.Item("settings"),
| SettingElementCollection)
| End Get
| End Property
|
| <ConfigurationProperty("notifiers", IsDefaultCollection:=False)> _
| Public ReadOnly Property Notifiers() As NotifierElementCollection
| Get
| Return CType(MyBase.Item("notifiers"),
| NotifierElementCollection)
| 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.
|

Oct 31 '05 #2
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 /elementcollections 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: AcXc5bidBXvi9xouRk6wjOqqLCrwKw==
| X-WBNR-Posting-Host: 67.180.214.235
| From: =?Utf-8?B?Um9iZXJ0?= <ro*****@noemail.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**********************************@microsoft.co m>
| 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.public.dotnet.general
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.dotnet.general:53084
| X-Tomcat-NG: microsoft.public.dotnet.general
|
| I have an application with custom configuration sections in it's
app.config
| file.
|
| Here's a shortened excerpt:
|
| <monitors>
| <monitor
| type="SystemMonitor.Monitors.NetworkAvailabilityMo nitor,SystemMonitor">
| <notifiers>
| <notifier type="SystemMonitor.Notifiers.MessageBoxNotifier,S ystemMonitor"
/>
| <notifier type="SystemMonitor.Notifiers.EventLogNotifier,Sys temMonitor">
| </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.Collections.Generic
| Imports System.Text
| Imports System.Configuration
|
| Namespace Configuration
| Class MonitorElement
| Inherits ConfigurationElement
|
| <ConfigurationProperty("type")> _
| Public Property TypeName() As String
| Get
| Return CStr(MyBase.Item("type"))
| End Get
| Set(ByVal value As String)
| MyBase.Item("type") = value
| End Set
| End Property
|
| <ConfigurationProperty("settings", IsDefaultCollection:=False)> _
| Public ReadOnly Property Settings() As SettingElementCollection
| Get
| Return CType(MyBase.Item("settings"),
| SettingElementCollection)
| End Get
| End Property
|
| <ConfigurationProperty("notifiers", IsDefaultCollection:=False)> _
| Public ReadOnly Property Notifiers() As NotifierElementCollection
| Get
| Return CType(MyBase.Item("notifiers"),
| NotifierElementCollection)
| 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.
|

Nov 1 '05 #3
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: AcXeg6UuuA6U7jx1TBWR9kQwwgHH7A==
| X-WBNR-Posting-Host: 67.180.214.235
| From: =?Utf-8?B?Um9iZXJ0?= <ro*****@noemail.nospam>
| References: <DF**********************************@microsoft.co m>
<vX**************@TK2MSFTNGXA01.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**********************************@microsoft.co m>
| 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.public.dotnet.general
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA02.phx.gbl!TK2MSF TNGXA03.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.dotnet.general:53206
| X-Tomcat-NG: microsoft.public.dotnet.general
|
| 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 /elementcollections 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: AcXc5bidBXvi9xouRk6wjOqqLCrwKw==
| > | X-WBNR-Posting-Host: 67.180.214.235
| > | From: =?Utf-8?B?Um9iZXJ0?= <ro*****@noemail.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**********************************@microsoft.co m>
| > | 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.public.dotnet.general
| > | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| > | Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| > | Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.dotnet.general:53084
| > | X-Tomcat-NG: microsoft.public.dotnet.general
| > |
| > | I have an application with custom configuration sections in it's
| > app.config
| > | file.
| > |
| > | Here's a shortened excerpt:
| > |
| > | <monitors>
| > | <monitor
| > |
type="SystemMonitor.Monitors.NetworkAvailabilityMo nitor,SystemMonitor">
| > | <notifiers>
| > | <notifier
type="SystemMonitor.Notifiers.MessageBoxNotifier,S ystemMonitor"
| > />
| > | <notifier
type="SystemMonitor.Notifiers.EventLogNotifier,Sys temMonitor">
| > | </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.Collections.Generic
| > | Imports System.Text
| > | Imports System.Configuration
| > |
| > | Namespace Configuration
| > | Class MonitorElement
| > | Inherits ConfigurationElement
| > |
| > | <ConfigurationProperty("type")> _
| > | Public Property TypeName() As String
| > | Get
| > | Return CStr(MyBase.Item("type"))
| > | End Get
| > | Set(ByVal value As String)
| > | MyBase.Item("type") = value
| > | End Set
| > | End Property
| > |
| > | <ConfigurationProperty("settings",
IsDefaultCollection:=False)> _
| > | Public ReadOnly Property Settings() As
SettingElementCollection
| > | Get
| > | Return CType(MyBase.Item("settings"),
| > | SettingElementCollection)
| > | End Get
| > | End Property
| > |
| > | <ConfigurationProperty("notifiers",
IsDefaultCollection:=False)> _
| > | Public ReadOnly Property Notifiers() As
NotifierElementCollection
| > | Get
| > | Return CType(MyBase.Item("notifiers"),
| > | NotifierElementCollection)
| > | 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.
| > |
| >
| >
|

Nov 1 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: clintonG | last post by:
I haven't installed VS2005 B2 yet. My main concern is installing VS2005 B2 on the XP Pro machine where VSN2003 already exists. Am I asking for trouble? Your comments... <%= Clinton Gallagher
5
by: Andre Lorbach | last post by:
Hi all, I hope I picked up the right group ;) A few days ago I installed the VS2005 Beta and started playing with it. First of all the (Profile Guided Optimizations) PGO Feature looks very...
2
by: David Hearn | last post by:
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Description: An unhandled exception occurred during the execution of the current...
5
by: clintonG | last post by:
After discovering Cassini is crippleware I learned how to use Start Options to disable NTLM and enable support for the default web server on my XP Pro dev platform. Now all new projects are created...
3
by: Robert | last post by:
I have an application with custom configuration sections in it's app.config file. Here's a shortened excerpt: <monitors> <monitor...
56
by: Rob Dob | last post by:
VS2005 is a PIECE of Garbage and is bug Ridden, I wonder how many others feel the same, I am so sorry that I have moved away from VS2003, VS2005 is unstable, and half the stuff doesn't work, ...
7
by: Frank Rizzo | last post by:
Is it me or is the speed of VS2005 actually slower than VS2003? The startup is pretty bad - even though I changed VS to display an empty environment. When I create a new form and want to change...
7
by: Tom | last post by:
I have built a VS 2005 C++ application (ported from VC++ 2003). It's a WinForm app. It runs OK on the development system, but when I try to deploy it on any other system, all users gets an error...
3
by: Eric | last post by:
I'm trying to manipulae my app.config file. Below is code to test that I can remove a ConfigurationSection. It looks like its working, but the app.config file is not changed when I look at it...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.