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 3991686
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T06:38:45+00:00 2026-05-20T06:38:45+00:00

When I have my project’s target framework set to Framework 4.0 and run the

  • 0

When I have my project’s target framework set to Framework 4.0 and run the following code:

 Assembly pAsm = Assembly.LoadFrom(aMagPath);
 foreach (Module m in pAsm.GetModules())
 {
    Type t = m.GetType("typeName"));
 }

typeName is a user defined type from a 3rd party dll.

t is null.

If I change the target type to Framework 3.5 t is not null.

I don’t change anything else. I just change the target framework and rerun the application.

Can anyone explain why this it happening?
is there some tool that will let me look into this more?

UPDATE:
I changed my code to the following.

Assembly pAsm = Assembly.LoadFrom(aMagPath);
Type t = pAsm.GetType(String.Format("GM.FCAT.{0}.{0}+FBlock+{1}Function+{2}CaseStream+{2}RepeatableParameterStream", FBlockName, pName, aParam.Name), false);

I still have the same problem.
t = null in version 4.0 and doesn’t in version 3.5

I can’t find the type when I load it into .net reflector. so I guess it is not really there.

  • 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-20T06:38:45+00:00Added an answer on May 20, 2026 at 6:38 am

    Some framework types have moved across assemblies between versions, with an assembly binding redirection to make it usually invisible to clients. That may explain what’s going on, but it’s hard to say without knowing which assembly and type you’re trying to find.

    EDIT: Okay, now that we’ve got a bit more context…

    That suggests the type really isn’t in that module… It’s possible that there was a bug in .NET 3.5 which looked in the parent assembly for the type name instead of just within the module.

    Is there any reason why you have to look on a module-by-module basis, instead of just asking the assembly itself for the type?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have project Emle in Launchpad . I set it to import from emle.svn.sourceforge.net
I have project written in Zend Framework and it works fine most of environments.
I have project with the following layout (Python 2.4.3) root +--- src +--- xyz
I have project of following struct A CMakeLists.txt B CMakeLists.txt C CMakeLists.txt I directory
my set up is this. I have project A , and a test project
I have the following class in my sinatra app (app.rb) class Project include DataMapper::Resource
If I have a SVN project set up like so: Project -- Subdirs --
I Have project in which a module needs to display the list of data
I have project that uses Hibernate: hibernate-core-3.6.7.Final.jar In its POM I found: <dependency> <groupId>org.hibernate.javax.persistence</groupId>
I have project in Dropbox and two running laptops: one with Ubuntu and one

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.