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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T21:44:40+00:00 2026-06-05T21:44:40+00:00

Hey guys (and gals) I’m having a problem using Assembly GetExportedTypes() in .NET 4.0.

  • 0

Hey guys (and gals) I’m having a problem using Assembly GetExportedTypes() in .NET 4.0. The same code is working perfectly in a project targeted at an older .NET version.

NOTE: *The code works for local assemblies but when trying to open them off a network drive it does not work, that is my problem… It looks to be loading the assembly, but it claims it can’t find it when using GetExportedTypes(). Again if I open a dll off my machine it works, this error only occurs with dlls located on network drives *

EDIT: The error is thrown on GetExportedTypes

The Code:

        Assembly assembly;
        Type[] t;

        assembly = Assembly.LoadFrom(dllPathOpenFileDialog.FileName.ToString());

        t = assembly.GetExportedTypes();

The Error:
Could not load file or assembly ‘*..***.***.****, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’ or one of its dependencies. The system cannot find the file specified.

(I used asterisks to hide personal information – the file name)

  • 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-06-05T21:44:42+00:00Added an answer on June 5, 2026 at 9:44 pm

    The way certain security policies are handled was changed in .NET 4.0. This article should provide some background.

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

Sidebar

Related Questions

Hey guys, I'm having a problem with IE7, my menu always drops down behind
Hey guys and gals I'm having some major issues trying to get my application
Hey guys. Working on Mac OSX 10.6, My problem is that I would like
Hey guys, I got the same error when I was using kiwi to install
hey guys, i was using Json dll in my project from quite sometime now
hey guys having this really simple problem but cant seem to figure out have
Hey guys, I'm using GWT for a data-driven web application, and I'm having issues
hey guys hope you can help me out, I am having a weird problem.
Hey Guys, here is my code for this, the only help i get from
Hey guys, I'm using Twitter's PHP API, called twitterlibphp , and it works well,

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.