Saturday, September 9, 2017

RFLCT_Ambiguous when running UWP in release and using Autorest

This is one of those short stories...


If you get a RFLCT_Ambigous exception in your UWP app in Release configuration on the initialization of the autogenerated service client that Autorest created for you then simply update the Microsoft.NETCore.UniversalWindowsPlatform package.

The issue does not arise in debug mode.

Long version

I'm ashamed... I spent way to much time on this issue before I tried what I should've tried the first time I saw the error. 

Always update your nuget-packages before trying to solve an issue related to some other persons code. Oh, and always do so in a feature/bug branch or at least make sure you can roll stuff back. Things can go bad.

The issue at hand by the way was that some Attributes had been duplicated. And if you try to get an attribute by doing something like this:


It might actually return multiple attributes. And a piece of code inside Microsoft.Rest.ClientRuntime didn't like this. It seems like attributes that makes no sense duplicating has been duplicated, like AssemblyFileVersion... Why would you like to have two of those.

Anyhow... I'm going to write a couple of hours of my clients bill now and tattoo "always update nuget packages first" on a close by colleague so I will remember it in the future.

Resources / sources


  1. Buying a digital camera is a very different experience than it was a year or two ago. Smartphone cameras keep getting better, so there are a lot fewer buyers out there for budget pocket shooters. And because of that, there aren't that many good, inexpensive options Best Digital Cameras

  2. This RFLCT creates a lot of opportunities for the users and many unexpected errors have found with this application.The papersowl is increasing the awareness among the possibilities for establishing the community.Could you please add some more picture with details about the RFLCT?

  3. The agony more often than not dies down when the prompting movement is stopped. how to prevent stress fractures