473,834 Members | 1,503 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 3129
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
1002
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
1687
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
2495
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
1439
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
9480
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
1527
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
1766
by: Chris Lasher | last post by:
Hi all, I have a simple script: --- #!/usr/bin/env python a = 1 b = 2
5
2377
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
2380
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
9796
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9643
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
10214
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9327
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7755
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
5624
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...
0
5790
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4425
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
3
3079
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.