473,545 Members | 2,782 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="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.
Oct 30 '05 #1
3 1895
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.
|

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

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

Nov 1 '05 #4

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

Similar topics

16
1752
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
1314
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 cool :) After some reading and testing, I got it to work. I followed this article:
2
2105
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 web request. Please review the stack trace for more information about the error and where it originated in the code. SQLExpress database file...
5
2593
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 as websites. I was happy until when out of the blue Cassini has re-enabled itself for one of the websites I am developing. Despite the Start Option...
3
317
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 type="SystemMonitor.Monitors.NetworkAvailabilityMonitor,SystemMonitor"> <notifiers> <notifier type="SystemMonitor.Notifiers.MessageBoxNotifier,SystemMonitor" />
56
3514
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, Microsft has spent so much time trying to make it simply that when you try to do something useful with it it doesn't work... Half the time it...
7
1700
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 its size: while I am resizing, an hour glass comes up for a few seconds. There a lot of other slowdowns all over the system. It seems like it the...
7
4417
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 box, "Application configuration Error. Try re-installing the application. (Deployed using an MSI setup project). I downloaded Dependency Walker,...
3
2331
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 after. I think it has something to do with the file path; the .FilePath returned...
0
7689
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7943
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7456
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7786
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5359
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3490
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1919
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1044
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
743
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.