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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T21:27:48+00:00 2026-05-20T21:27:48+00:00

Message: Couldn’t load library C:\_ZAGON\TMP\DLL\GeckoEngine\xulRunner\freebl3.dll There was an error during dll loading : C:\_ZAGON\TMP\DLL\GeckoEngine\xulRunner\freebl3.dll,

  • 0
Message: Couldn't load library  C:\_ZAGON\TMP\DLL\GeckoEngine\xulRunner\freebl3.dll
There was an error during dll loading :  C:\_ZAGON\TMP\DLL\GeckoEngine\xulRunner\freebl3.dll, error - 18
Stack trace:    at TMP.CrawlerApp.CrawlerApp.LoadWin32Library(String dllFilePath) in CrawlerApp.cs:line 149

line 149:

throw new Exception(String.Format("Couldn't load library {0}{1}{2}", dllFilePath, Environment.NewLine, exc.Message), exc);

whole code:

DllImport("wininet")]
        private static extern int InternetGetConnectedState(ref int lpdwFlags, int dwReserved);

        [DllImport("wininet")]
        private static extern int InternetAutodial(int dwFlags, int hwndParent);

        [DllImport("kernel32.dll")]
        private static extern IntPtr LoadLibraryEx(string dllFilePath, IntPtr hFile, uint dwFlags);

        [DllImport("kernel32.dll")]
        public static extern bool FreeLibrary(IntPtr dllPointer);

        private IntPtr LoadWin32Library(string dllFilePath)
        {
            try
            {
                IntPtr moduleHandle = LoadLibraryEx(dllFilePath, IntPtr.Zero, LOAD_WITH_ALTERED_SEARCH_PATH);
                if (moduleHandle == IntPtr.Zero)
                {
                    // I'm gettin last dll error
                    int errorCode = Marshal.GetLastWin32Error();
                    throw new ApplicationException(
                        string.Format("There was an error during dll loading : {0}, error - {1}", dllFilePath, errorCode)
                        );
                }

                return moduleHandle;
            }
            catch (Exception exc)
            {
                throw new Exception(String.Format("Couldn't load library {0}{1}{2}", dllFilePath, Environment.NewLine, exc.Message), exc);
            }
        }

private void LoadDLL()
        {
            string XulRunnerPath = @" C:\_ZAGON\TMP\DLL\GeckoEngine\xulRunner";\NCrawler\GeckoEngine\xulRunner";

            string[] files = Directory.GetFiles(XulRunnerPath, "*.dll");
            foreach (var file in files)
            {
                LoadWin32Library(file);
            }
        }

what can cause this error. In win 7 works but when i copy to server i get this 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-05-20T21:27:49+00:00Added an answer on May 20, 2026 at 9:27 pm

    My guess is your error might be related to the fact that your server is x64 while your station is x32. Changing platform target in your .NET build to x32 from Any CPU might solve your problem. The correct solution would be though to compile freebl3.dll for x64.

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

Sidebar

Related Questions

There seems to be lots of posts regarding that error message but I couldn't
Am getting this error message and matched my brackets and couldn't find anything wrong.
I have this error message could not load assembly 'system.data.entity, version 4.2.0.0, culture=neutral,publickeytoken=b77a5c561934e089' or
I'm currently getting a Could not load type UI.Administration.Site.master error message and I'm not
I encounter this problem Fatal error: Uncaught exception 'PDFlibException' with message 'Couldn't find encoding
I've seen a couple of questions about this particular error message, but couldn't find
I've tried to solve this error message but I couldn't. I've tried for a
My Appharbor builds are failing with this error message: Couldn't pick a single solution
How could i validate a textbox in vb.net, so that it gives error message
I am receiving a CoreData could not fulfill a fault for ... error message

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.