I have a dataset (*.xsd) in App_Data with table adapters. I needed to change one of these adapters because of the new fields in my database. The current one has been working fine for months.
I load up the xsd and try to preview data off of one of the adapters.
datasetname.tableadaptername.Fill,GetData () could not be previewed.
Unable to find connection 'tbmposConnectionString' for object 'Settings'. The connection string could not be found in application settings, or the data provider associated with the connection string could not be loaded.
Confused, I create another dataset. Add a table adapter using the default choices. The connection string is already preloaded from my web.config file. I can preview data for this table adapter and everything works fine.
I save the new dataset and recompile. I get an error!
The custom tool 'MSDataSetGenerator' failed. Unable to convert input xml file content to a DataSet. Requested value 'Properties' was not found.
Error 27 Custom tool error: Failed to generate code. Unable to convert input xml file content to a DataSet. Requested value 'Properties' was not found. Requested value 'Properties' was not found. C:\work\tbm\TbmPOS\App_Data\DataSet1.xsd 1 1 TbmPOS
My old XSD had a connection string like this:
<Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="tbmposConnectionString" ConnectionStringObject="" IsAppSettingsProperty="True" Modifier="Assembly" Name="tbmposConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.TbmPOS.Properties.Settings.GlobalReference.Default.tbmposConnectionString" Provider="System.Data.SqlClient">
My new XSD has a connection string like this:
<Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="TbmPOS.Properties.Settings.tbmposConnectionString" ConnectionStringObject="" IsAppSettingsProperty="True" Modifier="Assembly" Name="TbmPOS.Properties.Settings.tbmposConnectionString (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.TbmPOS.Properties.Settings.tbmposConnectionString.ConnectionString" Provider="System.Data.SqlClient">
My guess is something changed since VS.NET 2005 SP1 and that explains the XSD file is not the same. In addition, I also guess that MSDataSetGenerator is not the right version to be compatible with the new tool. Can you give me any pointers?
I tried what I found here:
http://www.thescripts.com/forum/thread501733.html
"In the custom tool for the xsd or xml remove the custom tool (cut and paste routine) (in the properties window) and paste the tool name back into the custom tool text space.
I have been coding a project for 4 weeks and today out of the blue my project gave me the same error and after looking on the internet to no avail I happened on this fix accidentaly"
I saw a flicker in the UI and the error message went away, but I recompiled later and it did not work and no longer wants to work.
1. VS 2005 SP1
2. Windows 2003 EE
3. Admin
4. IE7
5. This project used the web application project (WAP) beta for vs.net 2005 until SP1 was released.
6. C#
Let me know if there is anything I can do to work around this problem.