473,408 Members | 1,867 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,408 software developers and data experts.

Unable to load debug symbols for a referenced assembly

Hi,

I am developing a Windows application with C# in Visual Stuio .NET. My
application references three assemblies that are developed in another
project. I have added these assemblies as references, so that when I
compile the project, the dll files and corresponding pdb files are are
automatically copied to the bin\debug directory of my application. When
I look at the Modules window during debugging, it seems that the debug
symbols for the assemblies is not loaded. I right click on one of the
modules and select "Reload Debug Symbols" and browse to the pdb file
that's in the bin/debug directory. After doing this, the modules window
still indicates that the debug symbols are not loaded, and I am unable
to trace into the dll in question.

What I would really like is for these symbol files to be loaded
automatically whenever I debug. But for now I would be happy just to be
able to load the debug symbols manually.

I'd be graetful for any suggestions.

Many thanks!

--Phil

Jul 21 '05 #1
1 3422
To answer my own question, and for the benefit of posterity, and for
the welfare of all who seek to debug .NET applications without pulling
their hair out:
I am developing a Windows application with C# in Visual Stuio .NET. My
application references three assemblies that are developed in another
project. I have added these assemblies as references, so that when I
compile the project, the dll files and corresponding pdb files are are
automatically copied to the bin\debug directory of my application. When
I look at the Modules window during debugging, it seems that the debug
symbols for the assemblies is not loaded. I right click on one of the
modules and select "Reload Debug Symbols" and browse to the pdb file
that's in the bin/debug directory. After doing this, the modules window
still indicates that the debug symbols are not loaded, and I am unable
to trace into the dll in question.

What I would really like is for these symbol files to be loaded
automatically whenever I debug. But for now I would be happy just to be
able to load the debug symbols manually.


It turns out that the dll's I had been trying to trace into were loaded
in the global assembly cache. I don't know why, but this prevented the
debug symbols for these dll's from being loaded. I removed the dll's
from the GAC and now the symbols load on startup and I can trace into
the DLLs just fine.

--Phil

Jul 21 '05 #2

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

Similar topics

1
by: Greg Patrick | last post by:
My problem: I load an some assemblies (strong named) from a byte array using Assembly.Load(byte). They load fine. But one one of them is actually accessed, it's referenced assemblies can't be...
1
by: Eric Robert | last post by:
Hi, I am writing a C# application that uses a C++ unmanaged DLL. When I turn the unmanaged debug option ON, the application is much slower to start and the unmanaged code is very slow to debug....
2
by: Razzie | last post by:
Hey all, I'm working on this project where I'm dynamically loading an assembly. Basically what I want is that I can just replace my old dll file with a new one without having to do anything...
2
by: John Alesse | last post by:
Hi, I've created a very simple winforms control using the c# wizard in VS .net 2003 that is nothing but a System.Windows.Forms.UserControl. There are no other controls on the form It takes IE 12...
5
by: asdf | last post by:
Hello, I was enjoying working in VS for half a year without any problems and now I cannot debug anymore. Without any really reason my Studio tells me that the page that I want to debug has - No...
10
by: Brett | last post by:
For some reason when I step into the code below, it jumps out on the second iteration at the line I have marked below. Nothing else happens - no errors. Dim tcpClient As New...
2
by: glaserp | last post by:
Hi, I am developing a Windows application with C# in Visual Stuio .NET. My application references three assemblies that are developed in another project. I have added these assemblies as...
1
by: Doctorslicer | last post by:
Hi All, We have a large multi project application in MFC that we are converting to managed code. We have been able to add /CLR to all of the projects and have compiled successfully but encounter...
4
by: =?Utf-8?B?SnVhbiBEZW50?= | last post by:
Hi, I am getting the following in a VC++ EXE (using VS2005) that links several C++ DLLs and uses MFC and ATL, when I try to start it under the debugger: ------- 'Exactus.UX.Studio.v1.exe':...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
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
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,...
0
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...

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.