Beta 2 Error/Bug: XmlException reading Application setting in Class Library

I believe I have discovered an error or bug in beta 2. I am receiving an XmlException with the message "An error occurred while parsing EntityName. Line 1, position 45." when reading an Application Setting stored within a Class Library project.

The application setting is of type (Web Service URL) and contains an ampersand at character position 45.

This error happens when reading application settings in a project with a build type of Class Library. Rather, this error occurs whenever this is the scenario:
1) Project A contains a reference to Project B.
2) Project A calls a given class method X in project B.
3) Method X in project B attempts to access its application settings (via Properties.Settings.Default.[settingName])

An exception is thrown during step 3. What is noteworthy is that this only happens for the sequence given above. If the exact same application setting is accessed directly within a Windows Application build, it is returned fine with no exception.

Here are the exception details for this particular error:

System.Xml.XmlException was unhandled
Message="An error occurred while parsing EntityName. Line 1, position 45."
Source="System.Xml"
LineNumber=1
LinePosition=45
SourceUri=""
StackTrace:
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.ParseEntityName()
at System.Xml.XmlTextReaderImpl.ParseEntityReference()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.ParsePartialContent(XmlNode parentNode, String innerxmltext, XmlNodeType nt)
at System.Xml.XmlElement.set_InnerXml(String value)
at System.Configuration.LocalFileSettingsProvider.GetPropertyValues(SettingsContext context, SettingsPropertyCollection properties)
at System.Configuration.SettingsBase.GetPropertiesFromProvider(SettingsProvider provider)
at System.Configuration.SettingsBase.GetPropertyValueByName(String propertyName)
at System.Configuration.SettingsBase.get_Item(String propertyName)
at System.Configuration.ApplicationSettingsBase.GetPropertyValue(String propertyName)
at System.Configuration.ApplicationSettingsBase.get_Item(String propertyName)
at TestClassLib.Properties.Settings.get_MyStoredUrl() in C:\Documents and Settings\Mike\my documents\visual studio 2005\Projects\BugTest\TestClassLib\Properties\Settings.Designer.cs:line 33
at TestClassLib.TestClass.GetWebServiceUrl() in C:\Documents and Settings\Mike\my documents\visual studio 2005\Projects\BugTest\TestClassLib\TestClass.cs:line 14
at BugTest.Form1.Form1_Load(Object sender, EventArgs e) in C:\Documents and Settings\Mike\my documents\visual studio 2005\Projects\BugTest\BugTest\Form1.cs:line 22
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.SafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow)
at System.Windows.Forms.Control.SetVisibleCore(Boolean value)
at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
at System.Windows.Forms.Control.set_Visible(Boolean value)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at BugTest.Program.Main() in C:\Documents and Settings\Mike\my documents\visual studio 2005\Projects\BugTest\BugTest\Program.cs:line 16
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

I've uploaded a sample project that illustrates this bug completely here incase it helps:http://www.greenerpasture.com/temp/BugTest.zip

Please let me know if anyone can confirm or deny this bug. If there's something wrong on my end, please point it out!

Thanks

[6367 byte] By [MicScoTho] at [2007-12-16]
# 1
I would recomend that you add your bug to the Product Feedback center for a quicker resolution and response.
the URL is
[ http://labs.msdn.microsoft.com/productfeedback ]

Regards,
Saurabh Nandu
www.MasterCSharp.com
www.AksTech.com

SaurabhNandu at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 2
Alright, thanks. I have added the bug to the Product Feedback center here: http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=e4fc769b-2f41-4c00-8ddb-33e5fa4a2bf9
MicScoTho at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Base Class Library...

.NET Development

Site Classified