# WebDesigner Custom Shared Data Sources

This topic demonstrates the sample to enable and use shared data sources in the ActiveReports WebDesigner.

## Content



This sample demonstrates enabling shared data sources in ActiveReports WebDesigner with an ASP.NET Core back-end.

![Shared DataSources in Web Designer](https://cdn.mescius.io/document-site-files/images/b298aea2-8cb8-4a0f-be88-4f54aa263ebd/images/shared-datasource-webdesigner-sample.png)


> type=note
> **Note**: To run this sample, you must have
> 
> *   [Visual Studio 2022](https://visualstudio.microsoft.com/vs/) (version 17.0 or later)
> *   [.NET 6.0 SDK](https://dotnet.microsoft.com/en-us/download)
> *   [.NET Core Hosting Bundle](https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-aspnetcore-6.0.0-windows-hosting-bundle-installer) (for deployment to IIS)

### Sample Location

[https://github.com/activereports/WebSamples19/tree/main/WebDesigner\_CustomSharedDataSources](https://github.com/activereports/WebSamples19/tree/main/WebDesigner_CustomSharedDataSources)

### Details

When you run the sample, the WebDesigner opens in your browser wherein you can use shared data sources in your reports. The project consists of the following elements.

*   **wwwroot**: Contains index.html and other static resources.
*   **Implementation**: Contains implementation for 'IReportStore' and 'IResourceRepositoryProvider' .
*   **resources**: Contains reports, data sources (csv, json, sqlite), and shared data sources (\*.rdsx ).
*   **Startup.cs**: Does the following:
    1.  configures the services and middleware used by the application
    2.  registers the 'IReportStore' and 'IResourceRepositoryProvider' as singleton services
    3.  adds reporting and designer services
    4.  sets the path to the ActiveReports.config file, where the SQLite provider is added
    5.  configures the reporting and designer middleware
    6.  serves static files

## See Also

#### Developers

[Configure and Use Shared Data Sources](/activereportsnet/docs/v19.2/developers/create-applications/web-designer-application/use-shared-data-sources-in-web-designer)