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?
Here is what my solution Explorer looks like:
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 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
WarrenBelz
85
Most Valuable Professional
Michael E. Gernaey
65
Super User 2025 Season 1
mmbr1606
55
Super User 2025 Season 1