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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T08:54:41+00:00 2026-06-10T08:54:41+00:00

In ASP.NET application I’m trying to execute method in AppDomain from different assembly stored

  • 0

In ASP.NET application I’m trying to execute method in AppDomain from different assembly stored in bin subfolder. I’m creating AppDomain and calling AppDomain.CreateInstanceAndUnwrap. It works fine on my computer and Windows Server 2K8 but on Windows Server 2k3 throws an exception:

at System.AppDomain.CreateInstanceAndUnwrap(String assemblyName,
String typeName) at System.AppDomain.CreateInstance(String
assemblyName, String typeName) at
System.Activator.CreateInstance(String assemblyName, String typeName)
at System.Activator.CreateInstance(String assemblyName, String
typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder,
Object[] args, CultureInfo culture, Object[] activationAttributes,
Evidence securityInfo, StackCrawlMark& stackMark) at
System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString,
Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean
forIntrospection) at
System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName
assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark,
Boolean forIntrospection, Boolean suppressSecurityChecks) at
System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String
codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint,
StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean
forIntrospection, Boolean suppressSecurityChecks) at
System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String
codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint,
StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean
forIntrospection, Boolean suppressSecurityChecks)

System.IO.FileLoadException: Could not load file or assembly
‘MyAssembly’ or one of its dependencies. An API call exited
abnormally. (Exception from HRESULT: 0x800300FA
(STG_E_ABNORMALAPIEXIT)) System.IO.FileLoadException: Could not load
file or assembly ‘MyAssembly, Version=2.23.7.23064, Culture=neutral,
PublicKeyToken=null’ or one of its dependencies. An API call exited
abnormally. (Exception from HRESULT: 0x800300FA
(STG_E_ABNORMALAPIEXIT))

Does somebody have an idea why?

  • 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-10T08:54:43+00:00Added an answer on June 10, 2026 at 8:54 am

    My answer (AppDomain shadow copied file access denied with ASP.NET site running on IIS6):
    The reason of the problem is CachePath default value. If an AppPool is run under network service, DefaultUser temp folder location is used (I don’t know why). But Network Service doesn’t have access to the folder and it’s the reason of the exception. The solution is to set CachePath explicitly. For example, we can use ASP.NET AppPool cache path:

    var domainInfo = new AppDomainSetup
      {
        CachePath = AppDomain.CurrentDomain.SetupInformation.CachePath
        /* ...*/
      };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My ASP.NET application loads an assembly and creates a class instance from an object
I am working on asp.net application and I have generated entity model (edmx) from
An asp.net application I am working on may have a couple hundred users trying
I have ASP.NET Application: I have added 5 classes with different Namespacess in App_Code
My ASP.Net application generates an <asp:Table> from the codebehind. What I need is for
I'm converting a asp.net application from .NET 2.0 to .NET 3.5 I have loads
I have asp.net application and a TabContainer from AjaxControlToolkit on a form. There are
My asp.net application has a custom base user control that is inherited from other
My asp.net application will be distributed to different users. It should retrieve the domain
My ASP.NET application has a requirement, where if a user selects a country from

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.