- Home
- Forum
- ASP.NET Web Forms
- Application_Error in Global.asax when loading a page containing SpreadSheet control
Application_Error in Global.asax when loading a page containing SpreadSheet control
When Loading an ASP.NET web forms Page that is containing a Spreadsheet control,Application_Error void in Global.asaxis getting called.
Application_Error is getting called twiceevery postback.
This is a part of the output from Visual Studio output. (Which came while this error)
Exception thrown: 'System.Threading.ThreadAbortException' in mscorlib.dll
Exception thrown: 'System.Threading.ThreadAbortException' in mscorlib.dll
Exception thrown: 'System.Threading.ThreadAbortException' in System.Web.dll
The thread 0x2a08 has exited with code 0 (0x0).
The thread 0x2750 has exited with code 0 (0x0).
Exception thrown: 'System.Web.HttpException' in System.Web.dll
Exception thrown: 'System.Web.HttpException' in System.Web.dll
Exception thrown: 'System.Web.HttpException' in System.Web.dll
Exception thrown: 'System.Web.HttpException' in System.Web.dll
Exception thrown: 'System.Web.HttpException' in System.Web.dll
Exception thrown: 'System.Web.HttpException' in System.Web.dll
This is the exception details forSystem.Web.HttpException
System.Web.HttpException
HResult=0x80004005
Message=This is an invalid webresource request.
I suspect this is happening because of theSpreadSheet control. This does not happen in any other pages. Other parts This the ASPX page,
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="ExamEdit.aspx.vb" Inherits="SMAS.ASPSvr.ExamEdit" StylesheetTheme="Proj" Theme="Proj" %>
<%@ Register Assembly="Syncfusion.EJ.Web" Namespace="Syncfusion.JavaScript.Web" TagPrefix="ej" %>
<%@ Register Assembly="Syncfusion.EJ" Namespace="Syncfusion.JavaScript.Models" TagPrefix="ej" %>
Exam Sheet Editor
| Title | |
| Password | |
| Details | |
Does it have anything wrong?
Please help me to fix this issue. Ask me for more info if needed.
I'm having another issue on the same page. Check if they are related - https://www.syncfusion.com/forums/142722/changes-to-spreadsheet-sheets-not-updating
SIGN IN To post a reply.
4 Replies
SI
Silambarasan I
Syncfusion Team
February 19, 2019 07:26 AM UTC
Hi Hasindu,
Thank you for contacting Syncfusion support.
We have looked into your reported query and before we provide solution, we would like to know the following details.
1. Please provide more information about your issue while getting Application_Error on every post back such as details of Http Error Code with error message, Exception error details. If possible, please provide error screenshots or video demonstration or issue reproducible dummy sample.
2. Please share your code snippet or details about the Spreadsheet rendering part to know about the used way of dataSource binding, dataSource length and customization in Spreadsheet if you did.
3. Please confirm that you are currently using Essential Studio product version ‘v16.4.0.42’. If not, please share your current product version details.
Could you please get back to us with the above information so that we can analyze based on that and provide you a better solution at earliest? The information provided would be great help for us to proceed further.
Regards,
Silambarasan
HA
Hasindu
February 21, 2019 09:08 PM UTC
The version of Syncfusion.EJ is 16.4460.0.52
I'm receiving following many time in chrome console
WebResource.axd:1 Failed to load resource: the server responded with a status of 404 (Not Found)
The URL of that is
http://localhost:2052/WebResource.axd?d=DdgjHcAzq1d56W0G9r8Y3WV9ugW8OLNkBfeS6nolYl-D5dpbMeosksCPRE02LIhaU59Kxc9YCSLXBBEX9bDIwLcAYFMH-ed3rlo3jn8L12tYLw8K-E80NBZR-8HCtA4L0jTfQfaPz_AfgOxTjqN3nsww68Z46JgQL-RmaAbDl9QtNjQ_1MRW6lj6ZZ3jdX-I0&t=636863876354096555
Sometimes I get following in chrome console
GET http://localhost:2052/WebResource.axd?d=_02HorMgHfpa-An8s4LPQMk8xjgqFU5oJuavVBICeekA-Npq2JPR-qAWMrsrRsd-HaviiuCAOK0KXsyjlp1_qsldqRv4RZloUUFvoNFunbn_qlT-BsESVKsXVpwSmoEblm7oioq-rmMUF8MkfOs05vNhrLoPkrRJ7VjxWF4L4aUci2y685oIJYJ_n0hLuDp-0&t=636863876354096555 404 (Not Found)
This is coming from my aspx page. From this script. (This is only the first few lines)
//
javascript: window.open('Home.aspx');
setTimeout(function() {
window.document.forms[0].target = '';
}, 0);
$("#ctl09").ejToolbar({
"clientId": "ctl09",
"uniqueId": "ctl09",
"serverEvents": ["click"]
});
$("#FlatSpreadsheet").ejSpreadsheet({
"sheets": [{
"rangeSettings": [{}],
"rows": [{
"index": 0,
"height": 0,
"cells": [{
"index": 0,
"value": "00 . 00"
}, {
"index": 0,
Nothing is in these URLs. Then, It should be coursing problems.
Next error is from ej.spreadsheet.min.js
_refreshScroller: function(n, i, r) {
var c, s, l, h, b, k, a = 0, e = this.XLObj, n = e._getSheetIndex(n), o = e.getSheet(n), f = this._hScroller(n), y = o.columnWidth, p = o.rowHeight, u = this._vScroller(n), w = e.model.scrollSettings.scrollMode === t.Spreadsheet.scrollMode.Normal, d = e._getContent(n), g = d.find(".e-content")[0], v;
if (w && f && u && d.find("table").length && (this._refreshContHgt(n),
r = r === "horizontal" ? "all" : r),
f && (r === "all" || r === "horizontal")) {
Error Over Here >>>> if (c = g.offsetWidth,
s = e._getWidth(0, o.colCount - 1, n) - o._frozenWidth,
s < c + 2 * y && !w)
for (b = Math.floor((c + y * 5 - s) / y),
v = 0; v < b; v++)
this._createNewColumn(n, {
rowIndex: -1,
colIndex: -1
}, {
rowIndex: -1,
colIndex: -1
}, "insert"),
s = s + y;
f._scrollData.handleSpace = c - 2 * f.model.buttonSize;
a = e._isFrozen(e.getFrozenColumns()) ? e._getColOffsetLeft(o, e.getFrozenColumns()) - o._contScrollLeft : 0;
f._scrollData.handle = Math.floor((c - a) / s * f._scrollData.handleSpace);
f._scrollData.handle < 15 && (f._scrollData.handle = 15);
f._scrollData.scrollable = f.model.maximum = s - (c - a);
f._scrollData.onePx = f._scrollData.scrollable / (f._scrollData.handleSpace - f._scrollData.handle) || 1;
f["e-hhandle"].width(f._scrollData.handle);
f.model.scrollLeft = f._scrollData.handleSpace - f._scrollData.handle
}
It says GET http://localhost:2052/WebResource.axd?d=YAzUlQoRhixIR5DlFJkOhKJ9EOVSX-y02Gbf8BYx5DzwzzXN-ZJq_RkvJSA-nlo4asrWWfIzxOi4FrSuBegY2D2rPP4MeBzHtVYVPENtBFu7RY5erCWwhjw1cUETJjWBQkMcjGtOjHYYZuY2L8jR8v__AZ7pLgsZpGistXXbd-gTqfBTd_3bUUs9VE9vY1gLip8FAbp8JZ5OUlzBvuwtow2&t=636863876354096555 404 (Not Found)
Next error is from ej.web.all.min.js
if (this._removeClass(b, "e-overflow"),
this.clearRangeData([n, i, n, i], ["isOverflow"], "", "", "", !0),
h.getPropertyValue(n, i + 1, "value2", c) && !k && (tt = !0),
tt || (yt = st._rowHeightCollection,
ct = st._ofColWidthColl,
et = b ? this.XLFormat.getFormatFromHashCode(this.XLFormat.getFormatClass(b.className)) : {},
u || (g = document.getElementById(this._id + "_emptySpan"),
this.addClass(g, "e-rowcell e-wrapword"),
this.addClass(g, ut),
g.textContent = h.getPropertyValue(n, i, "value2", c),
Error here >>> u = "text-indent"in et ? Math.round(4 / 3 * Number(et[t.Spreadsheet.SupportedStyles.TextIndent].replace("pt", "")) + this._detailsFromGlobalSpan(n, i, "width", g.textContent, null, !0)) : g.offsetWidth),
this._refreshGlobalSpan(g),
ht = this.XLShape._getCellIndexFromOffset(null, ct[i] + u, c, !0),
w = ht.colIndex - i),
!f && h.getPropertyValue(n, i, "value2", c) && (l = h.getPropertyValue(n, i, "overflow", c),
!t.isNullOrUndefined(l) && l.rowIndex === n))
if (ft = this.getCell(l.rowIndex, l.colIndex),
ft && this.addClass(ft[0], "e-overflow"),
h._updateDataContainer({
rowIndex: l.rowIndex,
Next from jquery-3.3.1.min.js
function Fe(e, t, n) {
var r, i, o, a, s = e.style;
Error Here >>> return (n = n || $e(e)) && ("" !== (a = n.getPropertyValue(t) || n[t]) || w.contains(e.ownerDocument, e) || (a = w.style(e, t)),
!h.pixelBoxStyles() && We.test(a) && Be.test(t) && (r = s.width,
i = s.minWidth,
o = s.maxWidth,
s.minWidth = s.maxWidth = s.width = a,
a = n.width,
s.width = r,
s.minWidth = i,
s.maxWidth = o)),
void 0 !== a ? a + "" : a
}
I've seen your code examples of spreadsheet has "Content/Spreadsheet/SpreadsheetStyles.css" rel="stylesheet" />
I didn't include this. The error comes in both ways. But I don't have that file in solution. Is that is required even if I'm not using rel='nofollow' href on it?
Please help me. I'm running out of time.
HA
Hasindu
February 21, 2019 09:15 PM UTC
The version of Syncfusion.EJ is 16.4460.0.52
I'm receiving following many time in chrome console
WebResource.axd:1 Failed to load resource: the server responded with a status of 404 (Not Found)
The URL of that is
http://localhost:2052/WebResource.axd?d=DdgjHcAzq1d56W0G9r8Y3WV9ugW8OLNkBfeS6nolYl-D5dpbMeosksCPRE02LIhaU59Kxc9YCSLXBBEX9bDIwLcAYFMH-ed3rlo3jn8L12tYLw8K-E80NBZR-8HCtA4L0jTfQfaPz_AfgOxTjqN3nsww68Z46JgQL-RmaAbDl9QtNjQ_1MRW6lj6ZZ3jdX-I0&t=636863876354096555
Sometimes I get following in chrome console
GET http://localhost:2052/WebResource.axd?d=_02HorMgHfpa-An8s4LPQMk8xjgqFU5oJuavVBICeekA-Npq2JPR-qAWMrsrRsd-HaviiuCAOK0KXsyjlp1_qsldqRv4RZloUUFvoNFunbn_qlT-BsESVKsXVpwSmoEblm7oioq-rmMUF8MkfOs05vNhrLoPkrRJ7VjxWF4L4aUci2y685oIJYJ_n0hLuDp-0&t=636863876354096555 404 (Not Found)
This is coming from my aspx page. From this script. (This is only the first few lines)
script type="text/javascript">
//<![CDATA[
javascript: window.open('Home.aspx');
setTimeout(function() {
window.document.forms[0].target = '';
}, 0);
$("#ctl09").ejToolbar({
"clientId": "ctl09",
"uniqueId": "ctl09",
"serverEvents": ["click"]
});
$("#FlatSpreadsheet").ejSpreadsheet({
"sheets": [{
"rangeSettings": [{}],
"rows": [{
"index": 0,
"height": 0,
"cells": [{
"index": 0,
"value": "00 . 00"
}, {
"index": 0,
Nothing is in these URLs. Then, It should be coursing problems.
Next error is from ej.spreadsheet.min.js
_refreshScroller: function(n, i, r) {
var c, s, l, h, b, k, a = 0, e = this.XLObj, n = e._getSheetIndex(n), o = e.getSheet(n), f = this._hScroller(n), y = o.columnWidth, p = o.rowHeight, u = this._vScroller(n), w = e.model.scrollSettings.scrollMode === t.Spreadsheet.scrollMode.Normal, d = e._getContent(n), g = d.find(".e-content")[0], v;
if (w && f && u && d.find("table").length && (this._refreshContHgt(n),
r = r === "horizontal" ? "all" : r),
f && (r === "all" || r === "horizontal")) {
Error Over Here >>>> if (c = g.offsetWidth,
s = e._getWidth(0, o.colCount - 1, n) - o._frozenWidth,
s < c + 2 * y && !w)
for (b = Math.floor((c + y * 5 - s) / y),
v = 0; v < b; v++)
this._createNewColumn(n, {
rowIndex: -1,
colIndex: -1
}, {
rowIndex: -1,
colIndex: -1
}, "insert"),
s = s + y;
f._scrollData.handleSpace = c - 2 * f.model.buttonSize;
a = e._isFrozen(e.getFrozenColumns()) ? e._getColOffsetLeft(o, e.getFrozenColumns()) - o._contScrollLeft : 0;
f._scrollData.handle = Math.floor((c - a) / s * f._scrollData.handleSpace);
f._scrollData.handle < 15 && (f._scrollData.handle = 15);
f._scrollData.scrollable = f.model.maximum = s - (c - a);
f._scrollData.onePx = f._scrollData.scrollable / (f._scrollData.handleSpace - f._scrollData.handle) || 1;
f["e-hhandle"].width(f._scrollData.handle);
f.model.scrollLeft = f._scrollData.handleSpace - f._scrollData.handle
}
It says GET http://localhost:2052/WebResource.axd?d=YAzUlQoRhixIR5DlFJkOhKJ9EOVSX-y02Gbf8BYx5DzwzzXN-ZJq_RkvJSA-nlo4asrWWfIzxOi4FrSuBegY2D2rPP4MeBzHtVYVPENtBFu7RY5erCWwhjw1cUETJjWBQkMcjGtOjHYYZuY2L8jR8v__AZ7pLgsZpGistXXbd-gTqfBTd_3bUUs9VE9vY1gLip8FAbp8JZ5OUlzBvuwtow2&t=636863876354096555 404 (Not Found)
Next error is from ej.web.all.min.js
if (this._removeClass(b, "e-overflow"),
this.clearRangeData([n, i, n, i], ["isOverflow"], "", "", "", !0),
h.getPropertyValue(n, i + 1, "value2", c) && !k && (tt = !0),
tt || (yt = st._rowHeightCollection,
ct = st._ofColWidthColl,
et = b ? this.XLFormat.getFormatFromHashCode(this.XLFormat.getFormatClass(b.className)) : {},
u || (g = document.getElementById(this._id + "_emptySpan"),
this.addClass(g, "e-rowcell e-wrapword"),
this.addClass(g, ut),
g.textContent = h.getPropertyValue(n, i, "value2", c),
error here>>> u = "text-indent"in et ? Math.round(4 / 3 * Number(et[t.Spreadsheet.SupportedStyles.TextIndent].replace("pt", "")) + this._detailsFromGlobalSpan(n, i, "width", g.textContent, null, !0)) : g.offsetWidth),
this._refreshGlobalSpan(g),
ht = this.XLShape._getCellIndexFromOffset(null, ct[i] + u, c, !0),
w = ht.colIndex - i),
!f && h.getPropertyValue(n, i, "value2", c) && (l = h.getPropertyValue(n, i, "overflow", c),
!t.isNullOrUndefined(l) && l.rowIndex === n))
if (ft = this.getCell(l.rowIndex, l.colIndex),
ft && this.addClass(ft[0], "e-overflow"),
h._updateDataContainer({
rowIndex: l.rowIndex,
Next from jquery-3.3.1.min.js
function Fe(e, t, n) {
var r, i, o, a, s = e.style;
Error Here >>> return (n = n || $e(e)) && ("" !== (a = n.getPropertyValue(t) || n[t]) || w.contains(e.ownerDocument, e) || (a = w.style(e, t)),
!h.pixelBoxStyles() && We.test(a) && Be.test(t) && (r = s.width,
i = s.minWidth,
o = s.maxWidth,
s.minWidth = s.maxWidth = s.width = a,
a = n.width,
s.width = r,
s.minWidth = i,
s.maxWidth = o)),
void 0 !== a ? a + "" : a
}
I've seen your code examples of spreadsheet has "Content/Spreadsheet/SpreadsheetStyles.css" rel="stylesheet" />
I didn't include this. The error comes in both ways. But I don't have that file in solution. Is that is required even if I'm not using rel='nofollow' href on it?
SI
Silambarasan I
Syncfusion Team
February 25, 2019 12:10 PM UTC
Hi Hasindu,
Sorry for the inconvenience.
We have checked your reported issue by preparing sample in our latest version (v16.4.0.52) and it’s working properly in our end. So, could you please provide the below information to proceed further?
1. Please provide more information about the components rendered in your issue facing aspx page. If possible, please share code snippets to replicate your issue.
2. Please confirm whether the provided errors are thrown after the post back on page load or performing any operation in Spreadsheet. Also, please share your exact scenario.
3. Please provide the details about your scripts & css references details in your master page since the error stack trace occurred from both ej.spreadsheet.min.js & ej.web.all.min.js.
Note:
We suspect that you have seen the ‘SpreadsheetStyles.css’ from our demo examples. It is used for sample level demo customization so there is no need to include this in your solution.
Could you please get back to us with above information to replicate this issue in our end if possible please provide issue reproducible sample so that we can analyze based on that and provide you a better solution at the earliest?
Regards,
Silambarasan
SIGN IN To post a reply.
- 4 Replies
- 2 Participants
-
HA Hasindu
- Feb 16, 2019 04:41 PM UTC
- Feb 25, 2019 12:10 PM UTC
8/07/2026 09:49:49 PM
Sun, 15 December 2024 03:30:00 UTC
Sun, 15 December 2024 03:30:00 AM
Wed, 16 Feb 2022 04:59:00 UTC