473,396 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Installing PDB's with assemblies in the GAC

Is there a way to distribute for installation PDB files for assemblies that
are going into the GAC?

I've read info about the possibility of changing registry settings,
searching out assembly folders and manually copying the PDB's into the
folders, but I would like to be able to create a distribution package that
automatically installs the PDB's in the GAC location - so that when clients
get exceptions they can report good stack trace information.

Thanks!

Nov 22 '05 #1
1 3103
Jediah L wrote:
Is there a way to distribute for installation PDB files for
assemblies that are going into the GAC?

I've read info about the possibility of changing registry settings,
searching out assembly folders and manually copying the PDB's into the
folders, but I would like to be able to create a distribution package
that automatically installs the PDB's in the GAC location - so that
when clients get exceptions they can report good stack trace
information.


A PE file with symbols has a path in it to the symbol file. I've looked
at how StackFrame get symbols (including a search through SSCLI) and it
appears that it won't use this *path* but it does use the symbol file
name. So AFAIK the only solution is to copy the pdb to the GAC. I
thought I could trick gacutil to do this by compiling the library to
include the pdb as a linked resource:

csc /t:library /debug lib.cs
csc /t:library /debug:pdbonly /pdb:dummy.pdb lib.cs
/linkresource:lib.pdb

The rationale is that when an assembly is added to the GAC *all* files
that are part of the assembly are copied there. This trick did that, but
unfortunately the pdb file (lib.pdb in this example) was not used in the
stacktrace for exceptions. When I copied the last created pdb
(dummy.pdb) to the GAC the exception stacktrace used the symbols.

So in short, I don't know of any other solution

Richard
--
http://www.grimes.demon.co.uk/workshops/fusionWS.htm
http://www.grimes.demon.co.uk/workshops/securityWS.htm
Nov 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jediah L | last post by:
Is there a way to distribute for installation PDB files for assemblies that are going into the GAC? I've read info about the possibility of changing registry settings, searching out assembly...
0
by: denton | last post by:
After installing VS 2005 enterprise beta, I get a message that the primary interop assemblies to incorporate word or excel are not installed. I follow the instructions but cannot figure it out. ...
1
by: Gary Wessle | last post by:
Hi how can I "using pdb" get a value of an attribute?, read the docs and played around with pdb 'p' for no avail. thanks class main: def __init__(self, master): self.master = master
1
by: chris | last post by:
I am confused about the aspnet_compiler. I have a solution that contains a website, and other supporting assemblies such as business logic and the data layer. Before I actually run...
1
by: Michael | last post by:
Hello, I have be programing in C# for two months now. I am still a beginner and yet have learned alot. I have written windows services, web services, web sites and windows applications. Now...
10
by: aljamala | last post by:
Hi, I am working on an installer application to install 2 COM components in the system32 directory. I had this implemented previously to install to a different directory (i.e. C:\sample\dll)...
0
by: huiling25 | last post by:
PDBReader reader1 = new PDBReader(new FileReader("M5250.pdb")); IChemFile content1=(IChemFile)reader1.read((IChemObject)new org.openscience.cdk.ChemFile()); IAtomContainer c1 =...
7
by: Chris Lasher | last post by:
Hi all, I have a simple script: --- #!/usr/bin/env python a = 1 b = 2
5
by: levander | last post by:
I've been using pdb under emacs on an Ubuntu box to debug python programs. I just upgraded from Ubuntu Edgy to Feisty and this combo has stopped working. Python is at 2.5.1 now, and emacs is at...
0
by: =?Utf-8?B?WXVuaW5nIEZlbmc=?= | last post by:
I am getting the following messages while using dumpbin: Dump of file kernel32.dll File Type: DLL PDB file 'D:\8j7\sym\kernel32.pdb' checked. (23) PDB file 'D:\8j7\sym\kernel32.pdb' checked....
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.