xtrareports-devexpress-dot-xtrareports-dot-web-dot-extensions-dot-services-dot-reportingconfigurationbuilderbase-1.md
Enables Development Mode for extended diagnostics.
Namespace : DevExpress.XtraReports.Web.Extensions.Services
Assembly : DevExpress.Web.Reporting.v25.2.Common.Services.dll
NuGet Package : DevExpress.Web.Reporting.Common.Services
public T UseDevelopmentMode()
Public Function UseDevelopmentMode As T
| Type | Description |
|---|---|
| T |
An object that allows further configuration to be chained.
|
Call the UseDevelopmentMode method at application startup to enable Development Mode:
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
// ...
public class Startup {
public Startup(IConfiguration configuration, IWebHostEnvironment hostingEnvironment) {
Configuration = configuration;
HostingEnvironment = hostingEnvironment;
}
public IConfiguration Configuration { get; }
public IWebHostEnvironment HostingEnvironment { get; }
// ...
public void ConfigureServices(IServiceCollection services) {
services.ConfigureReportingServices(configurator => {
if (HostingEnvironment.IsDevelopment()) {
configurator.UseDevelopmentMode();
}
// ...
});
}
// ...
}
Development Mode allows you to perform the following diagnostics:
The DevExpress Web Reporting application relies on a server-side application to process reports. The version of the DevExpress scripts ( npm packages ) should match the version of server-side libraries ( NuGet packages ). You can enable the CheckClientLibraryVersions option to check for library version mismatch on every request to the server.
If versions do not match, a warning is written to the log:
When you call the DevelopmentMode() method, the client-side Development mode is also enabled. It allows you to catch the following errors that occur on the client in the early rendering stages:
applyBinding method in the BeforeRender, CustomizeActions, CustomizeElements events;ko.applyBindings method call.When an error occurs, the following message is displayed with a link to the Reporting Application Diagnostics help topic:
You can use the EnableClientSideDevelopmentMode property to enable or disable the client-side Development mode.
See Also
ReportingConfigurationBuilderBase<T> Class