473,671 Members | 2,608 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Stepping into a referenced assembly

Hello,
can anybody tell me what the trick is to getting VB.NET 2003 to step into
the code of an assembly that I have referenced in my project?
For instance, I have these two assemblies, both written by me in VB.NET
2003, and both referenced in my project. I have some code that looks like
the following:

With g_toc
.RefreshLegend = False
.ShapePath = g_RegCtl.Reg.Av Shapes
.AvDataPath = g_RegCtl.Reg.Av Data
End With

Both g_toc and g_RegCtl are instance variables created from the assemblies
that I have reference and when I step through the code above, VB will load
the class g_RegCtl.Reg into the debugger and step into AvShapes. Likewise
for AvData, but it won't load the class for g_toc from that assembly so I
can step into g_toc.ShapePath for instance.
What gives????

Thanks in advance for any smart ones out there that can shed light on this
for me.

Steve
Nov 21 '05 #1
3 1622
Make sure youre using the debug versions of the assemblies, load one of the
source files from the assembly and put a breakpoint where you want it.

You should also read the article in Windows Forms Tips and Tricks that shows
how to debug a component. The technique for debugging into ordinary
assemblies is identical.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"Steve Long" <St**********@N oSpam.com> wrote in message
news:e6******** ******@TK2MSFTN GP14.phx.gbl...
Hello,
can anybody tell me what the trick is to getting VB.NET 2003 to step into
the code of an assembly that I have referenced in my project?
For instance, I have these two assemblies, both written by me in VB.NET
2003, and both referenced in my project. I have some code that looks like
the following:

With g_toc
.RefreshLegend = False
.ShapePath = g_RegCtl.Reg.Av Shapes
.AvDataPath = g_RegCtl.Reg.Av Data
End With

Both g_toc and g_RegCtl are instance variables created from the assemblies
that I have reference and when I step through the code above, VB will load
the class g_RegCtl.Reg into the debugger and step into AvShapes. Likewise
for AvData, but it won't load the class for g_toc from that assembly so I
can step into g_toc.ShapePath for instance.
What gives????

Thanks in advance for any smart ones out there that can shed light on this
for me.

Steve

Nov 21 '05 #2
Thanks Richard and Bob. For some reason, a release version must have gotten
in there. And they said the end to DLL Hell.
Ha.
But, that did the trick. Much appreciated.

"Bob Powell [MVP]" <bob@_spamkille r_bobpowell.net > wrote in message
news:Ok******** *******@tk2msft ngp13.phx.gbl.. .
Make sure youre using the debug versions of the assemblies, load one of the source files from the assembly and put a breakpoint where you want it.

You should also read the article in Windows Forms Tips and Tricks that shows how to debug a component. The technique for debugging into ordinary
assemblies is identical.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"Steve Long" <St**********@N oSpam.com> wrote in message
news:e6******** ******@TK2MSFTN GP14.phx.gbl...
Hello,
can anybody tell me what the trick is to getting VB.NET 2003 to step into the code of an assembly that I have referenced in my project?
For instance, I have these two assemblies, both written by me in VB.NET
2003, and both referenced in my project. I have some code that looks like the following:

With g_toc
.RefreshLegend = False
.ShapePath = g_RegCtl.Reg.Av Shapes
.AvDataPath = g_RegCtl.Reg.Av Data
End With

Both g_toc and g_RegCtl are instance variables created from the assemblies that I have reference and when I step through the code above, VB will load the class g_RegCtl.Reg into the debugger and step into AvShapes. Likewise for AvData, but it won't load the class for g_toc from that assembly so I can step into g_toc.ShapePath for instance.
What gives????

Thanks in advance for any smart ones out there that can shed light on this for me.

Steve


Nov 21 '05 #3
I could have sworn I had posted this earlier but I don't see my post today
so I'll say thank you again to both Richard and Bob for responding to my
request. The solved my dumb little problem. For some reason, I guess the dll
had gotten compiled into a release mode so I fixed it and was good to go
again.

