Red Gate forums :: View topic - error RA000 with obfuscated Assembly
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SmartAssembly 6
SmartAssembly 6 forum

error RA000 with obfuscated Assembly

Search in SmartAssembly 6 forum
Post new topic   Reply to topic
Jump to:  
Author Message
dan.lee.RI



Joined: 23 May 2012
Posts: 9

PostPosted: Wed May 23, 2012 3:26 pm    Post subject: error RA000 with obfuscated Assembly Reply with quote

When I attempt to register an assembly using regasm I get the following error:
Code:

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
Back to top
View user's profile Send private message
jessica.ramos



Joined: 23 Apr 2012
Posts: 212

PostPosted: Thu May 24, 2012 8:33 pm    Post subject: Reply with quote

Hi Dan,

Could you please try unregistering, rebooting, and then re-registering?
_________________
Jessica Ramos
Technical Support
Red Gate Software Ltd.
Back to top
View user's profile Send private message
dan.lee.RI



Joined: 23 May 2012
Posts: 9

PostPosted: Tue May 29, 2012 4:56 pm    Post subject: Reply with quote

No, unregistering and restarting, and registering again does not correct the issue.

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 Smile

Thanks.
_________________
Daniel Lee
Release Engineer
Amazing Charts,Inc
Back to top
View user's profile Send private message
dan.lee.RI



Joined: 23 May 2012
Posts: 9

PostPosted: Wed May 30, 2012 2:26 pm    Post subject: Reply with quote

I have some more information.

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.
_________________
Daniel Lee
Release Engineer
Amazing Charts,Inc
Back to top
View user's profile Send private message
jessica.ramos



Joined: 23 Apr 2012
Posts: 212

PostPosted: Wed May 30, 2012 11:16 pm    Post subject: Reply with quote

Hi Dan!

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-IE/Offtopic/thread/31fd3743-6aa3-402f-820f-4e00d476d19d

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
Technical Support
Red Gate Software Ltd.
Back to top
View user's profile Send private message
dan.lee.RI



Joined: 23 May 2012
Posts: 9

PostPosted: Wed May 30, 2012 11:26 pm    Post subject: Reply with quote

You do realize that these installations are being tested on completely clean operating systems right? No other software other than the operating system is installed and Microsoft Security Essentials. We have multiple assemblies failing.

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.
_________________
Daniel Lee
Release Engineer
Amazing Charts,Inc
Back to top
View user's profile Send private message
jessica.ramos



Joined: 23 Apr 2012
Posts: 212

PostPosted: Thu May 31, 2012 9:41 pm    Post subject: Reply with quote

Hi Dan,

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/GeneralContent/all_products/articles/old_versions
_________________
Jessica Ramos
Technical Support
Red Gate Software Ltd.
Back to top
View user's profile Send private message
dan.lee.RI



Joined: 23 May 2012
Posts: 9

PostPosted: Thu May 31, 2012 9:49 pm    Post subject: Reply with quote

Jessica,

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.
_________________
Daniel Lee
Release Engineer
Amazing Charts,Inc
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group