Question
Westpac Banking Corporation
AU
Last activity: 6 Nov 2018 20:02 EST
Error deserializing design component
Why this error occurring while running project and how to resolve this issue.
I saw this error for some other.net components as well.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Pegasystems Inc.
US
I am not sure what causes this but it is relatively rare. A simple way to fix this is to add the missing dll as a miscellaneous file to your project. This will cause it to be distributed with the deployment package. On the project properties page, click in Miscellaneous files and add the file - you can find the correct location by looking at the path for the reference.
Pegasystems Inc.
US
Look in the RuntimeLog. You should see an exception near the top while the project is loading. Look at the exception - it should give you clues as to the problem. Often, you can make a small change to an automation and re-save it to clear deserialization exceptions.
Westpac Banking Corporation
AU
Hi Jeff,
It is resolved after copying the System.DirectoryServices.AccountManagement DLL to installed folder.
Is this correct and this applicable for all kind of components of this type of error?
The error info is as below.
Application path is not writable: C:\Program Files (x86)\OpenSpan\OpenSpan Plug-in for Microsoft Visual Studio 2015
PublicAssemblies path: C:\Users\L098165\AppData\Roaming\OpenSpan\PublicAssemblies
Unable to resolve 'System.DirectoryServices.AccountManagement' assembly
Resolved 'System.DirectoryServices.AccountManagement, Version= Proprietary information hidden, Culture=neutral, PublicKeyToken=b77a5c561934e089' assembly in 0.00 seconds from 'GAC'
Resolved 'System.Windows.Forms, Version= Proprietary information hidden, Culture=neutral, PublicKeyToken=b77a5c561934e089' assembly in 0.00 seconds from 'GAC'
Error deserializing Design Component
Object reference not set to an instance of an object., Verbose Message: General Information
Accepted Solution
Pegasystems Inc.
US
I am not sure what causes this but it is relatively rare. A simple way to fix this is to add the missing dll as a miscellaneous file to your project. This will cause it to be distributed with the deployment package. On the project properties page, click in Miscellaneous files and add the file - you can find the correct location by looking at the path for the reference.
Westpac Banking Corporation
AU
Hi Jeff,
The dll is not located in the Pega Robotics installed folder. So, to add the dll under Miscellaneous files from : after copying dll in the installed folder or from C:\Windows\Microsoft.NET\Framework64\v4.0.30319 (for this dll only).
Pegasystems Inc.
US
You can copy it from the folder you found it in.