Skip to main content
Community site session details

Community site session details

Session Id : 9brtiUJTyNsGNT455AO+XR
Power Apps - Power Apps Pro Dev & ISV
Answered

Using Power Platform Tools in visual studio 2019. Error generating strong types

Like (0) ShareShare
ReportReport
Posted on 11 Oct 2022 18:40:24 by 293

I am trying to use the Power Platform Tools in Visual Studio. When trying to generate strong types from the right click menu I get the following error. Is there any advice on what I need to configure?

KASCHN_0-1665513560793.png

 

Here is what my solution Explorer looks like:

KASCHN_1-1665513594536.png

 

Part of the log file:

10/12/2022 8:19:34 AM : Microsoft.Crm.DevToolkit Information: 8 : 10/12/2022 8:19:34 AM : ==>==> CrmSvcUtil Error: 2 : Source	: mscorlib
10/12/2022 8:19:34 AM : Microsoft.Crm.DevToolkit Information: 8 : 10/12/2022 8:19:34 AM : ==>==> Method	: GetTypes
10/12/2022 8:19:34 AM : Microsoft.Crm.DevToolkit Information: 8 : 10/12/2022 8:19:34 AM : ==>==> Date	: 8:19:34 AM
10/12/2022 8:19:34 AM : Microsoft.Crm.DevToolkit Information: 8 : 10/12/2022 8:19:34 AM : ==>==> Time	: 10/12/2022
10/12/2022 8:19:34 AM : Microsoft.Crm.DevToolkit Information: 8 : 10/12/2022 8:19:34 AM : ==>==> Error	: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
10/12/2022 8:19:34 AM : Microsoft.Crm.DevToolkit Information: 8 : 10/12/2022 8:19:34 AM : ==>==> Stack Trace	: at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
10/12/2022 8:19:34 AM : Microsoft.Crm.DevToolkit Information: 8 : 10/12/2022 8:19:34 AM : ==>==> at System.Reflection.RuntimeModule.GetTypes()
10/12/2022 8:19:34 AM : Microsoft.Crm.DevToolkit Information: 8 : 10/12/2022 8:19:34 AM : ==>==> at System.Reflection.Assembly.GetTypes()
10/12/2022 8:19:34 AM : Microsoft.Crm.DevToolkit Information: 8 : 10/12/2022 8:19:34 AM : ==>==> at Microsoft.Crm.Services.Utility.NamingService.Microsoft.Crm.Services.Utility.INamingService.GetNameForEntity(EntityMetadata entityMetadata, IServiceProvider services)
10/12/2022 8:19:34 AM : Microsoft.Crm.DevToolkit Information: 8 : 10/12/2022 8:19:34 AM : ==>==> at Microsoft.Crm.Services.Utility.CodeGenerationService.BuildEntity(EntityMetadata entity, ServiceProvider serviceProvider, Boolean useLegacyMode)
10/12/2022 8:19:34 AM : Microsoft.Crm.DevToolkit Information: 8 : 10/12/2022 8:19:34 AM : ==>==> at Microsoft.Crm.Services.Utility.CodeGenerationService.BuildEntities(EntityMetadata[] entityMetadata, ServiceProvider serviceProvider, Boolean useLegacyMode, Int32& processedCount)
10/12/2022 8:19:34 AM : Microsoft.Crm.DevToolkit Information: 8 : 10/12/2022 8:19:34 AM : ==>==> at Microsoft.Crm.Services.Utility.CodeGenerationService.BuildCodeDom(IOrganizationMetadata organizationMetadata, String outputNamespace, ServiceProvider serviceProvider, Boolean useLegacyMode)
10/12/2022 8:19:34 AM : Microsoft.Crm.DevToolkit Information: 8 : 10/12/2022 8:19:34 AM : ==>==> at Microsoft.Crm.Services.Utility.CodeGenerationService.Microsoft.Crm.Services.Utility.ICodeGenerationService.Write(IOrganizationMetadata organizationMetadata, String language, String outputFile, String outputNamespace, IServiceProvider services)
10/12/2022 8:19:34 AM : Microsoft.Crm.DevToolkit Information: 8 : 10/12/2022 8:19:34 AM : ==>==> at Microsoft.Crm.Services.Utility.CrmSvcUtil.WriteCode(IOrganizationMetadata organizationMetadata)
10/12/2022 8:19:34 AM : Microsoft.Crm.DevToolkit Information: 8 : 10/12/2022 8:19:34 AM : ==>==> at Microsoft.Crm.Services.Utility.CrmSvcUtil.Run()
10/12/2022 8:19:34 AM : Microsoft.Crm.DevToolkit Information: 8 : 10/12/2022 8:19:34 AM : ==>==> at Microsoft.Crm.Services.Utility.CrmSvcUtil.Main(String[] args)
10/12/2022 8:19:34 AM : Microsoft.Crm.DevToolkit Information: 8 : 10/12/2022 8:19:34 AM : ==>==> ======================================================================================================================
10/12/2022 8:19:34 AM : Microsoft.Crm.DevToolkit Information: 8 : 10/12/2022 8:19:34 AM : ==>==> 
10/12/2022 8:19:34 AM : Microsoft.Crm.DevToolkit Information: 8 : 10/12/2022 8:19:34 AM : ==>ClassGen: > Invoke of CrmSvcUtil Failed

 

  • Verified answer
    KASCHN Profile Picture
    293 on 14 Oct 2022 at 13:51:52
    Re: Using Power Platform Tools in visual studio 2019. Error generating strong types

    I was able to Q&A the team for this extension. There is a new version and the creating strong types works. The latest version for this fix is 1.0.10627449.0

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1

Loading complete