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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:43:03+00:00 2026-05-23T10:43:03+00:00

I have a Application where I need to create AppDomain and Load Assembly into

  • 0

I have a Application where I need to create AppDomain and Load Assembly into it and execute the methods in the Assembly.

Here is my Code

public class CreateAppDomain
{
     public void CreateAppDom()
        {
        AppDomain domain = AppDomain.CreateDomain("myDomain");
        domain.ExecuteAssembly(@"C:\Visual Studio 2005\Projects\A1\A1\bin\Debug\A1.dll");
        domain.CreateInstanceFrom(@"C:\Visual Studio 2005\Projects\A1\A1\bin\Debug\A1.dll","A1.Navigate");
        }

}

I above code is written in a classfile called CreateAppDomain.cs

In my Default.aspx page I created the instance of the above class and called the create method.Here is the code

protected void Button1_Click(object sender, EventArgs e)
    {
        CreateAppDomain obj = new CreateAppDomain();
        obj.CreateAppDom();
        Response.Write("Application Domain Successfully created");
    }

when I run the default.aspx page I get a error saying

Entry point not found in assembly ‘A1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’.

Can Anyone explain me the meaning of above error and solution to it.

Thanks,

  • 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-23T10:43:03+00:00Added an answer on May 23, 2026 at 10:43 am

    AppDomain.ExecuteAssembly() method loads an assembly into specified domain and then executes it’s standard entry point i.e. static void Main(string[] args) method.

    Look here for details.

    What do you want is probably one of the overloads of CreateInstanceAndUnwrap() method

    EDIT:

    I created ConsoleApplication9, added besides ClassLibrary1. In the ClassLibrary1 I have Class1:

    namespace ClassLibrary1
    {
        public class Class1 : MarshalByRefObject
        {
            public void Go()
            {
                Console.WriteLine("My AppDomain's FriendlyName is: {0}", AppDomain.CurrentDomain.FriendlyName);
            }
        }
    }
    

    In the ConsoleApplication9 these’s:

    private static void Main(string[] args)
    {
        Console.WriteLine("Trying to run method in current domain...");
        var inCurrentDomain = new Class1();
        inCurrentDomain.Go();
    
        Console.WriteLine("\nTrying to run method in remote domain...");
        string asmName = typeof(Class1).Assembly.FullName;
        string typeName = typeof (Class1).FullName;
        Console.WriteLine("Class1's assembly name is: {0}\nType name: {1}", asmName, typeName);
    
        var remoteDomain = AppDomain.CreateDomain("My remote domain");
        var remoteObject = (Class1)remoteDomain.CreateInstanceAndUnwrap(asmName, typeName);
        Console.WriteLine("\nRemote instance created. Running Go() method:");
        remoteObject.Go();
    }
    

    When run, I have:

    Trying to run method in current domain...
    My AppDomain's FriendlyName is: ConsoleApplication9.exe
    
    Trying to run method in remote domain...
    Class1's assembly name is: ClassLibrary1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
    Type name: ClassLibrary1.Class1
    
    Remote instance created. Running Go() method:
    My AppDomain's FriendlyName is: My remote domain
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application I need to analyze. I have the source code here.
I have a C/C++ application and I need to create a X509 pem certificate
For part of my application I have a need to create an image of
I need to create a plug-in that updates an application. Look, I have a
I have a dynamic application that need to create a window interface with checkbox.
I need to create a very simple application: I need to have a form
I have an application in which I need to create mx.states.State objects on the
I currently have an application where I create a series of Tasks that execute
I have a 2006 era application that I need to create an installer for.
We have a web application where we need to create functionality to manage users,

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.