In this post, we will look at when happens when you get the error “An unexpected error occurred. —> System.FormatException: Input string was not in a correct format.”.
You may have created a plugin using Visual Studio, and signed and compiled it. You then import it into the Plugin Registration Tool and you get this error (you can copy it into Notepad if you can’t see it in this UI):

The problem here is in the Application properties of the project, we see the project is using a .NET Framework version higher than 4.6.2:

If we change this to 4.6.2 we can now deploy the assembly as expected.



Keep learning. Keep building.
Explore AI, agents & Microsoft technology.
I share practical ideas, tutorials, and videos about AI, AI agents, Microsoft technologies, and the Power Platform.
Subscribe on YouTube →Carl de Souza Enterprise Architect at Microsoft · AI Technology Expert