Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Commerce forum / Unable to generate typ...
Commerce forum

Unable to generate typescript proxy in 8.1.3.

(0) ShareShare
ReportReport
Posted on by 75

Hi,

I am trying to generate typescript proxy using proxy generator tool in 8.1.3 but it's failing. Any help appreciated.

Commerce Proxy Generator failed due to the error: Assembly file K:\TFS\Dev\RetailSDK\References\Microsoft.Dynamics.Retail.RetailServerLibrary.9.9.18355.2\lib\net461\Microsoft.Dynamics.Retail.RetailServerLibrary.dll does not implement Microsoft.Dynamics.Retail.RetailServerLibrary.IEdmModelFactory interface..
   at Microsoft.Dynamics.Commerce.CommerceProxyGenerator.MetadataResolver.LoadAssemblyAndInterfaceInstanceType(String assemblyPath, String typeName, Assembly& targetAssembly, Type& targetType)
   at Microsoft.Dynamics.Commerce.CommerceProxyGenerator.MetadataResolver.LoadEdmxFromAssemblyFile(String filePath, Collection`1 extendedAssembliesPath, String apiVersion)
   at Microsoft.Dynamics.Commerce.CommerceProxyGenerator.MetadataResolver.GetEdmxStringInternal(String metadataPath, Collection`1 extendedMetadataPaths, String apiVersion)
   at Microsoft.Dynamics.Commerce.CommerceProxyGenerator.MetadataResolver.GetEdmxStringInternal(String metadataPath, Collection`1 extendedMetadataPaths, String apiVersion)
   at Microsoft.Dynamics.Commerce.CommerceProxyGenerator.MetadataResolver.GetEdmxString(String metadataPath, Collection`1 extendedMetadataPaths, String apiVersion)
   at Microsoft.Dynamics.Commerce.CommerceProxyGenerator.StartUp.Start(String[] args)
   at Microsoft.Dynamics.Commerce.CommerceProxyGenerator.Program.Main(String[] args)

6355.ProxyError.PNG 

Thanks in advance.

  • Pankaj_93 Profile Picture
    Pankaj_93 396 on at
    RE: Unable to generate typescript proxy in 8.1.3.

    Hi Aniket,

    For me also it is resolved. Thanks for this.

    Now I am getting one more error.

    Commerce Proxy Generator failed due to the error: Object cannot be stored in an array of this type..

      at System.Array.InternalSetValue(Void* target, Object value)

      at System.Array.SetValue(Object value, Int32 index)

      at Microsoft.Dynamics.Commerce.CommerceProxyGenerator.MetadataResolver.LoadEdmxFromAssemblyFile(String filePath, Collection`1 extendedAssembliesPath, String apiVersion)

      at Microsoft.Dynamics.Commerce.CommerceProxyGenerator.MetadataResolver.GetEdmxStringInternal(String metadataPath, Collection`1 extendedMetadataPaths, String apiVersion)

      at Microsoft.Dynamics.Commerce.CommerceProxyGenerator.MetadataResolver.GetEdmxStringInternal(String metadataPath, Collection`1 extendedMetadataPaths, String apiVersion)

      at Microsoft.Dynamics.Commerce.CommerceProxyGenerator.MetadataResolver.GetEdmxString(String metadataPath, Collection`1 extendedMetadataPaths, String apiVersion)

      at Microsoft.Dynamics.Commerce.CommerceProxyGenerator.StartUp.Start(String[] args)

      at Microsoft.Dynamics.Commerce.CommerceProxyGenerator.Program.Main(String[] args)

    Can you please help me to resolve this issue?

  • Ayush Jain Profile Picture
    Ayush Jain 120 on at
    RE: Unable to generate typescript proxy in 8.1.3.

    Thanks , it helped

  • Aniket1231 Profile Picture
    Aniket1231 75 on at
    RE: Unable to generate typescript proxy in 8.1.3.

    Got this one resolved.

    Tried using the  Microsoft.Dynamics.Retail.RetailServerLibrary.dll from the “RetailSDK\References\Microsoft.Dynamics.Retail.Proxies.ExtensionsGenerator.9.9.18355.2\build” directory, instead of the one under …\lib\net461\”.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,430 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans