Page 1 of 1

LoadDocument throwing error

Posted: Thu Dec 28, 2023 8:47 am
by shweta verma
We are using version 2022.3.4. Client is getting error when they try to call loaddocument for savedreport as shown below :
savedReport.LoadDocument(reportDocumentBlob.GetDecompressedBlob());

the error stack :
exception occurred when requesting https://optimistam.dev.thewestpacgroup. ... v-xxxxxxxx
The view 'Error' or its master was not found or no view engine supports the searched locations. The following locations were searched:
~/Views/ReportViewer/Error.aspx
~/Views/ReportViewer/Error.ascx
~/Views/Shared/Error.aspx
~/Views/Shared/Error.ascx
~/Views/ReportViewer/Error.cshtml
~/Views/ReportViewer/Error.vbhtml
~/Views/Shared/Error.cshtml
~/Views/Shared/Error.vbhtml

System.InvalidOperationException: The view 'Error' or its master was not found or no view engine supports the searched locations. The following locations were searched:
~/Views/ReportViewer/Error.aspx
~/Views/ReportViewer/Error.ascx
~/Views/Shared/Error.aspx
~/Views/Shared/Error.ascx
~/Views/ReportViewer/Error.cshtml
~/Views/ReportViewer/Error.vbhtml
~/Views/Shared/Error.cshtml
~/Views/Shared/Error.vbhtml
at System.Web.Mvc.ViewResult.FindView(ControllerContext context)
at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult)
at System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState)
at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag)
at System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag)
at System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult)
at System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState)
at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


Could you please suggest what could be the possible reason for this issue?

Re: LoadDocument throwing error

Posted: Thu Dec 28, 2023 9:40 am
by Lech Kulikowski
Hello,

Please send us a sample project that reproduces the issue for analysis.

Thank you.

Re: LoadDocument throwing error

Posted: Thu Dec 28, 2023 9:59 am
by shweta verma
Hi,
This issue is occurring on client's environment so we dont have much information.
It is inconsistent and we are speculating that when we save the report it is saing it as blank and then when we try to open it is throwing the error

Re: LoadDocument throwing error

Posted: Thu Dec 28, 2023 10:59 am
by Lech Kulikowski
Hello,

1. what will happen if this line is commented out?
2. what will happen if put the "reportDocumentBlob.GetDecompressedBlob()" method into a separate line?
3. what result does the method reportDocumentBlob.GetDecompressedBlob()?

Thank you.

Re: LoadDocument throwing error

Posted: Tue Jan 16, 2024 6:36 am
by shweta verma
We have shared extra logging DLLs with client to get the sample response. Once we get the data then will share

Re: LoadDocument throwing error

Posted: Tue Jan 16, 2024 8:48 am
by Lech Kulikowski
Hello,

Ok. We will wait.