Parse Error, no assembly associated with Xml key a1


Currently loving doing C# code, but still on the learning curve when things go wrong.

Today I received the above error and so hit Google to work out what was wrong as the error reported wasn’t very useful, like many of the errors one gets from windows!

Well, this one was due to an incorrect assembly version; and as it appears the error was telling me this!

The error I got:

Parse Error, no assembly associated with Xml key a1: SerializableDetails
at System.Runtime.Serialization.Formatters.Soap.SoapHandler.ProcessGetType(String value, String xmlKey, String& assemblyString)
at System.Runtime.Serialization.Formatters.Soap.SoapHandler.ProcessType(ParseRecord pr, ParseRecord objectPr)
at System.Runtime.Serialization.Formatters.Soap.SoapHandler.ProcessAttributes(ParseRecord pr, ParseRecord objectPr)
at System.Runtime.Serialization.Formatters.Soap.SoapHandler.StartChildren()
at System.Runtime.Serialization.Formatters.Soap.SoapParser.ParseXml()
at System.Runtime.Serialization.Formatters.Soap.SoapParser.Run()

The place I should have looked is in the first line after “/assem/”! The assembly causing the problem was ACDMS, the version the app was expecting is as shown in the section “%20Version%3D1.0.0.2”! Simple really! NOT!

I dug out a and referenced that instead of 1.0.06 and all works now! Apparently if serialisation is done by one version of assembly, you get the error when deserialising with a different version. Nice!

OK, back to work!

This entry was posted in Uncategorized and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s