Solved

Signing a .pdb file

Posted on 2011-09-11
4
672 Views
Last Modified: 2012-05-12
I would like to distribute my .pdb files through a ClickOnce install, but I cannot do it because the system does not want to sign the ClickOnce manifest when the .pdb are unsigned. And without a signed manifest, no ClickOnce.

How do you sign them.

I might be able do it by calling sn.exe in the build events, but is there an easier way built into Visual Studio?
0
Comment
  • 3
4 Comments
 
LVL 15

Expert Comment

by:x77
ID: 36521237
Pdb Files are used only on Debug, Reflector analysis, Mono.Cecil.Pdb.dll and other tools for code analysis.
Note that when you compile on release mode, pdb files are´nt generated.

You can distribute the Pdb files to other programmers, but I do´nt see advantages for distribution to users on release mode.

Pdb contains information aditional not cotained on assembly like parameter and local variable names on methods.
0
 
LVL 40
ID: 36522668
I very well know what pdb files are.

The idea of distributing them in release is to be able to retrieve more precise information from the stacktrace, such as source code line numbers, when exceptions arise on a test deployment to a few users before committing to a few hundred.

The problem is that Click Once deployment requires that the .pdb be digitally signed, but the compiler does not sign them. I was wondering if there was an easy way to do it because we frequently republish the application during those tests.
0
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 0 total points
ID: 36591289
The requirement for a signature for ClickOnce deployment has been removed in framework 3.5 SP1.

One of those changes that did not make it in the What's New, so I was not aware of it.

I simply removed the signatures from the manifest and application, and the pdb files were accepted when I published the package.
0
 
LVL 40

Author Closing Comment

by:Jacques Bourgeois (James Burger)
ID: 36715472
Nobody came with a solution, so I had to find one somewhere else.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question