Categories: Power Platform

Web Resource content size is too big in PCF Control

Problem

While developing the PCF Control, we came across a scenario where we encountered below error:

Solution

To resolve this issue, we can have two approaches:

For Development instance with debugging capability

In this, if we want to upload the big control size to debug the code part of PCF control, then we need to follow below steps:

  1. Go to, Advanced Settings -> Settings -> Administration -> System Settings
  2. Select Email tab as shown below:

After increasing the size in above highlighted part. We can upload the Custom Control in CRM with big file size. 

Managed Solution for production instance

In this approach, we can use below command to create managed solution:

msbuild /p:configuration=Release

After successful execution of the commant, managed solution will be created in the release folder of Project.

This managed solution will have less file size.

View Comments