Current filter:
                                You should refresh the page.
                                  • Hi Support,

                                    We are getting this error when we generate the reports. Kindly assist how to resolve the same asap.

                                    It says Cannot create a document for the current report. As we are loading the reports (xml) from the database.

                                    [C#]
                                    public static void PrintLoad(this ReportModel repModel) { string rtfText = ReportRepository.GetPrintLayout(repModel.SYSID, repModel.Type, repModel.CENTERID); //S: System Reports C: Custom Reports if (!rtfText.Equals("")) { string reportName = ReportRepository.GetReportName(repModel.SYSID, repModel.Type, repModel.CENTERID); byte[] bytes = System.Text.Encoding.UTF8.GetBytes(rtfText); using (var ms = new MemoryStream(bytes)) { repModel.ReportLayout = new XtraReport(); repModel.ReportLayout.LoadLayoutFromXml(ms); string _jsonObject = repModel.paramss.Replace(@"\", string.Empty); var serializer = new System.Web.Script.Serialization.JavaScriptSerializer(); Dictionary<string, object[]> colDictionary = serializer.Deserialize<Dictionary<string, object[]>>(_jsonObject); foreach (var item in colDictionary) { //BindingReportPram PrintFormatParameters(repModel, item.Key.ToString(), item.Value[0].ToString()); } if (repModel.Type == "S") { repModel.ReportLayout.RequestParameters = false; } } repModel.ReportName = reportName; } else { repModel.ErrorMsg = "NOREPORT"; } }

                                    Please assist on this asap.


                                Show all comments
                                • Balaji BLS 02.07.2019
                                  Please find the attached Screen shot for your reference.
                                • Dmitry Tok (DevExpress Support) 02.07.2019

                                  Hello,

                                  Would you please implement the LoggerService in your application, collect server-side exception logs and then send them to us for further investigation? 

                                  In addition, check your browser's Network tab (press the F12 key to open developer tools panel) and see what Response is returned by your web server by DXXRDV requests? To do so, click the request that returned an error, check what error code was returned by the web server and review the response returned by your web server. Please also let us know whether your application is hosted on a web server that is configured to use a Web Farm or Web Garden environment. 

                                  We're looking forward to hearing from you.

                                  Thanks,
                                  Dmitry

                                • Balaji BLS 02.07.2019
                                  Thanks for your Email. Sure we will implement the LoggerService and update you with the logs soon.

                                  Just wanted to keep you posted that we are trying this application with Web Garden Environment.

                                  Please let us know is there anything we need to take care.

                                  Thanks,
                                  Balaji
                                • Dmitry Tok (DevExpress Support) 02.07.2019
                                  Thank you for the update, Balaji.

                                  Yes, I suggest that you thoroughly review the Web Farms and Web Garden Support help topic covering all aspects of using our reporting tools in such environments and make sure that you follow these guidelines in your application.

                                  Dmitry
                                • Balaji BLS 02.09.2019
                                  Hi Dmitry,

                                  Please find the Error we are getting after we implemented the Cached Reports to a File instead of In Memory

                                  Error:

                                  [2/10/2019 9:59:09 AM]: Exception occured. Message: 
                                  'DevExpress.XtraReports.Web.WebDocumentViewer.Native.Services.WebDocumentViewerRequestController.StartBuild (startBuild)'. Exception Details:
                                  System.ArgumentException: Report '58dec135954042909c881bfb22376b64' not found
                                  Parameter name: id
                                     at DevExpress.XtraReports.Web.WebDocumentViewer.Native.Services.ReportManagementService.DoWithReportById[T](String id, String reportUrl, Func`3 func)
                                     at DevExpress.XtraReports.Web.WebDocumentViewer.Native.Services.ReportManagementService.StartBuild(String id, String reportUrl, ReportBuildProperties buildProperties)
                                     at DevExpress.XtraReports.Web.WebDocumentViewer.Native.Services.WebDocumentViewerRequestController.StartBuild(StartBuildRequest startBuildRequest)
                                     at lambda_method(Closure , IWebDocumentViewerRequestController , String )
                                     at DevExpress.XtraReports.Web.Native.ClientControls.Services.RequestManagerBase`1.WrapWithTryCatchAction(String controllerTypeName, String methodName, String webActionName, ControllerFunc invoker, TController controller, String json)



                                  Please check and update asap.

                                  Thanks,
                                  Balaji
                                • Balaji BLS 02.09.2019
                                  As well as i am still getting this error even after we implemented the File level Cache Reports. "Can not create a document for the current report"

                                  Please advise asap as the production stopped.

                                  Thanks,
                                  Balaji
                                • Balaji BLS 02.10.2019
                                  we got another error (log file)

                                  [2/11/2019 8:41:35 AM]: Exception occured. Message: 'DevExpress.XtraReports.Web.WebDocumentViewer.Native.Services.WebDocumentViewerRequestController.StartBuild (startBuild)'. Exception Details:
                                  System.ArgumentException: Report 'fe10acd6f5b34b43a67e7cf0c413c688' not found
                                  Parameter name: id
                                     at DevExpress.XtraReports.Web.WebDocumentViewer.Native.Services.ReportManagementService.DoWithReportById[T](String id, String reportUrl, Func`3 func)
                                     at DevExpress.XtraReports.Web.WebDocumentViewer.Native.Services.ReportManagementService.StartBuild(String id, String reportUrl, ReportBuildProperties buildProperties)
                                     at DevExpress.XtraReports.Web.WebDocumentViewer.Native.Services.WebDocumentViewerRequestController.StartBuild(StartBuildRequest startBuildRequest)
                                     at lambda_method(Closure , IWebDocumentViewerRequestController , String )
                                     at DevExpress.XtraReports.Web.Native.ClientControls.Services.RequestManagerBase`1.WrapWithTryCatchAction(String controllerTypeName, String methodName, String webActionName, ControllerFunc invoker, TController controller, String json)
                                  [2/11/2019 8:41:36 AM]: Exception occured. Message: 'DevExpress.XtraReports.Web.WebDocumentViewer.Native.Services.WebDocumentViewerRequestController.StartBuild (startBuild)'. Exception Details:
                                  System.ArgumentException: Report 'ea6d75f0dfdc4fcebdbacbe092bbf41e' not found
                                  Parameter name: id
                                     at DevExpress.XtraReports.Web.WebDocumentViewer.Native.Services.ReportManagementService.DoWithReportById[T](String id, String reportUrl, Func`3 func)
                                     at DevExpress.XtraReports.Web.WebDocumentViewer.Native.Services.ReportManagementService.StartBuild(String id, String reportUrl, ReportBuildProperties buildProperties)
                                     at DevExpress.XtraReports.Web.WebDocumentViewer.Native.Services.WebDocumentViewerRequestController.StartBuild(StartBuildRequest startBuildRequest)
                                     at lambda_method(Closure , IWebDocumentViewerRequestController , String )
                                     at DevExpress.XtraReports.Web.Native.ClientControls.Services.RequestManagerBase`1.WrapWithTryCatchAction(String controllerTypeName, String methodName, String webActionName, ControllerFunc invoker, TController controller, String json)


                                • Balaji BLS 02.10.2019
                                  [11-02-2019 10:56:54 AM]: Exception occured. Message: 'DevExpress.XtraReports.Web.WebDocumentViewer.Native.Services.WebDocumentViewerRequestController.StartBuild (startBuild)'. Exception Details:
                                  System.IO.IOException: The directory is not empty.


                                     at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
                                     at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound)
                                     at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost)
                                     at DevExpress.XtraPrinting.Caching.FileDocumentStorage.Clear()
                                     at DevExpress.XtraPrinting.Caching.CachedReportSourceBase.CreateDocumentAsyncCore()
                                     at DevExpress.XtraReports.Web.CachedReportSourceWeb.CreateDocumentAsync(DocumentStorage documentStorage, Action customizeBuildThread, Action`1 onFirstChange, Func`1 stopPredicate)
                                     at DevExpress.XtraReports.Web.WebDocumentViewer.Native.Services.CachedDocumentBuilder.StartBuild(XtraReport report, CachedReportSourceWeb cachedReportSource, Action customizeBuildingThread)
                                     at DevExpress.XtraReports.Web.WebDocumentViewer.Native.Services.ReportManagementServiceLogic.StartBuildCachedReportSource(IDocumentManagementService cachedDocumentManagementService, ICachedDocumentBuilder cachedDocumentBuilder, XtraReport report, CachedReportSourceWeb cachedReportSource, String reportId, String reportUrl, WebDocumentViewerOperationLogger operationLogger, ReportBuildProperties buildProperties)
                                     at DevExpress.XtraReports.Web.WebDocumentViewer.Native.Services.ReportManagementService.<>c__DisplayClass4.<StartBuild>b__3(XtraReport x, CachedReportSourceWeb cachedReportSource)
                                     at DevExpress.XtraReports.Web.WebDocumentViewer.Native.Services.ReportManagementService.DoWithReportById[T](String id, String reportUrl, Func`3 func)
                                     at DevExpress.XtraReports.Web.WebDocumentViewer.Native.Services.ReportManagementService.StartBuild(String id, String reportUrl, ReportBuildProperties buildProperties)
                                     at DevExpress.XtraReports.Web.WebDocumentViewer.Native.Services.WebDocumentViewerRequestController.StartBuild(StartBuildRequest startBuildRequest)
                                     at lambda_method(Closure , IWebDocumentViewerRequestController , String )
                                     at DevExpress.XtraReports.Web.Native.ClientControls.Services.RequestManagerBase`1.WrapWithTryCatchAction(String controllerTypeName, String methodName, String webActionName, ControllerFunc invoker, TController controller, String json)


                                • Dmitry Tok (DevExpress Support) 02.11.2019

                                  Hi Balaji,

                                  Thank you for the information you provided.

                                  Having reviewed your call stacks, I believe that something went wrong and it would be great if you demonstrate how you implemented the three most important parts applicable to your hosting environment:

                                  1) Make sure that reports are opened only by reportName variable, i.e. using the Bind(String) method. Operating with XtraReport class instances created in a controller's action and returned to a view with the Web Document Viewer is not supported for Web Gardens;
                                  2) The ICachedReportSourceWebResolver interface that's responsible for instantiating reports by a given name. I believe that you can move your previous code to this interface implementation.
                                  3) Do not forget to initialize the file document storage at the application startup: UseFileDocumentStorage(String, StorageSynchronizationMode).

                                  While I see that you've already implemented steps 2 and 3, I believe that the root cause of these errors can be related to the 1st point. If you've checked everything I mentioned and still face these issues, I'm afraid that it will be almost impossible to help you further without being able to examine your application implementation, especially all reporting tools-related parts, on our side.

                                  Thanks,
                                  Dmitry

                                • Balaji BLS 02.11.2019
                                  Thanks for your support. 

                                  Do you have any demo project to implement same in the WebGarden that will help us to deal with this issue quickly.

                                  Kindly share the same.

                                  Thanks,
                                  Balaji
                                • Dmitry Tok (DevExpress Support) 02.11.2019

                                  I'm afraid that we have no ready to use sample demonstrating the best implementation practices and creating this project might take some time. Meanwhile, you can send us these files for further research:

                                  1) The source code of the view that holds the Web Document Viewer;
                                  2) The source code of the controller tied to this view;
                                  3) The source code of the Global.asax file;
                                  4) Your implementation of the ICachedReportSourceWebResolver interface;
                                  5) Your implementation of the Report Storage Web Extension. 

                                  Let me know if you're not able to provide us with these files so we start implementing a sample project and update this thread as soon as we finish.

                                  Thanks,
                                  Dmitry

                                • Balaji BLS 02.11.2019
                                  Hi Dmitry,

                                  After we followed the process as you mentioned all those steps we were getting this below error. Could you please suggest what could be issue.

                                  [2/12/2019 5:15:38 AM]: Exception occured. Message: 'DevExpress.XtraReports.Web.WebDocumentViewer.Native.Services.WebDocumentViewerRequestController.StartBuild (startBuild)'. Exception Details:
                                  System.NullReferenceException: Object reference not set to an instance of an object.
                                     at Praktora.Business.Rules.Reports.ReportPrintLayout.PrintFormatParameters(ReportModel repModel, String Key, String Value)
                                     at PraktoraWeb.Areas.pReports.Controllers.preportsController.TryGetCachedReportSourceWeb(String reportName, CachedReportSourceWeb& CachedReportSourceWeb)
                                     at DevExpress.XtraReports.Web.WebDocumentViewer.Native.Services.ReportManagementService.TryToGetStoredReport(String id, String reportUrl)
                                     at DevExpress.XtraReports.Web.WebDocumentViewer.Native.Services.ReportManagementService.DoWithReportById[T](String id, String reportUrl, Func`3 func)
                                     at DevExpress.XtraReports.Web.WebDocumentViewer.Native.Services.ReportManagementService.StartBuild(String id, String reportUrl, ReportBuildProperties buildProperties)
                                     at DevExpress.XtraReports.Web.WebDocumentViewer.Native.Services.WebDocumentViewerRequestController.StartBuild(StartBuildRequest startBuildRequest)
                                     at lambda_method(Closure , IWebDocumentViewerRequestController , String )
                                     at DevExpress.XtraReports.Web.Native.ClientControls.Services.RequestManagerBase`1.WrapWithTryCatchAction(String controllerTypeName, String methodName, String webActionName, ControllerFunc invoker, TController controller, String json)




                                  Thanks,
                                  Balaji
                                • Balaji BLS 02.12.2019
                                  Hi Dmitry,

                                  We have created and attached a XtraReport Sample project following the steps you have suggested. Kindly go through and suggest the correction. 

                                  The same is working sometimes where as we get few exceptions as we shared above. 

                                  Thanks
                                  Balaji
                                • Dmitry Tok (DevExpress Support) 02.12.2019

                                  Hi Balaji,

                                  Thank you for the provided information.

                                  Based on the call stack you provided earlier, I see that the Null Reference exception is thrown within the PrintFormatParameters method and I suggest that you debug your application to determine the cause of the error.

                                  Having examined the provided sample project, I see that you implemented the ICachedReportSourceWebResolver interface at the level of your controller, but this is not required action. You do not need to call the TryGetCachedReportSourceWeb method and operate with the CachedReportSourceWeb object in the ReportViewer action. This action should return a name of a report that should be previewed in Web Document Viewer only. In turn, Web Document Viewer automatically invokes the TryGetCachedReportSourceWeb method once it receives a report's name. Thus, I suggest that you implement the ICachedReportSourceWebResolver interface at the level of a separate class which should take care of resolving reports by a given name, assigning report parameters and creation of CachedReportSourceWeb object. 

                                  Please check how your application operates after that and let us know your results. 

                                  Finally, the  UseFileDocumentStorage(String, StorageSynchronizationMode) method help topic mentions the following:

                                  Use the UseFileDocumentStorage(String, StorageSynchronizationMode) method overload to specify the InterProcess synchronization mode if you use Web Farms or Garden. By default, the InterThread mode is set.

                                  I suggest that you fix this method call in the Global.asax.cs file as well.

                                  Thanks,
                                  Dmitry

                                • Balaji BLS 02.12.2019
                                  Hi Dmitry,

                                  Thank you for your support.

                                  If you could help us correct the sample and share the solution that will help us resolve the same asap.

                                  As the application in production we stuck with this problem.

                                  I really appreciate if you could fix the sample and share it with us.

                                  Thank you,
                                  Balaji
                                • Balaji BLS 02.13.2019
                                  Hi Dmitry,

                                  We have corrected the XtraReport Sample as suggested by you.
                                  1. We have implemented ICachedReportSourceWebResolver interface as the at the level of a separate class.

                                  2. In TryGetCachedReportSourceWeb  method we need an extra parameter 'paramss' (check the code please) so we are passing it by appending it into ReportID in ReportViewer and retrieving in the method by splitting it. We can not user static variable as it will fail in case of multiple users. Please check and let us know if it is right approach and work fine.

                                  3. In the same how can we implement FileExportedDocumentStorage  to export files. Here we would like to export report as pdf without opening it. 

                                  Regards  

                                   
                                • Dmitry Tok (DevExpress Support) 02.13.2019

                                  Hello,

                                  This is great news that you were able to implement recommended changes in your project. I've reviewed your sample project and I see no issues with the updated implementation, would you please clarify if you are still receiving any exceptions after deploying this updated application? 
                                   
                                  As for the third point, note that the UseFileExportedDocumentStorage method call is useful when you want to store exported documents (XLSX, PDF, and so on) for a certain period of time in a file storage on the web server, so that they're taken from cache when requested.

                                  If you want to export a report to a PDF file without previewing it, I suggest that you follow the approach suggested by my colleague here: How to generate a pdf file without displaying a report. Please describe your scenario in greater detail if the suggested solution does not meet your requirements.

                                  Thanks,
                                  Dmitry

                                • Balaji BLS 02.13.2019
                                  Hi Dmitry,

                                  Thanks for your email. After we deployed the modified application the reports were opening. But we see the below exception in the Call Stack.

                                  Please let us know what is causing issue and how we can over come this.

                                  [2/14/2019 10:31:46 AM]: Info: 'Export operation. Document ID: 5db370e2051542f18f03ccde384cddc6, format: xlsx, file name: BKSTDETAILS.xlsx, export options: {"Html":{"@EmbedImagesInHTML":"true"},"Rtf":{"@ExportMode":"SingleFile"},"Docx":{"@ExportMode":"SingleFile"}}.'.

                                  Thanks
                                  Balaji
                                • Balaji BLS 02.14.2019
                                  Hi Dimitry,

                                  Some times on the production we see this error but if we refresh the report it works fine. Please let us know why we are getting this error.

                                  Is there anything else we need to handle.  Please guide the same.

                                  Thanks
                                  Balaji
                                • Dmitry Tok (DevExpress Support) 02.14.2019

                                  Hello Balaji,


                                  -->Please let us know what is causing issue and how we can over come this. 

                                  This isn't an error actually, but logging of an XLSX export operation of some document displayed in Web Document Viewer. Would you please clarify if a document has been correctly exported in this case? 

                                  -->Please let us know why we are getting this error. 

                                  This means that the asynchronous export mode cannot obtain the current build status of a document. Do you see any other errors in logs?
                                  I'd also suggest that you disable the asynchronous export mode on the client-side (see Implement an Asynchronous Export of Documents) if you're not using the Editing Fields functionality in your documents and let us know your results.

                                  We're looking forward to hearing from you.

                                  Thanks,
                                  Dmitry

                                • Balaji BLS 02.17.2019
                                  Hi Dmitry,

                                  As you suggested we did placed the Asynchronous Export JS Implementation. 

                                  For your reference we are not using the Editing Fields Functionality feature at all in our application.

                                  We still see the below Error. Kindly suggest how we can resolve the same

                                  [2/17/2019 5:14:00 PM]: Exception occured. Message: 'DevExpress.XtraReports.Web.WebDocumentViewer.Native.Services.WebDocumentViewerRequestController.GetBuildStatus (getBuildStatus)'. Exception Details:
                                  System.Threading.ThreadAbortException: Thread was being aborted.
                                     at System.Threading.Monitor.ObjWait(Boolean exitContext, Int32 millisecondsTimeout, Object obj)
                                     at System.Threading.Monitor.Wait(Object obj, Int32 millisecondsTimeout, Boolean exitContext)
                                     at System.Threading.Monitor.Wait(Object obj, Int32 millisecondsTimeout)
                                     at System.Threading.ManualResetEventSlim.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
                                     at System.Threading.Tasks.Task.SpinThenBlockingWait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
                                     at System.Threading.Tasks.Task.InternalWait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
                                     at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
                                     at System.Threading.Tasks.Task.Wait(TimeSpan timeout)
                                     at DevExpress.XtraReports.Web.WebDocumentViewer.Native.Services.CachedDocumentSourceManagementService.GetHotBuildStatus(HotWebDocumentProgressObservable progressObservable, Int32 timeoutMilliseconds)
                                     at DevExpress.XtraReports.Web.WebDocumentViewer.Native.Services.CachedDocumentSourceManagementService.GetBuildStatus(BuildStatusRequest buildStatusRequest)
                                     at lambda_method(Closure , IWebDocumentViewerRequestController , String )
                                     at DevExpress.XtraReports.Web.Native.ClientControls.Services.RequestManagerBase`1.WrapWithTryCatchAction(String controllerTypeName, String methodName, String webActionName, ControllerFunc invoker, TController controller, String json)
                                  [2/17/2019 5:14:00 PM]: Exception occured. Message: 'WebDocumentViewerRequestManager.ProcessRequest'. Exception Details:
                                  System.Threading.ThreadAbortException: Thread was being aborted.
                                     at DevExpress.XtraReports.Web.Native.ClientControls.Services.RequestManagerBase`1.WrapWithTryCatchAction(String controllerTypeName, String methodName, String webActionName, ControllerFunc invoker, TController controller, String json)
                                     at DevExpress.XtraReports.Web.Native.ClientControls.Services.RequestManagerBase`1.<>c__DisplayClass4.<WrapJsonExceptions>b__3(TController x, String a)
                                     at DevExpress.XtraReports.Web.Native.ClientControls.Services.RequestManagerBase`1.ProcessRequestCore(NameValueCollection query)
                                     at DevExpress.XtraReports.Web.Native.ClientControls.Services.RequestManagerBase`1.ProcessRequest(NameValueCollection query)



                                  Appreciate your quick support on this. 


                                  Thanks,
                                  Balaji
                                • Vasily (DevExpress Support) 02.18.2019

                                  Hi Balaji,

                                  Let me chime in. The ThreadAbortException is thrown when the thread execution is aborted. As our viewer uses asynchronous document building engine (that causes creation of multiple threads), the  ThreadAbortException may be thrown when our viewer operates correctly, and it does not indicate any critical issues. So, would you please clarify whether the report preview is displayed correctly on the web page when this error is thrown? If so, you can just ignore this type of exceptions. Otherwise, if the report preview is not displayed, check if any other exceptions were thrown. We look forward to hearing back from you.

                                • Balaji BLS 02.19.2019
                                  Still we see sometime the report error are coming up up as below 


                                  1. Cannot create a document for the current report
                                  2. Build status error. 
                                  3. The document is not found. Please try opening the document once again.

                                  In the Log we don't find any issues except the Thread.

                                  Please suggest how to correct these issues.This is effecting our production. Kindly let us know how we can solve the issues same.


                                  Thanks,
                                  Balaji 
                                • Balaji BLS 02.19.2019
                                  Please find the attached Errors. 
                                • Vasily (DevExpress Support) 02.19.2019

                                  Hi Balaji,

                                  Thank you for your update. Note that these errors may be caused not only by server-side errors. These errors may be also thrown in case the server-side request execution failed for some reasons. To check this assumption, open the browser's developer tools panel (by pressing F12) and check its Network tab. After refreshing the web page, you will see all the requests that are executed by your web page. Once the errors occur, check whether any requests ended up with error codes (e.g., 404) on the Network tab. 

                                  In any case, we have validated your configuration once again, and found that the ASPxReportDesigner.StaticInitialize method call is missing in your Application_Start event handler (in the Global.asax.cs file). This method is required to force Reporting HTTP handlers authentication, so it should be called to finish our viewer and designer components initialization on your application's startup. The fact that this method was not called in your case, may cause 404 errors while executing requests to our Reporting HTTP handlers. So, try modifying your code as follows:

                                  [C#]
                                  public class MvcApplication : System.Web.HttpApplication { protected void Application_Start() { ... DevExpress.XtraReports.Web.ASPxReportDesigner.StaticInitialize(); } }

                                0 Solutions

                                Creation Date Importance Sort by