iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
I have a webInput (version 4.0.7200.4) on machine with 64 bit and it raise the following exception:
[AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.]
ISNet.WebUI.XMLCultureInfo.CreateXMLNumberFormatInfo(XmlDocument xmlDoc) +0
ISNet.WebUI.XMLCultureInfo.CreateXMLCultureInfo() +97
AssignSerializeXmlNode(XmlNode node, Object obj) +157
ISNet.WebUI.WebControls.WebInput.GetXMLCultureInfo() +345
ISNet.WebUI.ISNetControl.RegisterScript() +409
ISNet.WebUI.WebControls.WebInput.RegisterScript() +364
ISNet.WebUI.ISNetControl Object ?, EventArgs ?) +103
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Control.OnPreRender(EventArgs e) +11028046
System.Web.UI.Control.PreRenderRecursiveInternal() +108
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3394
is it a bug or missing any configuration?
You license will valid for the control with the same major version. For example: since in the 2010 R1the WebInput control still has a major version of 4, the license key you have for the WebInput 4 control will still be valid.
Using a newer framework will not cause any major issue based on our test, as long as it is still the same major version. WebUI 2009 R2 and 2010 R1 is using WebUI Framework 3.
Hi,
we have the error using the webinput also your example, on 32 bit machine all works fine, instead on 64 bit we have that problem.
Thanks,
Vince
The following is the aspx page that I have written:
<%@ Page Language="C#" AutoEventWireup="true" EnableSessionState="true" CodeBehind="PriceInfo.aspx.cs" Inherits="Wuerth.Phoenix.Speedy.OrderlineGrid.PriceInfo" %>
<%@ Register Assembly="ISNet.WebUI.WebInput" Namespace="ISNet.WebUI.WebControls" TagPrefix="ISWebInput" %>
<%@ Register Assembly="ISNet.WebUI.WebCombo" Namespace="ISNet.WebUI.WebCombo" TagPrefix="ISWebCombo" %>
<%@ Register Assembly="ISNet.WebUI.WebGrid" Namespace="ISNet.WebUI.WebGrid" TagPrefix="ISWebGrid" %><%@ Register Assembly="ISNet.WebUI.ISDataSource, Version=1.0.1500.1, Culture=neutral, PublicKeyToken=c4184ef0d326354b" Namespace="ISNet.WebUI.DataSource" TagPrefix="ISDataSource" %><%@ Register Assembly="ISNet.WebUI.WebDesktop" Namespace="ISNet.WebUI.WebDesktop" TagPrefix="ISWebDesktop" %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" ><html ><head runat="server"> <title></title> <link href="Styles/IFrame.css" rel="Stylesheet" type="text/css" /> <script type="text/javascript">
var productListHash = new ActiveXObject("Scripting.Dictionary"); function uiService_OnSearchPrices(items) { var grid = ISGetObject("WebGridPrices"); var dataTable = new ISDataTable(); var productnumberColumn = new ISDataColumn(dataTable); var priceTypeColumn = new ISDataColumn(dataTable); var discountscalenameColumn = new ISDataColumn(dataTable); var priceNameColumn = new ISDataColumn(dataTable); var minQtyColumn = new ISDataColumn(dataTable); var priceColumn = new ISDataColumn(dataTable); var priceUnitColumn = new ISDataColumn(dataTable); var manualPriceColumn = new ISDataColumn(dataTable); var manualDiscount1Column = new ISDataColumn(dataTable); var manualDiscount2Column = new ISDataColumn(dataTable); var manualDiscountAmountColumn = new ISDataColumn(dataTable); var fixDiscount1Column = new ISDataColumn(dataTable); var fixDiscount2Column = new ISDataColumn(dataTable); var fixDiscountAmountColumn = new ISDataColumn(dataTable); var fixCommissionColumn = new ISDataColumn(dataTable); var maxDiscountColumn = new ISDataColumn(dataTable); var minDiscountColumn = new ISDataColumn(dataTable); var maxCommissionColumn = new ISDataColumn(dataTable); var discountScaleIdColumn = new ISDataColumn(dataTable);
/* setup data columns */ dataTable.Name = dataTable.TableName = "Root"; productnumberColumn.Name = productnumberColumn.ColumnName = "productnumber"; discountscalenameColumn.Name = discountscalenameColumn.ColumnName = "discountscalename"; priceNameColumn.Name = priceNameColumn.ColumnName = "priceName"; minQtyColumn.Name = minQtyColumn.ColumnName = "minQty"; priceColumn.Name = priceColumn.ColumnName = 'price'; priceUnitColumn.Name = priceUnitColumn.ColumnName = 'priceUnit'; priceTypeColumn.Name = priceTypeColumn.ColumnName = 'priceType'; manualPriceColumn.Name = manualPriceColumn.ColumnName = 'manualPrice'; manualDiscount1Column.Name = manualDiscount1Column.ColumnName = 'manualDiscount1'; manualDiscount2Column.Name = manualDiscount2Column.ColumnName = 'manualDiscount2'; manualDiscountAmountColumn.Name = manualDiscountAmountColumn.ColumnName = 'manualDiscountAmount'; fixDiscount1Column.Name = fixDiscount1Column.ColumnName = 'fixDiscount1'; fixDiscount2Column.Name = fixDiscount2Column.ColumnName = 'fixDiscount2'; fixDiscountAmountColumn.Name = fixDiscountAmountColumn.ColumnName = 'fixDiscountAmount'; fixCommissionColumn.Name = fixCommissionColumn.ColumnName = 'fixCommission'; maxDiscountColumn.Name = maxDiscountColumn.ColumnName = 'maxDiscount'; minDiscountColumn.Name = minDiscountColumn.ColumnName = 'minDiscount'; maxCommissionColumn.Name = maxCommissionColumn.ColumnName = 'maxCommission'; discountScaleIdColumn.Name = discountScaleIdColumn.ColumnName = 'discountScaleId'; /* add columns to data table */ dataTable.Columns.Add(productnumberColumn); dataTable.Columns.Add(priceTypeColumn); dataTable.Columns.Add(discountscalenameColumn); dataTable.Columns.Add(priceNameColumn); dataTable.Columns.Add(minQtyColumn); dataTable.Columns.Add(priceColumn); dataTable.Columns.Add(priceUnitColumn);
dataTable.Columns.Add(manualPriceColumn); dataTable.Columns.Add(manualDiscount1Column); dataTable.Columns.Add(manualDiscount2Column); dataTable.Columns.Add(manualDiscountAmountColumn); dataTable.Columns.Add(fixDiscount1Column); dataTable.Columns.Add(fixDiscount2Column); dataTable.Columns.Add(fixDiscountAmountColumn); dataTable.Columns.Add(fixCommissionColumn); dataTable.Columns.Add(maxDiscountColumn); dataTable.Columns.Add(minDiscountColumn); dataTable.Columns.Add(maxCommissionColumn); dataTable.Columns.Add(discountScaleIdColumn); for (var price in items) { var dataRow = dataTable.NewRow(); if (productListHash.Exists(items[price].productId)){ dataRow.Cells.GetNamedItem("productnumber").Value=productListHash(items[price].productId); }else{ dataRow.Cells.GetNamedItem("productnumber").Value = ''; } dataRow.Cells.GetNamedItem("priceType").Value = items[price].priceType; dataRow.Cells.GetNamedItem("discountscalename").Value = items[price].discountScaleName; dataRow.Cells.GetNamedItem("priceName").Value = items[price].priceName dataRow.Cells.GetNamedItem("minQty").Value = items[price].minQty; dataRow.Cells.GetNamedItem("price").Value = parseFloat(items[price].price); dataRow.Cells.GetNamedItem("priceUnit").Value = items[price].priceUnit; dataRow.Cells.GetNamedItem("manualPrice").Value = items[price].manualPrice; dataRow.Cells.GetNamedItem("manualDiscount1").Value = items[price].manualDiscount1; dataRow.Cells.GetNamedItem("manualDiscount2").Value = items[price].manualDiscount2; dataRow.Cells.GetNamedItem("manualDiscountAmount").Value = items[price].manualDiscountAmount; dataRow.Cells.GetNamedItem("fixDiscount1").Value = items[price].fixDiscount1; dataRow.Cells.GetNamedItem("fixDiscount2").Value = items[price].fixDiscount2; dataRow.Cells.GetNamedItem("fixDiscountAmount").Value = items[price].fixDiscountAmount; dataRow.Cells.GetNamedItem("fixCommission").Value = items[price].fixCommission; dataRow.Cells.GetNamedItem("maxDiscount").Value = items[price].maxDiscount; dataRow.Cells.GetNamedItem("minDiscount").Value = items[price].minDiscount; dataRow.Cells.GetNamedItem("maxCommission").Value = items[price].maxCommission; dataRow.Cells.GetNamedItem("discountScaleId").Value = items[price].discountScaleId; dataTable.Rows.Add(dataRow); }
grid.RootTable.Name = "Root"; grid.SetDataSource(dataTable); grid.DataBind(); grid.Render(); //event.cancelBubble = true; //event.returnValue = false;
}
function IncomingData() { this.__type = "Wuerth.Phoenix.Speedy.OrderlineGrid.IncomingData"; this.UserID = '046ef555-b464-df11-bd5e-005056b52983'; this.AreaID = 'fbc76318-2916-df11-b28f-005056b50ab3'; this.AreaID = '00000000-0000-0000-0000-000000000000';
var currency = ISGetObject("WebComboCurrency"); var account = ISGetObject("WebComboAccount"); this.CustomerID = '00000000-0000-0000-0000-000000000000'; if (account.Value != null && account.Value != "") { this.CustomerID = account.Value; }
this.CurrencyID = '00000000-0000-0000-0000-000000000000'; if (currency.Value != null && currency.Value != "") { this.CurrencyID = currency.Value; }
var quantity = ISGetObject("WebInputQuantity"); this.MinQty = 100000; if (quantity.GetValueData() != null && quantity.GetValueData() != '') { this.MinQty = parseInt(quantity.GetValueData()); } this.ProductList = new Array(); } //end class
//class used for parameters of FlyPostBack methods function ProductInfo(productId) { this.__type = "Wuerth.Phoenix.Speedy.OrderlineGrid.DataLayer.ProductInfo"; this.ProductId = productId; }
function searchPrices_Clicked() { //send data to server side var fpb = ISGetObject("uiService"); //fpb.Asynchronous = fpb._Asynchronous = false; var sendingData = new IncomingData(); var gridProducts = ISGetObject("WebGridFinal"); for (var i = 0; i < gridProducts.GetRootTable().GetRowsCount(); i++) { var htmlRowElmGridProducts = wgGetRowByPosition(gridProducts.RootTable.GetElement(WG40.BODY, WG40.HTMLTABLE), i); var rowObjGridProducts = wgGetRowByElement(htmlRowElmGridProducts); var productid = rowObjGridProducts.GetCells().GetNamedItem("productid").Text; sendingData.ProductList.push(new ProductInfo(productid)); } WebGridX_OnAfterInitialize('WebGridPrices'); fpb.SearchPrices(sendingData); }
function CreateDataBinding(operation) { var grid = ISGetObject("WebGridFinal");
var table = grid.RootTable; var WebGridStart = ISGetObject("WebGridStart")
var dataView = table.GetView(); var dataTable = null; var firstTime = false; if (dataView == null) { firstTime = true; dataTable = new ISDataTable();
var idColumn = new ISDataColumn(dataTable); var numberColumn = new ISDataColumn(dataTable); var nameColumn = new ISDataColumn(dataTable); var checkColumn = new ISDataColumn(dataTable);
/* setup data columns */ dataTable.Name = dataTable.TableName = "Root"; idColumn.Name = idColumn.ColumnName = "productid"; numberColumn.Name = numberColumn.ColumnName = "productnumber"; nameColumn.Name = nameColumn.ColumnName = "productidname"; checkColumn.Name = checkColumn.ColumnName = "RowChecker";
/* add columns to data table */ dataTable.Columns.Add(idColumn); dataTable.Columns.Add(numberColumn); dataTable.Columns.Add(nameColumn); dataTable.Columns.Add(checkColumn); } else { dataTable = dataView.Table; }
var lenRows = 0; var rowObj = null; var j = 0; if (operation == "Move") { lenRows = WebGridStart.GetRootTable().GetCheckedRows().length; if (lenRows == 0) { var selObj = WebGridStart.GetSelectedObject(); if ((selObj != null) && (selObj.ToRowObject().Type == 'Record')) { rowObj = selObj.ToRowObject(); j = -1; } } } else { lenRows = WebGridStart.RootTable.GetRowsCount(); }
while (j < lenRows) { var rowTableProducts; if (operation == "Move") { if (j < 0) { rowTableProducts = rowObj; } else { rowTableProducts = WebGridStart.GetRootTable().ToRowObject(WebGridStart.GetRootTable().GetCheckedRows()[j]); } } else { var htmlRowElmGridProducts = wgGetRowByPosition(WebGridStart.RootTable.GetElement(WG40.BODY, WG40.HTMLTABLE), j); rowTableProducts = wgGetRowByElement(htmlRowElmGridProducts); }
// var found = false;// var count = dataTable.Rows.length; ;// var ii = 0;// while (found == false && ii < count) {// if (dataTable.Rows[ii].Cells.GetNamedItem("productid").Value == rowTableProducts.GetCell("productidname").CellElement.getAttribute('productid')) {// found = true;// }// ii++;// }// if (!found) { if (!productListHash.Exists(rowTableProducts.GetCell("productidname").CellElement.getAttribute('productid'))) { var dataRow = dataTable.NewRow(); dataRow.Cells.GetNamedItem("productid").Value = rowTableProducts.GetCell("productidname").CellElement.getAttribute('productid'); dataRow.Cells.GetNamedItem("productnumber").Value = rowTableProducts.GetCell("productnumber").Value.replace(/ /g, " "); dataRow.Cells.GetNamedItem("productidname").Value = rowTableProducts.GetCell("productidname").Value; dataRow.Cells.GetNamedItem("RowChecker").Value = false; dataTable.Rows.Add(dataRow); productListHash.Add(rowTableProducts.GetCell("productidname").CellElement.getAttribute('productid'), rowTableProducts.GetCell("productnumber").Value.replace(/ /g, " ")); } j++; }
/* bind the data table to WebGrid */ if (firstTime) { grid.RootTable.Name = "Root"; grid.SetDataSource(dataTable); grid.DataBind(); grid.Render(); } else { grid.RebindData(); } event.cancelBubble = true; event.returnValue = false; }
function ButtonDeleteProducts_Clicked(typeButtom) { var WebGridFinal = ISGetObject("WebGridFinal"); var table = WebGridFinal.RootTable; var dataView = table.GetView(); var countRow = 0;
if (typeButtom == "Delete") countRow = WebGridFinal.GetRootTable().GetCheckedRows().length; else countRow = WebGridFinal.GetRootTable().GetRowsCount();
for (var j = countRow - 1; j >= 0; j--) { var rowTableProducts = WebGridFinal.GetRootTable().ToRowObject(WebGridFinal.GetRootTable().GetCheckedRows()[j]); dataView.Table.Rows.Remove(rowTableProducts.DataRow); if (productListHash.Exists(rowTableProducts.Cells.GetNamedItem("productid").Value)) { productListHash.Remove(rowTableProducts.Cells.GetNamedItem("productid").Value); } } WebGridFinal.RebindData();
event.cancelBubble = true; event.returnValue = false; }
function WebComboAccount_OnLostFocus() { var comboAccount = ISGetObject('WebComboAccount'); var accountId = document.getElementById('HiddenAccountId'); if ((comboAccount.Value != accountId.value)|| ((comboAccount.Value != "") && (comboAccount.GetTextBoxValue() == ""))) { if (comboAccount.GetTextBoxValue() == "") { accountId.value = ''; var comboArea = ISGetObject('WebComboArea'); //comboArea.ClearResultBox(); comboArea.NeedClearList = true; comboArea.SetText('a'); comboArea.LoadValue(true); comboArea.SetText('');
} // else {// var comboArea = ISGetObject('WebComboArea');// accountId.value = comboAccount.Value;// comboArea.ClearResultBox();// comboArea.NeedClearList = true;// comboArea.SetText('AREA D');// comboArea.LoadValue(true);// //comboArea.SetText('');// } } }
function WebComboAccount_OnAfterItemSelected() { var accountId = document.getElementById('HiddenAccountId'); var comboAccount = ISGetObject('WebComboAccount'); var comboArea = ISGetObject('WebComboArea'); accountId.value = comboAccount.Value; comboArea.ClearResultBox(); comboArea.NeedClearList = true; var rowCombo = comboAccount.GetSelectedRow(); comboArea.SetText('a'); comboArea.LoadValue(true); comboArea.SetText(''); } function getQuerystring(key, default_) { if (default_ == null) default_ = ""; key = key.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]"); var regex = new RegExp("[\\?&]" + key + "=([^]*)"); var qs = regex.exec(window.location.href); if (qs == null) return default_; else return qs[1]; }
function WebGridPrices_OnInitializeRow(controlId, row) { //userdefined/edit.aspx?id={380C9D74-F738-DF11-B28F-005056B50AB3}&etc=10011# var orgname = getQuerystring('orgname', ''); if (orgname != '') { orgname = '/' + orgname; } row.Cells.GetNamedItem("discountscalename").Value = window.location.protocol + '//' + window.location.host + orgname + '/userdefined/edit.aspx?id={' + row.Cells.GetNamedItem("discountScaleId").Value + '}&etc=' + etc + '#'; } </script>
</head><body style="width:100%; height: 100%;"> <form id="form1" runat="server" style="width:100%; height: 100%;"> <div id="webgrid" class="webgrid" style="height: 100%;"> <table style="width:100%; table-layout: fixed;"> <tr><td width="220px"> <asp:Label ID="LabelAccount" runat="server" Text="Account" Font-Names="Tahoma" Font-Size="13px"></asp:Label> <ISWebCombo:WebCombo ID="WebComboAccount" runat="server" UseDefaultStyle="True" AllowWildCardSearch="True" DataCacheStorage="Session" DataMember="p_GetAccountInfo" DataSourceID="ISDataSourceAccountInfo" DataTextField="name" DataValueField="accountid" Height="20px" ViewStateStorage="None" Width="210px" AdditionalSearchFields="accountnumber"> <Columns> <ISWebCombo:WebComboColumn BaseFieldName="name" Name="name" HeaderText="Name" /> <ISWebCombo:WebComboColumn BaseFieldName="accountid" Name="accountid" DataType="System.Guid" Hidden="True" RenderOnHidden="true"/> <ISWebCombo:WebComboColumn BaseFieldName="accountnumber" HeaderText="Number" Name="accountnumber" /> <ISWebCombo:WebComboColumn BaseFieldName="transactioncurrencyidname" Hidden="True" Name="transactioncurrencyidname" RenderOnHidden="true"/> </Columns> <LayoutSettings RoundCorner="True" ComboMode="MultipleColumns"> <ClientSideEvents OnLostFocus="WebComboAccount_OnLostFocus" OnAfterItemSelected="WebComboAccount_OnAfterItemSelected"/> </LayoutSettings> </ISWebCombo:WebCombo> <ISDataSource:ISDataSource ID="ISDataSourceAccountInfo" runat="server" SchemaName="Wuerth.Phoenix.Speedy.OrderlineGrid.PriceInfoDataSet"> <Tables> <ISDataSource:ISDataSourceTable DataObjectTypeName="System.Nullable`1[[System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]" SelectMethod="GetData" TableName="p_GetAccountInfo" TypeName="Wuerth.Phoenix.Speedy.OrderlineGrid.PriceInfoDataSetTableAdapters.p_GetAccountInfoTableAdapter"> <SelectParameters> <asp:QueryStringParameter Name="userid" QueryStringField="userid" Type="Object" /> </SelectParameters> </ISDataSource:ISDataSourceTable> </Tables> </ISDataSource:ISDataSource> </td> <td width="185px"> <asp:Label ID="LabelArea" runat="server" Text="Area" Font-Names="Tahoma" Font-Size="13px"></asp:Label> <ISWebCombo:WebCombo ID="WebComboArea" runat="server" UseDefaultStyle="True" DataSourceID="ISDataSourceArea" Height="20px" Width="175px" DataMember="p_GetAreas" DataTextField="Speedy_name" DataValueField="Speedy_areaId" AllowAutoDataCaching="False" ViewStateStorage="None"> <LayoutSettings RoundCorner="True"> </LayoutSettings> </ISWebCombo:WebCombo> <ISDataSource:ISDataSource ID="ISDataSourceArea" runat="server" SchemaName="Wuerth.Phoenix.Speedy.OrderlineGrid.PriceInfoDataSet"> <Tables> <ISDataSource:ISDataSourceTable SelectMethod="GetData" TableName="p_GetAreas" TypeName="Wuerth.Phoenix.Speedy.OrderlineGrid.PriceInfoDataSetTableAdapters.p_GetAreasTableAdapter"> <SelectParameters> <asp:ControlParameter ControlID="HiddenAccountId" Name="prAccountId" PropertyName="Value" Type="String" /> </SelectParameters> </ISDataSource:ISDataSourceTable> </Tables> </ISDataSource:ISDataSource> </td> <td width="120px"> <asp:Label ID="LabelQuantity" runat="server" Text="Quantity" Font-Names="Tahoma" Font-Size="13px"></asp:Label> <ISWebInput:WebInput ID="WebInputQuantity" runat="server" MaxDate="12/31/9998 23:59:59" Width="110px" MinDate="1753-01-01" DecimalSeparator=""> <EditFormat> <ErrorWindowInfo IsEnabled="False"> </ErrorWindowInfo> </EditFormat> <DateTimeEditor DateInputLink=""> <DropDownYearFrameStyle BackColor="White" BorderColor="Black" BorderWidth="1px"> </DropDownYearFrameStyle> <DropDownMonthFrameStyle BackColor="White" BorderColor="Black" BorderWidth="1px"> </DropDownMonthFrameStyle> <QuickSelectDateIconStyle Height="18px" Width="20px"> </QuickSelectDateIconStyle> </DateTimeEditor> <TextBoxStyle> </TextBoxStyle> <CultureInfo CultureName="en-US"> </CultureInfo> <DisplayFormat ErrorText="" Format="n" IsEnabled="True" IsValidateOnChange="False" Type="Number"> </DisplayFormat> </ISWebInput:WebInput> </td> <td width="130px"> <asp:Label ID="LabelCurrency" runat="server" Text="Currency" Font-Names="Tahoma" Font-Size="13px"></asp:Label> <ISWebCombo:WebCombo ID="WebComboCurrency" runat="server" UseDefaultStyle="True" DataMember="CurrencyExt" DataSourceID="ISDataSourceCurrency" DataTextField="CurrencyName" DataValueField="TransactionCurrencyId" Height="20px" Width="120px" UseCachedDataOnFirstLoad="True"> <LayoutSettings RoundCorner="True" TextBoxMode="ReadOnly" AlwaysShowAllRowsOnDropdown="True" AlwaysShowHelpButton="False"> </LayoutSettings> </ISWebCombo:WebCombo> <ISDataSource:ISDataSource ID="ISDataSourceCurrency" runat="server" SchemaName="Wuerth.Phoenix.Speedy.OrderlineGrid.PriceInfoDataSet" CacheDuration="3600" EnableCaching="Yes"> <Tables> <ISDataSource:ISDataSourceTable SelectMethod="GetData" TableName="CurrencyExt" TypeName="Wuerth.Phoenix.Speedy.OrderlineGrid.PriceInfoDataSetTableAdapters.CurrencyExtTableAdapter"> </ISDataSource:ISDataSourceTable> </Tables> </ISDataSource:ISDataSource> </td> </tr> </table> <table style="width: 100%; table-layout: fixed;"> <tr> <td style="min-width:150px;" > <ISWebGrid:WebGrid ID="WebGridStart" runat="server" OnInitializeRow="WebGridStart_OnInitializeRow" DataSourceID="ISDataSourceProduct" Height="250px" UseDefaultStyle="True" DefaultStyleMode="Elegant" DataMember="p_GetproductBaseInfo" > <LayoutSettings AllowFilter="Yes" AllowMultipleSelection="Yes" AutoFitColumns="true" AllowColumnMove="Yes" AllowGrouping="Yes" AllowSorting="Yes" AlwaysShowHelpButton="False" AutoFilterSuggestion="True" PagingDetectPartialGroupRows="True" PagingMode="VirtualLoad" VirtualLoadMode="LargeData" AllowSelectColumns="Yes" ShowColumnAction="True" ShowFilterStatus="True"> </LayoutSettings> <RootTable Caption="All products" DataKeyField="ProductNumber" DataMember="ProductNumber"> <Columns> <ISWebGrid:WebGridColumn Caption="ProductNumber" DataMember="ProductNumber" Name="productnumber" Width="100px" ColumnType="Custom" ShowInSelectColumns="No" TreatMarkupAsLiteralText="True"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="ProductName" DataMember="ProductName" Name="productidname" Width="100px"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="productid" DataMember="ProductId" DataType="System.Guid" Name="productid" Width="100px" Visible="false" ShowInSelectColumns="No"> </ISWebGrid:WebGridColumn> </Columns> <PreviewRowSettings Expandable="False"> </PreviewRowSettings> </RootTable> </ISWebGrid:WebGrid> </td> <td width= "90px" style="min-width:8px; width:90px; vertical-align:middle; "> <div style="min-width:100px; width: 100%; "> <table align= "center" style="width: 100%;"> <tr> <td align= "center"> <ISWebDesktop:WebButton ID="ButtonForwardProduct" runat="server" Height="25px" Text="Move" DisplayMode="TextAndImage" Image="images/Nav_MoveNext-16.gif" Width="80px" Parameter="Move" OnClientClick="CreateDataBinding('Move')" > </ISWebDesktop:WebButton> </td> </tr> <tr> <td align= "center"> <ISWebDesktop:WebButton ID="ButtonForwardProducts" runat="server" Height="25px" Text="Move All" DisplayMode="TextAndImage" Image="images/Nav_MoveLast-16.gif" Width="80px" Parameter="MoveAll" OnClientClick="CreateDataBinding('MoveAll')"> </ISWebDesktop:WebButton> </td> </tr> <tr> <td> <hr /> </td> </tr> <tr> <td align= "center" > <ISWebDesktop:WebButton ID="ButtonDeleteProducts" runat="server" Height="25px" Text="Delete" OnClientClick="ButtonDeleteProducts_Clicked('Delete')" DisplayMode="TextAndImage" Image="images/Nav_MovePrevious-16.gif" Width="80px"> </ISWebDesktop:WebButton> </td> </tr> <tr> <td> <hr /> </td> </tr>
<tr> <td align= "center" > <ISWebDesktop:WebButton ID="ButtonSearch" runat="server" Height="25px" Text="Search" DisplayMode="Text" Width="80px" OnClientClick="searchPrices_Clicked"> </ISWebDesktop:WebButton> </td> </tr>
</table> </div> </td> <td style="min-width:150px;"> <ISWebGrid:WebGrid ID="WebGridFinal" runat="server" Height="250px" UseDefaultStyle="True" BindingOperationMode="ClientBinding" DefaultStyleMode="Elegant" StateRestorationLevel="Low" > <LayoutSettings AutoFitColumns="true" AllowContextMenu="False" AlwaysShowHelpButton="False" ShowRefreshButton="False"> </LayoutSettings> <RootTable Caption="Products choosed" DataKeyField="productid"> <Columns> <ISWebGrid:WebGridColumn AllowGrouping="No" AllowSizing="No" AllowSorting="No" Bound="False" ColumnType="CheckBox" EditType="NoEdit" IsRowChecker="True" Name="RowChecker" ShowInSelectColumns="No" Width="25px" > </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="productnumber" DataMember="productnumber" Name="productnumber" Width="100px" ColumnType="Custom" TreatMarkupAsLiteralText="True"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="name" DataMember="productidname" Name="productidname" Width="100px"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="productid" DataMember="productid" DataType="System.Guid" Name="productid" Width="100px" Visible="false"> </ISWebGrid:WebGridColumn> </Columns> </RootTable> <ClientBindingSettings DataSourceType="ClientDataSource"> </ClientBindingSettings> </ISWebGrid:WebGrid> </td> </tr> </table> <div id="spStatus" style="height:18px; padding-top: 0px; padding-left: 0px"> </div> <%--PriceType PriceList Quantita’ Prezzo DiscScale--%> <table style="width: 100%; table-layout: fixed; height: auto;"> <tr> <td> <ISWebGrid:WebGrid ID="WebGridPrices" runat="server" Widh="100%" UseDefaultStyle="True" BindingOperationMode="ClientBinding" DefaultStyleMode="Elegant" StateRestorationLevel="Low" > <LayoutSettings AutoHeight="true" AutoFitColumns="true" AllowColumnMove="Yes" AllowContextMenu="True" AllowFilter="Yes" AllowGrouping="Yes" AllowSorting="Yes" AlwaysShowHelpButton="False" HideColumnsWhenGrouped="No" AllowSelectColumns="Yes" AutoFilterSuggestion="True" ShowColumnAction="True" ShowRefreshButton="False"> <ClientSideEvents OnInitializeRow="WebGridPrices_OnInitializeRow" /> </LayoutSettings> <RootTable Caption="Prices found" > <Columns> <ISWebGrid:WebGridColumn Caption="ProductNumber" DataMember="productnumber" Name="productnumber" Width="150px" ColumnType="Custom" TreatMarkupAsLiteralText="True"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="PriceType" DataMember="priceType" Name="priceType" Width="160px"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="PriceList" DataMember="priceName" Name="priceName" Width="160px" > </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Quantity" DataMember="minQty" DataType="System.Decimal" Name="minQty" Width="70px" DataFormatString="#" > <CellStyle HorizontalAlign="Right"> </CellStyle>
</ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="PricePerUnit" DataMember="price" DataType="System.String" Name="price" Width="90px" DataFormatString="c"> <CellStyle HorizontalAlign="Right"> </CellStyle> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="PriceUnit" DataMember="priceUnit" DataType="System.Decimal" Name="priceUnit" DataFormatString="#" Width="70px" > <CellStyle HorizontalAlign="Right"> </CellStyle>
</ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="DiscountScale" DataMember="discountscalename" Name="discountscalename" Width="150px" ColumnType="HyperLink" > </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="minDiscount" DataMember="minDiscount" Name="minDiscount" Width="60px"> <CellStyle HorizontalAlign="Right"> </CellStyle> </ISWebGrid:WebGridColumn><ISWebGrid:WebGridColumn Caption="maxDiscount" DataMember="maxDiscount" Name="maxDiscount" Width="60px"> <CellStyle HorizontalAlign="Right"> </CellStyle> </ISWebGrid:WebGridColumn><ISWebGrid:WebGridColumn Caption="maxCommission" DataMember="maxCommission" Name="maxCommission" Width="60px"> <CellStyle HorizontalAlign="Right"> </CellStyle> </ISWebGrid:WebGridColumn><ISWebGrid:WebGridColumn Caption="manualPrice" DataMember="manualPrice" Name="manualPrice" Width="0px" ColumnType="CheckBox" ShowInSelectColumns="No" Visible="false" EditType="NoEdit"></ISWebGrid:WebGridColumn><ISWebGrid:WebGridColumn Caption="manualDiscount1" DataMember="manualDiscount1" Name="manualDiscount1" Width="0px" ColumnType="CheckBox" EditType="NoEdit" ShowInSelectColumns="No" Visible="false"></ISWebGrid:WebGridColumn><ISWebGrid:WebGridColumn Caption="fixDiscount1" ShowInSelectColumns="No" Visible="false" DataMember="fixDiscount1" Name="fixDiscount1" Width="0px"><CellStyle HorizontalAlign="Right" > </CellStyle></ISWebGrid:WebGridColumn><ISWebGrid:WebGridColumn Caption="manualDiscount2" DataMember="manualDiscount2" Name="manualDiscount2" Width="0px" ColumnType="CheckBox" EditType="NoEdit" ShowInSelectColumns="No" Visible="false"></ISWebGrid:WebGridColumn><ISWebGrid:WebGridColumn Caption="fixDiscount2" ShowInSelectColumns="No" Visible="false" DataMember="fixDiscount2" Name="fixDiscount2" Width="0px"><CellStyle HorizontalAlign="Right" > </CellStyle></ISWebGrid:WebGridColumn><ISWebGrid:WebGridColumn Caption="manualDiscountAmount" DataMember="manualDiscountAmount" Name="manualDiscountAmount" Width="0px" ColumnType="CheckBox" DataType="System.Boolean" EditType="NoEdit" ShowInSelectColumns="No" Visible="false"></ISWebGrid:WebGridColumn><ISWebGrid:WebGridColumn Caption="fixDiscountAmount" DataMember="fixDiscountAmount" Name="fixDiscountAmount" Width="0px" DataFormatString="c" ShowInSelectColumns="No" Visible="false"><CellStyle HorizontalAlign="Right"> </CellStyle></ISWebGrid:WebGridColumn><ISWebGrid:WebGridColumn Caption="fixCommission" DataMember="fixCommission" Name="fixCommission" Width="0px" ShowInSelectColumns="No" Visible="false"><CellStyle HorizontalAlign="Right"> </CellStyle></ISWebGrid:WebGridColumn><ISWebGrid:WebGridColumn Caption="discountScaleId" DataMember="discountScaleId" DataType="System.Guid" Name="discountScaleId" Width="1px" Visible="false" ShowInSelectColumns="No"> </ISWebGrid:WebGridColumn> </Columns> <SortedColumns> <ISWebGrid:WebGridGroup ColumnMember="productnumber" SortOrder="Ascending" /> <ISWebGrid:WebGridGroup ColumnMember="minQty" SortOrder="Ascending" /> </SortedColumns> </RootTable> <ClientBindingSettings DataSourceType="ClientDataSource"> </ClientBindingSettings> </ISWebGrid:WebGrid> </td> </tr> </table> <ISWebDesktop:WebFlyPostBackManager ID="uiService" runat="server" ServiceUrl="PriceInfo.aspx" ServiceType="WebForm" AutoEventWireup="true" WebServiceResponseFormat="Json" ShowLoaderOnBusy="True" LoaderHostControlID="spStatus" BlockPageUIOnBusy="True" > <FlyPostBackSettings PostInputControls="True" PostViewState="True" /> <LoaderTemplate> <img src="images/is_progress-16.gif" align="absmiddle" /> <%= Wuerth.Phoenix.Speedy.Multilanguage.SpeedyResources.ResourceManager.GetString("PriceInfo_Message_SearchingPrices", ci) %> </LoaderTemplate> <LoaderStyle Font-Names="Tahoma" Font-Size="14px" > </LoaderStyle> </ISWebDesktop:WebFlyPostBackManager> </div>
<ISDataSource:ISDataSource ID="ISDataSourceProduct" runat="server" SchemaName="Wuerth.Phoenix.Speedy.OrderlineGrid.PriceInfoDataSet"> <Tables> <ISDataSource:ISDataSourceTable SelectMethod="GetData" TableName="p_GetproductBaseInfo" TypeName="Wuerth.Phoenix.Speedy.OrderlineGrid.PriceInfoDataSetTableAdapters.p_GetproductBaseInfoTableAdapter"> <SelectParameters> <asp:QueryStringParameter DefaultValue="1033" Name="languageID" QueryStringField="userlcid" Type="String" /> </SelectParameters> </ISDataSource:ISDataSourceTable> </Tables> </ISDataSource:ISDataSource> <asp:HiddenField ID="HiddenAccountId" Value="" runat="server" /> <asp:ScriptManager ID="ScriptManager2" runat="server"> <Scripts> <asp:ScriptReference Path="script/shortcut.js"/> <asp:ScriptReference Path="script/numberFormat154.js"/> <asp:ScriptReference Path="script/Utility.js"/> </Scripts> </asp:ScriptManager> </form></body></html>
I have tried also with a page that includes only the webinput control, on 32 bit all work fine intstead on windows server 2008 R2 IIS 7.5 we have the error.
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="VinceVsWebrid._Default" %> <%@ Register Assembly="ISNet.WebUI.WebInput" Namespace="ISNet.WebUI.WebControls" TagPrefix="ISWebInput" %> <%@ Register Assembly="ISNet.WebUI.WebGrid" Namespace="ISNet.WebUI.WebGrid" TagPrefix="ISWebGrid" %> <%-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > --%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <html > <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> <ISWebInput:WebInput ID="WebInput1" runat="server" DecimalSeparator="" NumericInput="true" MaxDate="12/31/9998 23:59:59" MinDate="1753-01-01"> <EditFormat> <ErrorWindowInfo IsEnabled="False"> </ErrorWindowInfo> </EditFormat> <DateTimeEditor DateInputLink=""> <DropDownYearFrameStyle BackColor="#FFFFFF" BorderColor="Black" BorderWidth="1px"> </DropDownYearFrameStyle> <DropDownMonthFrameStyle BackColor="#FFFFFF" BorderColor="Black" BorderWidth="1px"> </DropDownMonthFrameStyle> <QuickSelectDateIconStyle Height="18px" Width="20px"> </QuickSelectDateIconStyle> </DateTimeEditor> <CultureInfo CultureName="en-US"> </CultureInfo> <DisplayFormat ErrorText="" Format="n" IsEnabled="false" IsValidateOnChange="False" Type="Number"> <ErrorWindowInfo IsEnabled="False"></ErrorWindowInfo> </DisplayFormat> </ISWebInput:WebInput> </div> </form> </body> </html>
the error is:
Attempted to read or write protected memory. This is often an indication that other memory is corrupt. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Stack Trace:
[AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.] ISNet.WebUI.XMLCultureInfo.CreateXMLNumberFormatInfo(XmlDocument xmlDoc) +0 ISNet.WebUI.XMLCultureInfo.CreateXMLCultureInfo() +97 AssignSerializeXmlNode(XmlNode node, Object obj) +157 ISNet.WebUI.WebControls.WebInput.GetXMLCultureInfo() +345 ISNet.WebUI.ISNetControl.RegisterScript() +409 ISNet.WebUI.WebControls.WebInput.RegisterScript() +364 ISNet.WebUI.ISNetControl(Object , EventArgs ) +103 System.EventHandler.Invoke(Object sender, EventArgs e) +0 System.Web.UI.Control.OnPreRender(EventArgs e) +11028046 System.Web.UI.Control.PreRenderRecursiveInternal() +108 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3394
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927
Based on some previous issue with similar error, you could try setting the Enable 32-bit Applications property in the application pool you are using for the project to True.
You could modify this property in the IIS Manager Application Pool Advance Setting window by selecting the application pool you are using in the project.
we can not follow you suggestion because our webapplication is inside another site that is 64 bit.
Anyway we have tried and now we have the following error:
Calling LoadLibraryEx on ISAPI filter "C:\Program Files\Microsoft Dynamics CRM\Server\bin\DefaultAddonFilter.dll" failed
Have you tried to reproduce the error on your test environment?
Unfortunately, we could not replicate the issue on our 64bit environment. Our developer also assures me that the 32bit application will only need to be set to true if you are using WebGrid charting.
Attached is the simple project I used in order to test the issue. I already used WebInput 4 build 4 and WebUI Framework 3 build 753.
we have still the same problem, could you send us a deployed directory also with the library in order to use the same virtual directory used by yourself.
Vincenzo
we have changed the settings using enable 32bit application and everything works fine.
Anyway we can not work with this settings because we have our webapplication inside another internet site.
Could you help us to fix this problem?
on our test server win 2008 Server R2 we installed only the runtime we do not have all development environment installed.
Could you tell us the settings on your environment where you said it worked?
The test system is Window 7 Enterprise 64 bit with Visual Studio 2008 installed. For the assembly, please make sure that these assembly is located in project bin folder:
- ISNet.dll- ISNet.WebUI.dll- ISNet.WebUI.Resources.dll- ISNet.WebUI.WebInput.dll- ISNet.WebUI.WebInput.Resources.dll
The WebUI Framework is version 3 build 753 and WebInput is version 4 and build 4.
The InputSimpleTest archive that I attached in my last post is the deployed directory I used to test the issue, in my test environment even though the enable 32 bit application in the application pool is set to false the sample runs without any issue.
The libraries version into the bin folder are the same.
On the server machine win server 2008 R2, we do not have visual studio and intersoft installed, we have only the runtime library.
Could you provide us any library in order to generete any logfiles that we could send you?
Unfortunately, we do not have any special library that we could send you to generate log files. Does the attached sample project also exhibit the same issue in your environment? If not, perhaps you could create a simple sample so we could replicate the issue in our environment.
If you would like, you could try our live chat and share your machine details so our support could connect remotely to your machine and do some quick analysis.
thanks but now I am out of office, anyway I have used the files that you attached in this post and we still had rhe problem.
could you think that the problem could be due to the culture set in the application, what is the currecy set on your environment? how to set the default currency?
We use smartresource do you think that this could be a problem? how to deploy the common library?
The error is always related to this method ISNet.WebUI.XMLCultureInfo.CreateXMLNumberFormatInfo
Could you modify your code in order to insert any log information so we could understand what is this culture code.
I will ask tyo my colleague to perfom other tests.
In the test I am using en-US culture, the date and currency format is using the default en-US culture. If you could inform us the culture you are using, we could re-test the project in our environment using the culture you are using.
In the attached project, I am using smartweb resource. However, if you would like to try using common library, you could read it in the WebInput documentation in the article titled "Deploying project that does not use SmartWebResources"
I used the default en-US too.
It is really strange, could you provide us a modified library in order to debug better, and also inser any log messages.
In such case, we prefer to remotely connect to your environment and analyse the issue ourselves. You could use live chat or email to technical@intersoftpt.com for further steps in the issue.
I have run our provided WebScheduler sample in Windows Server 2008 64 bit environment, however the sample runs without any issue. With the release of WebUI Studio 2010 R1, WebInput 4 and WebUI Framework 3 has been updated to build 5 and 755 respectively.You could retrieve the latest build by installing our WebUI Studio 2010 R1 release and retrieve the new assembly from the installation folder.
we are using the version 2009 R2 Sp1 last update
On our customer environment in production now we can not update directly to new version 2010 R1, because we need to plan the migration activity, now we have this bug in production environment.
Could you provide us a bug fix on our current version?
we have tired using the library included on version 2010 R1 and it works fine, instead with the library included in 2009R2 Sp1 last update we have the error, this means that in our version there is the bug, so we would have a patch to fix this bug in our version now we can not install the version 2010 directly to our customer environment.
Since in the 2010 R1 the WebInput and WebUI Framework does not recieve any major version upgrade, the update scenario will be similar with hotfix update.
Since our update server have not been updated with the latest build, currently you must install WebUI Studio 2010 R1 to retrieve the latest build.
now we can not use the 2010 R1 because our full subscription is expired and we want to maintain the version 2009 R2 that is currently installed on our customer environment, so could you tell me how to receive an hotfix related to our version 2009 R2 sp1.
Since the WebInput does not reviece a major version upgrade in the 2010 R1 release, all the WebInput license for the 200 R2 release will also work for the 2010 R1 release.
The WebInput and WebUI Framework build will be available in the update manager shortly. However, if you would like to get the latest build right now, you will need to retrieve the build from the 2010 R1 installation folder.
thanks for the information.
I have found that the problem is due to the WebUI framework library. is it possibile to use the webUI Framework related to 2010 R1 and maintain all other libraries version 2009 R2?
Our state is the following:
Our subscription is expired, anyway is our runtime license still valid?
And if we would deploy the 2010 R1 in production environment the our runtime lincense could be valid all the same?
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname