?
Solved

Signing a .pdb file

Posted on 2011-09-11
4
Medium Priority
?
689 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Tutorials alone can't teach real engineering

So we built better training tools.

-Hands-on Labs
-Instructor Mentoring
-Scenario-Based Tests
-Dedicated Cloud Servers

All at your fingertips. What are you waiting for?

Question has a verified solution.

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

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Monitor input from a computer is usually nothing special.  In this instance it prevented anyone from using the computer.  This was a preconfiguration that didn't work.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

743 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