THe error is as below,
Hosted Application Factory: The hosted application "" couldn't be created. Contact your administrator.
Microsoft.Uii.Common.TypeProvider.TypeProviderException: The type HostedControls.Gener., HostedControls.Gener couldn't be retrieved. ---> System.IO.FileNotFoundException: Could not load file or assembly 'HostedControls.Gener' or one of its dependencies. The system cannot find the file specified.
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.Load(String assemblyString)
at Microsoft.Uii.Common.TypeProvider.DefaultTypeProvider.Microsoft.Uii.Common.TypeProvider.ITypeLoader.GetAssembly(String assemblyName)
at Microsoft.Uii.Common.TypeProvider.DefaultTypeProvider.Microsoft.Uii.Common.TypeProvider.ITypeLoader.GetType(String typeName)
at Microsoft.Uii.Common.TypeProvider.TypeProvider.GetTypeInfo(TypeNameInfo typeNameInfo)
--- End of inner exception stack trace ---
at Microsoft.Uii.Common.TypeProvider.TypeProvider.GetTypeInfo(TypeNameInfo typeNameInfo)
at Microsoft.Uii.Csr.HostedAppLauncher.CreateWinFormApplication(ApplicationRecord app, WorkItem workItem)
at Microsoft.Uii.Csr.HostedAppLauncher.CreateApplication(ApplicationRecord app, WorkItem workItem)
at Microsoft.Uii.Csr.HostedAppFactory.CreateApplication(ApplicationRecord appRecord, WorkItem workItem)
I am trying to use customization file(WPF references) feature of USD to import and download it in client machine. But only some controls are not loaded with above error and so the customization file is not downloaded and extracted.
But the same controls are downloaded from the other instance of CRM.
Please help us with the solution asap :(
*This post is locked for comments
So, the controls are working properly on another CRM instance? Is the customization file added to the configuration you are in?
Also, to build forth on the previous answer from Kaustubh, you can always completely delete all of your customization dll's from your file system to force a refresh. To do this, go to C:\Users\<<Current User>>\AppData\Local\Microsoft\UnifiedServiceDesk . Delete all of the organizations you see in that folder.
Please validate the below steps.
1. Navigate to C:\Users\<<Current User>>\AppData\Local\Microsoft\UnifiedServiceDesk\<<ORG which you are loggin in>>\<<Folder with latest modified by >>,
Then confirm there if your DLL which is needed by the Hosted Application is available.
If Dll is not available, there is some issue in your customization file or you have not added Customization Record to your Configuration Record.
2. Navigate to the hosted application and make sure the paths are correct.
Both the CRM instances are same versions 1612 (9.0.2.744)online . But there are different servers .
You say another instance of CRM...
What versions are the various instances and are they on different servers?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156