web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Using Power Platform T...
Power Apps
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

 

I have the same question (0)
  • Verified answer
    KASCHN Profile Picture
    293 on at

    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 368 Super User 2026 Season 1

#1
Kalathiya Profile Picture

Kalathiya 368 Super User 2026 Season 1

#3
WarrenBelz Profile Picture

WarrenBelz 318 Most Valuable Professional

Last 30 days Overall leaderboard