We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Web resource not found in ej.spreadsheet.min.js

Thread ID:

Created:

Updated:

Platform:

Replies:

143213 Mar 9,2019 12:17 AM UTC Mar 13,2019 12:41 PM UTC ASP.NET Web Forms 1
loading
Tags: Spreadsheet
Hasindu
Asked On March 9, 2019 12:17 AM UTC

I'm using a Spreadsheet control in an ASP.NET web forms project
Each time, when 'that' page loads, Exception is thrown.

In chrome dev tools, I can see that the exception is throwing from ej.spreadsheet.min.js line 43884 (Chrome {} version)
  _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")) {
                    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
                }

line if (c = g.offsetWidth, throws the error 'Failed to load resource: the server responded with a status of 404 (Not Found)'

This is the stack trace (or something like that) (I didn't made a HTML table here :-) )
 
_refreshScroller@ScriptResource.axd?dd85:formatted:43884
_refreshContent@ej.web.all.min.js:10
refreshContent@ej.web.all.min.js:10
_renderSheet@ej.web.all.min.js:10
_initSheet@ej.web.all.min.js:10
_renderLayout@ej.web.all.min.js:10
_initLayout@ej.web.all.min.js:10
_initBase@ej.web.all.min.js:10
_init@ej.web.all.min.js:10
(anonymous)@ej.web.all.min.js:10
n.fn.(anonymous function)@ScriptResource.axd?dffffffffb6a88d85:10
(anonymous)@ExamEdit:181

It is thrown twice every page load.

In visual studio, output was showing some exceptions,
 Exception thrown: 'System.Web.HttpException' in System.Web.dll

 It came from this void of System.web.dll :: System.Web.Handlers.AssemblyResourceLoader
/// <summary>For a description of this member, see <see cref="M:System.Web.IHttpHandler.ProcessRequest(System.Web.HttpContext)" />.</summary>
/// <param name="context">The context of the request.</param>
/// <exception cref="T:System.Web.HttpException">The Web resource request is invalid.- or -The assembly name could not be found.- or -The resource name could not be found in the assembly.</exception>
// Token: 0x06001617 RID: 5655 RVA: 0x00044BDC File Offset: 0x00042DDC
void IHttpHandler.ProcessRequest(HttpContext context)
{
context.Response.Clear();
Stream stream = null;
string text = null;
bool flag = false;
Exception exception = null;
try
{
NameValueCollection queryString = context.Request.QueryString;
string text2 = queryString["d"];
And about 100 more code lines
  May be it doesn't make any sense, but it throws the exception

I'm referencing these from script manager. (Same error came when I tried including them in html. So, script manager is not doing anything wrong)
    "Scripts\jquery-3.3.1.min.js",
                        "Scripts\jsrender.min.js",          //*
                        "Scripts\jquery.validate.min.js",          //*
                        "Scripts\jquery.validate.unobtrusive.min.js",          //*
                        "Scripts\ej\common\ej.core.min.js",          //*
                        "Scripts\ej\common\ej.data.min.js",          //*
                        "Scripts\WebForms\WebForms.js",          //*
                        "Scripts\ej\common\ej.scroller.min.js",    //*
                        "Scripts\ej\web\ej.web.all.min.js"
                        
//* marks represents that I've tried removing and adding them.

 Spreadsheet is having issues like not saving (Returning a byte[] of few hundreds of null values but nothing as model) and crazy server events. What files am I'm missing? I have intalled nuget package. Other controls like RTE, Grid and toolbars are working. Why not this?

The attached file is only the specific page and code behind (VB.NET). It wont be compilable as it has many references with others. Please check what is wrong. I've wasted so much days for this issue and I spent a whole night sneaking into system dlls to find who throws ex ! So please help me !!



Attachment: SpreadSheetIssue_95074da1.zip

Silambarasan I [Syncfusion]
Replied On March 13, 2019 12:41 PM UTC

Hi Hasindu, 
 
Thank you for contacting Syncfusion support. 
 
We have created a sample based on your provided code snippet in version ’16.3.0.21’ and the sample working fine in our end without any issues. Please check the video demonstration from the link below. 
 
Video Link:  
 
 
Could you please check the above sample and get back to us with the below details if the issue persists? 
 
1. Please provide the replication steps to replicate the console error in our end such as details about UI interaction, etc. 
 
2. If possible, please replicate your issue in the above sample and get back to us. So that, we can analyze based on that and provide you a solution sooner. 
 
2. Please confirm whether you are using ’16.3.0.21’ version. If not, please share your current product version. 
 
The information provided would be great help for us to proceed further. 
 
Regards, 
Silambarasan 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;