obfuscator problem

Status
Not open for further replies.
J

Jason

Can anyone recommend a obfuscator?

We tried Xenocode postbuild but got an error: "This assembly is not strong

name signed." Looks like the message came out of the RunCaspolCommand method

in the CaspolSecurityPolicyCreator.cs of the SetSecurity project.

Can Dotfuscator handle addin and the security challenge?
 
K

Ken Slovak - [MVP - Outlook]

Any time you obfuscate you must delay sign your assembly and actually sign

it with that SNK or PFX after the obfuscation. Otherwise the

signature/strong naming is also obfuscated along with your code.

"Jason" <a@a.com> wrote in message

news:OmOO8w7tJHA.5452@TK2MSFTNGP02.phx.gbl...
> Can anyone recommend a obfuscator?

> We tried Xenocode postbuild but got an error: "This assembly is not strong
> name signed." Looks like the message came out of the RunCaspolCommand
> method in the CaspolSecurityPolicyCreator.cs of the SetSecurity project.

> Can Dotfuscator handle addin and the security challenge?

>
 
J

Jason

Same problem: xxx.dll does not represent a strongly named assembly

Here is what we did:

1. checked "Delay Sign only" while kept "Sign the assembly" check

2. built, got UnsignedAddin.dll

3. ran Outlook, add-in cannot load

4. manualy sign from commoand line OK: ran sn -R unsignedAddin.dll

keyfile.pfx

5. ran Outlook, addin loaded OK.

6. built again

7. obfuscate the UnsignedAddin.dll =>ObfuscatedUnsignedAddin.dll

8. ran sn -R ObfuscatedUnsignedAddin.dll keyfile.pfx

Got error message: obfuscatedUnsignedAddin.dll does not represent a strongly

named assembly
<kenslovak@mvps.org> wrote in message

news:u%23uSfKFuJHA.4444@TK2MSFTNGP04.phx.gbl...
> Any time you obfuscate you must delay sign your assembly and actually sign
> it with that SNK or PFX after the obfuscation. Otherwise the
> signature/strong naming is also obfuscated along with your code.

> >

>

> "Jason" <a@a.com> wrote in message
> news:OmOO8w7tJHA.5452@TK2MSFTNGP02.phx.gbl...
> > Can anyone recommend a obfuscator?
>

>> We tried Xenocode postbuild but got an error: "This assembly is not
> > strong name signed." Looks like the message came out of the
> > RunCaspolCommand method in the CaspolSecurityPolicyCreator.cs of the
> > SetSecurity project.
>

>> Can Dotfuscator handle addin and the security challenge?
>

>>

>
 
J

Jason

I chekced the article "Giving a .NET Assembly a Strong Name" at

http://www.codeguru.com/columns/experts/print.php/c4643. My procedure was

right.

I then used Dotfuscator Community Edition (not support Office addin) against

a C# console exe, following the same procedure. It worked. Look like

Xenocode postbuild broke the strong name.

What obfuscator do your guys use? How much $?

"Jason" <a@a.com> wrote in message

news:OgRkSYLuJHA.1304@TK2MSFTNGP05.phx.gbl...
> Same problem: xxx.dll does not represent a strongly named assembly

> Here is what we did:

> 1. checked "Delay Sign only" while kept "Sign the assembly" check
> 2. built, got UnsignedAddin.dll
> 3. ran Outlook, add-in cannot load
> 4. manualy sign from commoand line OK: ran sn -R unsignedAddin.dll
> keyfile.pfx
> 5. ran Outlook, addin loaded OK.

> 6. built again
> 7. obfuscate the UnsignedAddin.dll =>ObfuscatedUnsignedAddin.dll
> 8. ran sn -R ObfuscatedUnsignedAddin.dll keyfile.pfx
> Got error message: obfuscatedUnsignedAddin.dll does not represent a
> strongly named assembly

> " - " <kenslovak@mvps.org> wrote in message
> news:u%23uSfKFuJHA.4444@TK2MSFTNGP04.phx.gbl...
> > Any time you obfuscate you must delay sign your assembly and actually
> > sign it with that SNK or PFX after the obfuscation. Otherwise the
> > signature/strong naming is also obfuscated along with your code.
>

>> > >

> >

>

>
>
>
>
>
>> "Jason" <a@a.com> wrote in message
> > news:OmOO8w7tJHA.5452@TK2MSFTNGP02.phx.gbl...
> >> Can anyone recommend a obfuscator?
> >
>>> We tried Xenocode postbuild but got an error: "This assembly is not
> >> strong name signed." Looks like the message came out of the
> >> RunCaspolCommand method in the CaspolSecurityPolicyCreator.cs of the
> >> SetSecurity project.
> >
>>> Can Dotfuscator handle addin and the security challenge?
> >
>>>

> >


>
 
K

Ken Slovak - [MVP - Outlook]

I rarely obfuscate any of my code, usually I just hand it over to the

customer and they take care of that since they'll be using their own

certificate to sign the code and not mine. On the rare occasions I've

obfuscated my code I've used the full edition of Dotfuscator.

That article looks right, one thing to try would be if you try using an SNK

file instead of your PFX and using that in your post-obfuscation signing

call.

"Jason" <a@a.com> wrote in message

