Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Unified Service Desk customization file feature in Microsoft Dynamics CRM

Posted on by Microsoft Employee

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

  • Erik Donker Profile Picture
    Erik Donker 68 on at
    RE: Unified Service Desk customization file feature in Microsoft Dynamics CRM

    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.

  • Kaustubh Hegde Profile Picture
    Kaustubh Hegde 330 on at
    RE: Unified Service Desk customization file feature in Microsoft Dynamics CRM

    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.

    8255.Assembly-URl.PNG

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Unified Service Desk customization file feature in Microsoft Dynamics CRM

    Both the CRM instances are same versions 1612 (9.0.2.744)online .  But there are different servers .

  • Ben Thompson Profile Picture
    Ben Thompson 6,350 on at
    RE: Unified Service Desk customization file feature in Microsoft Dynamics CRM

    You say another instance of CRM...

    What versions are the various instances and are they on different servers?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans