473,549 Members | 2,870 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 1617
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
2125
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...
3
1439
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...
2
2156
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
1119
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...
4
3121
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
1465
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...
1
1646
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...
2
4032
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...
2
2021
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...
0
7751
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. ...
1
7511
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...
0
7840
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...
0
6088
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...
0
5119
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...
0
3525
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...
1
1973
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
1
1087
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
793
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...

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.