473,947 Members | 2,163 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3137
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:li b.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
471
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 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...
0
1012
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. After clicking "Change" in "Add/Remove features" for MS Office, there is never and option for "Choose advanced customization of applications" or ".NET programmability support". My system: MS XP standard, MS XP Office Standard for Studends and...
1
1692
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
2498
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 aspnet_compiler I go to the solution configuration manager and change the active configuration to Release and have all the assemblies and the website checked to build. I then change the web.config debug=false. Now I run my aspnet_compiler. I run the...
1
1445
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 could someone please take a minute and fully explain to me what GAC, Assemblies and PDB are? Thank you.
10
9497
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) and it worked fine. The setup app seems to crash though when I changed the path to C:\windows\system32. This is the error I receive... System.Runtime.InteropServices.COMException (0x80110401) Errors occurred accessing one or more objects
0
1538
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 = ChemFileManipulator.getAllAtomContainers(content1); Fingerprinter fp1 = new Fingerprinter(); BitSet fingerprint1 = fp1.getFingerprint(c1); System.out.println(fingerprint1); There is no problem in compiling. However, I got these statements when executing: Did not...
7
1773
by: Chris Lasher | last post by:
Hi all, I have a simple script: --- #!/usr/bin/env python a = 1 b = 2
5
2382
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 21.41.1. It used to be I could just "M-x pdb RET pdb <script-nameRET" and be presented with a prompt where I could debug my script, as well as an arrow in another source code buffer indicating where I am in the source code. Now however, when...
0
2384
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. (23) PDB file 'D:\8j7\sym\symbols\dll\kernel32.pdb' checked. ( 23) PDB file 'D:\8j7\sym\dll\kernel32.pdb' checked. (23)
0
9985
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11577
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
11173
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
11352
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
8256
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7431
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6118
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4948
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4540
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.