I’m just walking through the connector asp samples. so far so good grid is loading combo too.
my problem are the both form samples. They just don’t work. Connection is ok, Code Behind is called but the result is:
what means more or less : XML not well formed. EndElement /EndRootElement
[InvalidOperationException: Token EndElement im Status EndRootElement würde in einem ungültigen XML-Dokument resultieren. Wenn Sie ein XML-Fragment schreiben möchten, muss die ConformanceLevel-Einstellung auf ConformanceLevel.Fragment oder ConformanceLevel.Auto festgelegt werden. ]
System.Xml.XmlWellFormedWriter.ThrowInvalidStateTransition(Token token, State currentState) +221
System.Xml.XmlWellFormedWriter.AdvanceState(Token token) +3943370
System.Xml.XmlWellFormedWriter.WriteEndElement() +272
dhtmlxConnectors.dhtmlxXMLWriter.WriteEndDocument() +31
dhtmlxConnectors.dhtmlxConnector1.EndRenderContent(IdhtmlxWriter xWriter, Int32 TotalRowsCount) +34 dhtmlxConnectors.dhtmlxConnector
1.RenderData(IdhtmlxWriter xWriter, DataTable RowsToRender, Int32 TotalRowsCount) +209
dhtmlxConnectors.DataRequest.Render(IdhtmlxWriter xWriter) +1399
dhtmlxConnectors.dhtmlxConnector1.Render(IdhtmlxWriter xWriter) +50 dhtmlxConnectors.dhtmlxConnector
1.RenderResponse(HttpResponse response) +132
dhtmlxConnectors.dhtmlxRequestHandler.ProcessRequest(HttpContext context) +141
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
the sample i use:
namespace dhtmlxConnector.Net_Samples.dhtmlxForm
{
///
/// Connector body
///
[WebService(Namespace = “http://tempuri.org/”)]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class form_basic_connector : dhtmlxRequestHandler
{
public override IdhtmlxConnector CreateConnector(HttpContext context)
{
var connector = new dhtmlxFormConnector(
"BookStore",
"title,author,price",
"book_id",
dhtmlxDatabaseAdapterType.SqlServer2005,
ConfigurationManager.ConnectionStrings["SamplesDatabase"].ConnectionString
);
return connector;
}
}
}
also the snd one fails in the same way. Anyone can hlep out?
Best Regards,
Uwe