472,784 Members | 996 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,784 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 3367
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
by: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.