# MultiProtcolFrameParser Creation getting failed

**URL:** <http://discussions.gridprotectionalliance.org/t/multiprotcolframeparser-creation-getting-failed/361>\
**Category:** Grid Solutions Framework\
**Created:** [July 17, 2018, 2:18pm UTC](http://discussions.gridprotectionalliance.org/t/multiprotcolframeparser-creation-getting-failed/361 "2018-07-17T14:18:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![inkrvan](http://discussions.gridprotectionalliance.org/letter_avatar_proxy/v4/letter/i/f14d63/32.png) [@inkrvan](http://discussions.gridprotectionalliance.org/u/inkrvan)\
**Post date:** [July 17, 2018, 2:18pm UTC](http://discussions.gridprotectionalliance.org/t/multiprotcolframeparser-creation-getting-failed/361/1 "2018-07-17T14:18:37Z")

</div>

Hello,

I am trying to use GSF.PhasorProtocols in my application to analyze the IEE1344 and C37.118 protocol packets.

When I am trying to create the object of MultiProtocolFrameParser, I am getting following exception.

May I know is there something that i am missing?

 ![1](http://discussions.gridprotectionalliance.org/uploads/default/original/1X/95757e25a0e2100ebd64f16d268f7f987aa3a7cc.png)  
Thanks & Regards  
Krishna

---

<div class="post-metadata">

**Author:** ![StephenCWills](http://discussions.gridprotectionalliance.org/user_avatar/discussions.gridprotectionalliance.org/stephencwills/32/20_2.png) [@StephenCWills](http://discussions.gridprotectionalliance.org/u/StephenCWills)\
**Post date:** [July 17, 2018, 4:44pm UTC](http://discussions.gridprotectionalliance.org/t/multiprotcolframeparser-creation-getting-failed/361/2 "2018-07-17T16:44:19Z")

</div>

Hello Krishna,

It’s the `NotSupportedException` described on the following page.  
[https://msdn.microsoft.com/en-us/library/system.reflection.assembly.getexportedtypes(v=vs.110).aspx](https://msdn.microsoft.com/en-us/library/system.reflection.assembly.getexportedtypes(v=vs.110).aspx)

The `ABB.TEEN.Base.AssemblyLoader` that gets cut off at the end of the stack trace there is probably attaching to the `AppDomain.AssemblyLoad` and/or the `AppDomain.AssemblyResolve` event. The code in that event handler is calling the `GetExportedTypes()` method on a dynamic assembly, which is not supported.

To resolve it, you may find this useful.  
[https://msdn.microsoft.com/en-us/library/system.reflection.assembly.isdynamic(v=vs.110).aspx](https://msdn.microsoft.com/en-us/library/system.reflection.assembly.isdynamic(v=vs.110).aspx)

Thanks,  
Stephen

---

<div class="post-metadata">

**Author:** ![inkrvan](http://discussions.gridprotectionalliance.org/letter_avatar_proxy/v4/letter/i/f14d63/32.png) [@inkrvan](http://discussions.gridprotectionalliance.org/u/inkrvan)\
**Post date:** [July 18, 2018, 6:59am UTC](http://discussions.gridprotectionalliance.org/t/multiprotcolframeparser-creation-getting-failed/361/3 "2018-07-18T06:59:55Z")

</div>

Hello StephenCWills.

Thanks for the quick response!

The suggestion in the links helped me to resolve the issue.

Thanks,  
Krishna
