Hi,
I am using a TaminoDataAdapter to fill a dataset and display the content for editing in a datagrid. It was working fine on my developing server, but since I moved the asp.net application to a different server there is the error:
TANDSE0003: DataSet schema and Tamino query result do not match.
when I try to fill the dataset for the first time.
The URI and collection information for the TaminoDatabase are correct, since the login to my site successfully accesses the same data as the dataset above with a TaminoConnection
I am confused, since the exact same code worked on the other server and the login still works on the new server, but not the dataset. I did not change anything else, so I guess the code should work regardless of the IIS server hosting it…So what could be the problem?
Thanks in advance,
Yves Pauchard
Error
TANDSE0003: DataSet schema and Tamino query result do not match.
at SoftwareAG.Tamino.Api.TaminoException.Throw(String name) at SoftwareAG.Tamino.Api.DataAdapter.DataSetXmlHandler.ThrowExceptionIfSchemaMismatch(Int32 count) at SoftwareAG.Tamino.Api.DataAdapter.DataSetXmlHandler.PerformQuery() at SoftwareAG.Tamino.Api.DataAdapter.TaminoDataAdapter.Fill(DataSet ds) at SoftwareAG.Tamino.Api.DataAdapter.TaminoDataAdapter.Fill(DataSet ds, TaminoQuery query) at LearningPacemaker.Admin.Admin.InitTaminoAdapter() in c:\inetpub\wwwroot\learningpacemaker\admin\admin.aspx.cs:line 124
Code
private void InitTaminoAdapter()
{
string squery,prolog;
// create a TaminoDataAdapter object for the specified Tamino url and collection.
adapter = new TaminoDataAdapter(connstring, collection);
try
{
//make updates possible
adapter.Behavior = TaminoAdapterBehavior.UpdateByItemMapping;
//create a new dataset to hold the XML data retreived
dataSet1 = new DataSet();
//create the Tamino query and fill the dataset
prolog = null;
squery = "input()/*";
TaminoQuery query = TaminoXQueryBuilder.BuildXQuery(prolog,squery,TaminoAdapterBehavior.UpdateByItemMapping);
dataSet1 = new DataSet();
adapter.Fill(dataSet1,query);
//Bind the datasaet to the Datagrid
DataGrid1.DataSource = dataSet1;
DataGrid1.DataBind();
//add the adapter to the Session
Session["adapter"]=adapter;
Session["dataset"]=dataSet1;
}
catch(System.Exception ex)
{
LPLog.writeLog(LPLog.CAUGHT_EX,
((string)Session["Username"]),
Request.UserHostAddress,
Request.Browser.Platform,
Request.Browser.Type,
ex.Message,
ex.StackTrace.Replace("\r\n"," "),
"");
}