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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T22:43:49+00:00 2026-06-14T22:43:49+00:00

I think i have used a quite common pattern: var result = from a

  • 0

I think i have used a quite common pattern:

var result = from a in AppDomain.CurrentDomain.GetAssemblies()
                         from t in a.GetTypes()
                         where t.IsDefined(typeof(TAttribute), inherit)
                         select t;

If i call the code from Program.cs it works.

Also if i call it from a form it works – sometimes, depending on the form. Sometimes it is only throwing an error:
Mindestens ein Typ in der Assembly kann nicht geladen werden. Rufen Sie die LoaderExceptions-Eigenschaft ab, wenn Sie weitere Informationen benötigen.

In the details there is the information:

{“Die Datei oder Assembly \”EntityFramework, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\” oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden.”:”EntityFramework, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089″}

This is somehow a bit amazing for me. As far as I know we don’t use EntityFramework anywhere, only Telerik as ER.

I have done a “findstr /s /i /m entityframework .” in the projekt directories.

Funilly, it has found it in a Sybase dll “SQL Anywhere 12\iAnywhere.Data.SQLAnywhere.v4.0.dll”.

okay – that seems a bit like a sybase sql data provider. But so far as I can see we do not need EntityFramework, and the project also works as anticipated.

How can i resolve this issue? Like saying: I want to parse Appdomain, but not some third party dlls. Or is there any way to ignor the error?

  • 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-14T22:43:50+00:00Added an answer on June 14, 2026 at 10:43 pm

    Parsing whole appdomain in such matter will scan all dlls that are loaded and all types form all of them will be loaded event if they are not used in your application. I’m not fluent in German but I assume that the error means that EF dll was not found. It is required to load some class that is not used by your code and is declared in some dll that is loaded in appdomain and it requires EF. You say you use Telerik, maybe it has some controls that utilize EF directly?

    The simple solution if you want to scan only your dlls would be to introduce convention for assembly names. Say all your dlls will be named OfflerCompany.ProjectName.Something and scan dll name for OfflerCompany.

    Also note that dlls are lazy loaded to appdomain so if you expect all of your dlls to be present you might be disappointed (there might be there already if all where used directly or not at least once).

    You might want to consider crrating configuration file that contains names of all dlls that need to be scanned. This is the cleanest and most transparent solution that I prefer.

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

Sidebar

Related Questions

I think I may have used a repeater when I should have used something
If not, I think lower(string) could be used to have a case insensitive comparison,
I have a code in which Cstring and wchar_t both are used. I think
I have an interface which is being used like this: var descr = new
I have used the Telerik ASP.NET controls, and personally I think they have been
I have used and like the Atmel ATMEGA and ATTINY series microcontrollers, and think
Okay, I have used reset CSS files for quite a while and they have
I have heard both of these terms used, are they the same thing or
Think I have an integer array like this: a[0]=60; a[1]=321; a[2]=5; now I want
I think I have a basic understanding of this, but am hoping that someone

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.