Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Answered

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

(0) ShareShare
ReportReport
Posted on 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 at
    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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 85 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 65 Super User 2025 Season 1

#3
mmbr1606 Profile Picture

mmbr1606 55 Super User 2025 Season 1

Overall leaderboard