My project uses a library which in turn uses Microsoft.Practices.Unity
to dynamically create a class and run some of its methods. This class is throwing an error after it is created.
Is it possible for me to use the Visual Studio debugger to step into and debug this dynamic class? I have Reflector Pro which has enabled me to dig down as far as I have.
Note: I already tried contacting the developer of the library I am using and they do not seem willing to address this issue at this time. Therefore, I am trying to dig down into it myself.
UPDATE
I don't mean the dynamic keyword. The top line of the stack trace is
DynamicModule.ns.Wrapped_OpenAccessMetaDataProvider_bf5ed2b8ccd24dacab4923be24786366.Initialize(String providerName, NameValueCollection config, Type managerType) +506
Googling the DynamicModule.ns.Wrapped_
leads to Unity's InterfaceInterceptorClassGenerator
class. This class would seem to make sense given that it is "used to generate proxy classes...". I am having trouble finding a suitable code sample because it looks like there is a significant OO framework around the construction of this class.
UPDATE 2
The unity class is throwing an exception:
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
The exception didn't have a LoaderExceptions
property so that doesn't help. I didn't want to bog down the question with details but in short it is this: my CMS (which will remain nameless) uses an outdated version of the Facebook C# SDK. Upon updating the Facebook SDK assemblies, this error is thrown. That makes sense because the SDK changed. I am trying to gain insight onto the connection between the OpenAccessMetaDataProvider class and the Facebook SDK.