LoadDocument throwing error

Сonversation on different topics
Post Reply
shweta verma
Posts: 8
Joined: Thu Mar 04, 2021 5:09 am

LoadDocument throwing error

Post 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?
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: LoadDocument throwing error

Post by Lech Kulikowski »

Hello,

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

Thank you.
shweta verma
Posts: 8
Joined: Thu Mar 04, 2021 5:09 am

Re: LoadDocument throwing error

Post 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
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: LoadDocument throwing error

Post 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.
shweta verma
Posts: 8
Joined: Thu Mar 04, 2021 5:09 am

Re: LoadDocument throwing error

Post by shweta verma »

We have shared extra logging DLLs with client to get the sample response. Once we get the data then will share
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: LoadDocument throwing error

Post by Lech Kulikowski »

Hello,

Ok. We will wait.
Post Reply