Enterprise Library June05: Data access


Hello, I am using Data Access Block in Enterprise Library June 2005 edition to connect to a local SQL server database.
I created the configuration file using Enterprise library configuration tool for data access. I saved this configuration file as app.exe.config. The tool also created dataconfiguration.config in the same directory.
Whenever I run the application, it gives me error"There is an error in XML document(1,734)"
I notice the below line in ConfigurationSettingsLoader.cs (inside Entwerprise library) which throws the above error.

configurationSettings = (ConfigurationSettings)xmlSerializer.Deserialize(new XmlTextReader(new StringReader(node.OuterXml)));

node.OuterXml contains exactly the same xmldata under element "enterpriselibrary.configurationsettings" in my configuration file. It prefixes "\" just before every double quotes for parsing the string correctly.
Since I haven't touched the configuration file manually, how can it throw an error in XML ? Or, am I not saving the configuration file correctly ?
{Is there any separate forum for enterprise library related discussions ?}
Any help appreciated.
-Praveen

[1473 byte] By [Pravi4u] at [2007-12-16]
# 1

Could this be because there's an invalid character as part of the connection string?

Here's the place to post questions regarding EntLib:

http://practices.gotdotnet.com/messageboard/messageboards.aspx?id=295a464a-6072-4e25-94e2-91be63527327

LH

LordHits at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Base Class Library...
# 2

Whenever I built and ran DAAB Quickstart sample in C#, I received the same error message. I did nothing manually. Just opened up the solution, built and ran.

Connection string is the same which comes along with the quickstart.

Also, the above quickstart application was converted to .NET 2.0 using Visual Studio .NET 2005 Beta 2, prior to building it. Do you think something goes wrong here ?

Thanks for your reply.
Praveen.

Pravi4u at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Base Class Library...

.NET Development

Site Classified