Steve
"Steve Long" <St**********@N oSpam.com> wrote in message
news:e6******** ******@TK2MSFTN GP14.phx.gbl...
Hello,
can anybody tell me what the trick is to getting VB.NET 2003 to step into
the code of an assembly that I have referenced in my project?
For instance, I have these two assemblies, both written by me in VB.NET
2003, and both referenced in my project. I have some code that looks like
the following:

With g_toc
.RefreshLegend = False
.ShapePath = g_RegCtl.Reg.Av Shapes
.AvDataPath = g_RegCtl.Reg.Av Data
End With

Both g_toc and g_RegCtl are instance variables created from the assemblies
that I have reference and when I step through the code above, VB will load
the class g_RegCtl.Reg into the debugger and step into AvShapes. Likewise
for AvData, but it won't load the class for g_toc from that assembly so I
can step into g_toc.ShapePath for instance.
What gives????

Thanks in advance for any smart ones out there that can shed light on this
for me.

Steve

Nov 21 '05 #4

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

Similar topics

2
2130
by: John Smith | last post by:
I have created an assembly that needs to load types from other assemblies on-the-fly. However, if I use the Assembly.Load() method it tells me it cannot find the assembly that I requested. I assume this is because the assembly is not referenced in the project. So how do I load assemblies that are in my Visual Studio solution but are not referenced in the particular project? Thanks
3
1442
by: Jimi | last post by:
What do I need to do to get details of an assembly that is not referenced by an app? I don't even know the classes contained in the assembly. If the assembly is referenced and I know the existing classes, I know I can do: System.Reflection.MemberInfo ClassMemberInfo = typeof(SomeClass).GetMembers() but suppose I don't know the classes and also am not referencing the
2
2160
by: jheising | last post by:
All, I'm wondering if anyone can help with a small little issue I'm having. Here's the hypothetical situation: I have an Assembly called FooBaseAssembly with a classed called FooBase. I have another Assembly called FooMaster which has a reference to
0
1127
by: Michel Gallant | last post by:
I have a simple asp.net page, NET 1.1, and no web.config file. I place the main assembly source in following directory: C:\Inetpub\wwwroot\cryptonet I link in a referenced COM interop assembly via: <%@ Assembly Name="Interop.CAPICOM" %> <%@ Import Namespace="CAPICOM" %> and originally, I had placed the assembly in the following application bin subdirectory:
4
3123
by: mct | last post by:
Environment --------------- Visual Studio 2005 ..NET 2.0 Windows XP SP2 Scenario ---------- TCLibrary (Class Library) • Contains MyIdentity and MyPrincipal classes that implement the IIdentity
0
1494
by: eheinsen | last post by:
I've converted a multi-project application from VS2003 to VS2005. The solution has a WinForm project and a WebForm project. Both projects reference SQL Server Reporting Services (SSRS). The Winform project builds successfully, but the Webform project has one compile error: "Unable to reference assembly: Referenced assembly 'App_WebReferences.uy4gsvzd' does not have a strong name". The assembly seems to be system generated. The only web...
1
1668
by: ShrimpBoy | last post by:
Hi! I'm using a Strong Name Key to create our assemblies, this key has the Full Trust security so we can use those "mini tools" from network drives... I'm trying to use WMI to get access to data in our SMS Server... Now, when I tried to create my assembly I got this message... "Unable to emit assembly: Referenced assembly 'interop.WbemScripting' does
2
4051
by: drew.ferraro | last post by:
Hi, I am trying to build a .DLL file that uses "'Microsoft.ApplicationBlocks.ExceptionManagement.Interfaces'". I am trying to build this .DLL as fully signed. However, when I try to build, I get the following error: "Unable to emit assembly: Referenced assembly 'Microsoft.ApplicationBlocks.ExceptionManagement.Interfaces' does not have a strong name"
2
2025
by: john | last post by:
Hi to All, Our all data source object are defined in a separate assembly than UI. When I start designing a new Crystal Report a dialog pops up and asks for data source. Unfortunately it lists only the datasets and objects from the actual project from the solution. How can we select the datasource from a referenced assembly? thx for the answers
0
8930
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
8828
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...
0
8677
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
7446
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...
0
5704
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
4227
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
4417
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2819
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
2062
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.