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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T22:30:22+00:00 2026-06-16T22:30:22+00:00

I am implementing a ASP.NET MVC 4 application which supports plugins and since today

  • 0

I am implementing a ASP.NET MVC 4 application which supports plugins and since today I have a strange behavior and I do not know why:
I load the Plugins via Assembly.Load(path) which worked fine a few days ago, but locked my files as shadow copying does not work as the plugin folder was outside /bin.
Because of this I used Assembly.Load(File.ReadAllBytes(path)) which also works fine, but I think is not really clean code, so today I moved my plugin folder inside /bin and switched back to Assembly.Load(path), but now I get the following exception (Translated as I get it in my locale) when executing my code:

Could not load file or assembly “PATH_TO_MY_DLL” or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)

If I switch back to Assembly.Load(File.ReadAllBytes(path)) it works, but why does it not work when loading the file directly anymore?

  • 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-16T22:30:23+00:00Added an answer on June 16, 2026 at 10:30 pm

    I think you are making a mistake when you changed it back.

    Assembly.Load(string name) : loads the assembly named “name”.

    You should use:

    Assembly.LoadFile(path);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP.NET MVC 4 application which uses the new ASP.NET Web API.
We're currently rewriting our organizations ASP.NET MVC application which has been written twice already.
I'm implementing StructureMap in a multi-tenant ASP.NET MVC application to inject instances of my
I'm implementing the repository pattern in my ASP.NET MVC application. So i was doing
I am implementing a SaaS application using ASP.Net MVC 2 and SQL Server database.
In an ASP.NET MVC application implementing the repository pattern I am curious if it
I'm implementing a ASP.NET MVC 2 application and I need a grid with the
I am trying to write an ASP.NET MVC application which is a frontend to
I am implementing a new ASP.NET MVC 3 application that will use a form
I am implementing globalization in asp.net mvc and i have resource key/values stored in

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.