error RA000 with obfuscated Assembly
dan.lee.RI
Posts: 15
When I attempt to register an assembly using regasm I get the following error:
Registering the non-obfuscated file works successfully without any errors. I am not sure what to begin to look for in the smart assembly settings to help resolve this issue.
This has worked in the past under Smart Assembly 4 and I have recently upgraded to Smart Assembly 6. The settings in SA6 project file appear to be the same as SA4.
Any help would be appreciated. Thanks.
C:\Program Files (x86)\Amazing Charts>C:\Windows\Microsoft.NET\Framework\v4.0.30319\regasm Comclasses.dll /tlb: Comclasses.tlb Microsoft (R) .NET Framework Assembly Registration Utility 4.0.30319.1 Copyright (C) Microsoft Corporation 1998-2004. All rights reserved. Types registered successfully RegAsm : error RA0000 : Type library exporter encountered an error while processing ..?, COMclasses'. Error: Ambiguous name.
Registering the non-obfuscated file works successfully without any errors. I am not sure what to begin to look for in the smart assembly settings to help resolve this issue.
This has worked in the past under Smart Assembly 4 and I have recently upgraded to Smart Assembly 6. The settings in SA6 project file appear to be the same as SA4.
Any help would be appreciated. Thanks.
Daniel Lee
Release Engineer
Amazing Charts,Inc
Release Engineer
Amazing Charts,Inc
Comments
Could you please try unregistering, rebooting, and then re-registering?
Jessica Ramos | Product Support Engineer | Redgate Software
Have you visited our Help Center?
If I just register without the /tlb switch there are no errors. So it is a problem in creating the type library.
Note that this is an installation deployment so having our users go through this process is definately not a solution
Thanks.
Release Engineer
Amazing Charts,Inc
This started failing when we converted our project to .NET 4.0. We have a project with Smart Assembly 6.0 and .NET 3.5 where the obfuscation and assembly registration is working correctly. However, none of our projects that we converted to .NET 4.0 work correctly.
Is there something we need to do differently for .NET 4.0 and Smart Assembly?
For now I am just skipping the smart assembly step of the build process just to get builds to QA for testing. But this is definately something I need to work on. Let me know if I need to open a formal ticket.
Release Engineer
Amazing Charts,Inc
Thanks for that information.
SmartAssembly supports applications based on .NET 4.0 so it should work alright--there isn't anything you'd have to do differently than with NET 3.5.
There is a similar error to yours posted about on a forum here: http://social.microsoft.com/Forums/en-I ... 00d476d19d
Although unsuccessful for him, it may be worth it to try the same steps he did (i.e. using the GUID numbers to check for and delete any duplicates)
Jessica Ramos | Product Support Engineer | Redgate Software
Have you visited our Help Center?
However, I will give this a go to see if any of our GUIDS in the .NET 4.0 assemblies are different from the .NET 3.5 for some reason, although I cannot imagine why they would be.
Release Engineer
Amazing Charts,Inc
I've now found a situation similar to yours in our database and it seems possible that the issues you are experiencing are caused by the re-architecture in newer versions of SmartAssembly.
I'm guessing you upgraded to the newest release of version 6 of the tool (v. 6.7) ? I believe Smartassembly v6.2 may work better for you. If you wish, you can download it from here: http://www.red-gate.com/supportcenter/G ... d_versions
Jessica Ramos | Product Support Engineer | Redgate Software
Have you visited our Help Center?
Yes, we are using 6.6 and have upgraded all the way from 4.##
I will try this tomorrow and let you know how it goes. Thanks.
Release Engineer
Amazing Charts,Inc