While working on one of the Flex application I encounter below Error:
Error #2173: Unable to read object in stream. The class com.util.TestClass does not implement flash.utils.IExternalizable but is aliased to an externalizable class.
This is caused by a class being sent from the server that implements IExternalizable but is not compiled into your project.
For resolving error, You need to include below lines to the page from which You are getting the error.
import flash.net.registerClassAlias; import com.util.TestClass; registerClassAlias("com.util.TestClass", TestClass);