SmartAssembly has encountered an invalid symbol in xyz.dll
gyozob
Posts: 3
Hello, please help me with the following error:
"SmartAssembly.InformationException: SmartAssembly has encountered an invalid symbol in xyz.dll:
[xyz]ClassName/<<.ctor>b__2>d__5
The most likely cause is that SmartAssembly has used a different version of a dependency from the version used by xyz.dll.
If the details below are wrong, please use the MandatoryPath attribute in the .saproj file to ensure that the correct version of the dependency is found.
Assembly containing invalid reference: F:path o\dllxyz.dll
Assembly that should contain the missing symbol: F:path o\dllxyz.dll
SmartAssembly has encountered an error while running your project.
Failed: SmartAssembly.InformationException: SmartAssembly has encountered an invalid symbol in xyz.dll:
[xyz]ClassName/<<.ctor>b__2>d__5
The most likely cause is that SmartAssembly has used a different version of a dependency from the version used by xyz.dll.
If the details below are wrong, please use the MandatoryPath attribute in the .saproj file to ensure that the correct version of the dependency is found.
Assembly containing invalid reference: F:path o\dllxyz.dll
Assembly that should contain the missing symbol: F:path o\dllxyz.dll
Please run SmartAssembly in User-Interface mode for more information."
I mention that I am using SmartAssembly version 6.9.
Thank you
"SmartAssembly.InformationException: SmartAssembly has encountered an invalid symbol in xyz.dll:
[xyz]ClassName/<<.ctor>b__2>d__5
The most likely cause is that SmartAssembly has used a different version of a dependency from the version used by xyz.dll.
If the details below are wrong, please use the MandatoryPath attribute in the .saproj file to ensure that the correct version of the dependency is found.
Assembly containing invalid reference: F:path o\dllxyz.dll
Assembly that should contain the missing symbol: F:path o\dllxyz.dll
SmartAssembly has encountered an error while running your project.
Failed: SmartAssembly.InformationException: SmartAssembly has encountered an invalid symbol in xyz.dll:
[xyz]ClassName/<<.ctor>b__2>d__5
The most likely cause is that SmartAssembly has used a different version of a dependency from the version used by xyz.dll.
If the details below are wrong, please use the MandatoryPath attribute in the .saproj file to ensure that the correct version of the dependency is found.
Assembly containing invalid reference: F:path o\dllxyz.dll
Assembly that should contain the missing symbol: F:path o\dllxyz.dll
Please run SmartAssembly in User-Interface mode for more information."
I mention that I am using SmartAssembly version 6.9.
Thank you
Comments
With "invalid symbol" errors, it's often best if we can get a local reproduction of the issue to investigate with and find the cause. Would it be possible for you to share your assembly files with us or a cut down sample application that reproduces the error?
If so, I've opened up a support ticket for you (#63749). Can you kindly reply to the ticket confirmation email with the files? (In case the confirmation email doesn't get through, you can also email to us directly at support@red-gate.com.)
Thank you!
Jessica Ramos | Product Support Engineer | Redgate Software
Have you visited our Help Center?
I also found this post reporting similar issue https://forums.red-gate.com/viewtopic.php?f=143&t=78247, is there any plan issue to fix this issue?
In my code seems to fail at a code like:
Thank you
As you've found though, I'm afraid this is a known issue that we've seen with async code before that unfortunately hasn't been resolved yet since it's still a relatively rare occurrence. The only workaround for this is still as mentioned in that former post, which is to 'Create a private method and move all code from the explicit interface implementation to this method.'
So sorry as I know that changing your code is not ideal and this may make SmartAssembly unusable for you! Please let me know if you have any other questions at the moment.
Jessica Ramos | Product Support Engineer | Redgate Software
Have you visited our Help Center?