Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6727725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:05:00+00:00 2026-05-26T10:05:00+00:00

I am debugging an assembly which I loaded dynamically with Assembly.Load(Byte[]) , but I

  • 0

I am debugging an assembly which I loaded dynamically with Assembly.Load(Byte[]), but I am facing some problems.

First of all, I can’t move the yellow arrow in Visual Studio 2010 to step into other lines of code, and also I am getiing exceptions (“Cannot find the method on the object instance.”) when trying to do a quick watch on objects from a third party library (controls from Infragistics for example.)

Dim data = My.Computer.FileSystem.ReadAllBytes(file.FullName)
Assembly.Load(data)

When using Assembly.Load(String), everything works fine, and there are no problems.

Assembly.Load(IO.Path.GetFileNameWithoutExtension(file.Name))

Any idea why the behaviour is that much different? Anyway to fix this?

I tried loading the debugging symbols for my assembly with Assembly.Load(byte[]. byte[]), but I still get exceptions when trying to debug objects from third party libraries.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T10:05:01+00:00Added an answer on May 26, 2026 at 10:05 am

    The debug symbols for your assembly are not being loaded into the application domain. When you use the string variety, .NET automatically looks for a .PDB alongside the filename you specify.

    To load an assembly and its symbols from byte arrays, use Assembly.Load(byte[], byte[]), like so:

    Dim data = My.Computer.FileSystem.ReadAllBytes(file.FullName)
    Dim pdbData = My.Computer.FileSystem.ReadAllBytes(pdbFile.FullName)
    Assembly.Load(data, pdbData)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Debugging a PHP program, is there any add-on/plug-in for browser which I can view
I'm doing some assembly-level debugging in GDB. Is there a way to get GDB
If I am debugging (in this case a Visual Studio assembly called by Excel)
Every once in a while, typically when I stop debugging in our UI assembly,
Debugging some finance-related SQL code found a strange issue with numeric(24,8) mathematics precision. Running
Debugging experience http://www.dmhermitage.org/wtfborders.png This is making me want to kill myself. I have some
I'm having problems with debugging an application that calls out to another AppDomain, because
I have some code that references an outside DLL which in production will be
Is it possible to create a method which performs debugging assistance like the System.Diagnostics.Debug
I'm having trouble debugging my application because I can't even run it. I haven't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.