news:%23z$708LuJHA.1240@TK2MSFTNGP02.phx.gbl...
> I chekced the article "Giving a .NET Assembly a Strong Name" at
> http://www.codeguru.com/columns/experts/print.php/c4643. My procedure was
> right.

> I then used Dotfuscator Community Edition (not support Office addin)
> against a C# console exe, following the same procedure. It worked. Look
> like Xenocode postbuild broke the strong name.

> What obfuscator do your guys use? How much $?

> "Jason" <a@a.com> wrote in message
> news:OgRkSYLuJHA.1304@TK2MSFTNGP05.phx.gbl...
> > Same problem: xxx.dll does not represent a strongly named assembly
>

>> Here is what we did:
>

>> 1. checked "Delay Sign only" while kept "Sign the assembly" check
> > 2. built, got UnsignedAddin.dll
> > 3. ran Outlook, add-in cannot load
> > 4. manualy sign from commoand line OK: ran sn -R unsignedAddin.dll
> > keyfile.pfx
> > 5. ran Outlook, addin loaded OK.
>

>> 6. built again
> > 7. obfuscate the UnsignedAddin.dll =>ObfuscatedUnsignedAddin.dll
> > 8. ran sn -R ObfuscatedUnsignedAddin.dll keyfile.pfx
> > Got error message: obfuscatedUnsignedAddin.dll does not represent a
> > strongly named assembly
 
Status
Not open for further replies.
Thread starter Similar threads Forum Replies Date
M Outlook 2010 Problem with OutLook 2010 32 bit, after Windows Auto Update Using Outlook 3
Marc2019 Outlook 2016 Font Problem Using Outlook 5
X I have met my waterloo trying to resolve embedded graphics problem with outlook 2007 and now 2016 Using Outlook 1
D Problem with custom form including _DocSiteControl1 Outlook VBA and Custom Forms 0
S Outlook 2007 Calendar instant search problem. Windows 7 Using Outlook 4
S Outlook 2007 Calendar instant search problem. Windows 7 Using Outlook 0
D Sort Problem with Sent Folders Using Outlook 1
S Conditional formatting problem with "is not empty" and categories Using Outlook 2
Mark Foley The upload of "Calendar" failed. There was a problem with the request. Using Outlook 6
avant-guvnor Import csv problem Using Outlook 7
katehawkins Outlook 2013 Ost to pst conversion problem Using Outlook 1
AbbieWhite The problem with a fairly large file. Using Outlook 3
I Outlook 2013 Send problem - 'Not Responding' forever Using Outlook.com accounts in Outlook 10
EmelineGueguen Help to understand the problem of work Using Outlook 1
W Outlook 2016 search problem persists after applying all known solutions Using Outlook 12
S problem with convert Using Outlook 1
S SendFromAccount - Problem trying to test existing value in open email Outlook VBA and Custom Forms 2
DruinaBiscardi unexpected problem in outlook Using Outlook 1
V Outlook 2003 problem with Windows 10 Creators Update 1709 Using Outlook 0
G Windows Update Causes BCM Database Access Problem? BCM (Business Contact Manager) 4
Grimev66 problem with conversion ost to pst Using Outlook 2
R Problem with searching public folders Exchange 2013/16 Exchange Server Administration 2
J Problem with Outlook 2016 new mail tray icon alert (envelope in the systems tray) Using Outlook.com accounts in Outlook 0
S Problem running Command button code Outlook VBA and Custom Forms 2
A .ost file problem Using Outlook 4
G PROBLEM REGARDING OUTLOOK STORAGE LANGUAGES Using Outlook 4
PetraTech Odd Folder View Problem Using Outlook 3
V iCloud problem Using Outlook 9
D Reply Problem with Outlook.com account Using Outlook.com accounts in Outlook 0
MattC Problem with Outlook 2007 & iCloud / duplicate tasks Using Outlook 1
V Problem moving folders Using Outlook 4
C Problem tracking meeting responses Using Outlook 3
Mark Foley Problem subscribing to shared calendar Using Outlook 1
K Problem with FreeBusy (before 1pm only) Outlook VBA and Custom Forms 7
skylark53 Advanced recurrence problem Using Outlook 2
E RSS export as OPML problem Using Outlook 4
D outlook 2013 contact list problem Using Outlook 0
T Problem with .Recipients.Add("alias") Outlook VBA and Custom Forms 3
P Problem with Outlook 2013 Attachments Using Outlook 4
E Outlook 2007: Problem with "Move to Folder >" button on toolbar Using Outlook 6
D No problem ... at this minute, just thanking you for your help. Using Outlook 1
T Random problem in VBA macro Outlook VBA and Custom Forms 6
R Outlook won't run except in Safe mode problem Using Outlook 5
J outlook 2010 delegation problem Using Outlook 3
B Problem with import Excel BCM (Business Contact Manager) 1
chupacabra Problem with IMAP .pst file Using Outlook 13
J categorize problem outlook 2010 Using Outlook 3
deonholt Address Book problem and created new profile ... Using Outlook 1
X Problem Transferring Subset of Outlook 2013 Contacts to iPad/iPhone Using Outlook 5
K Outlook(hotmail)Yahoo problem Using Outlook 6
Similar threads


















































Top