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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T13:56:44+00:00 2026-05-29T13:56:44+00:00

I have a project in C#, which references unmanaged third-party DLL (which is ChilkatDotNet2.dll

  • 0

I have a project in C#, which references unmanaged third-party DLL (which is ChilkatDotNet2.dll, but it seems not to matter). The third-party DLL is delivered in 2 versions, x86 and x64. The project references the x86 version – processorArchitecture=x86 in the appropriate <Reference> element. It builds just fine in both Debug|Any CPU and Release|Any CPU.

Now I change the reference to x64 version of third-party DLL – processorArchitecture=AMD64. (Don’t ask me why, please :)). The Debug|Any CPU builds just fine again. But the Release|Any CPU fails with the error: An attempt was made to load an assembly with an incorrect format: ChilkatDotNet2.dll.

What could be the reason? I would think it’s because VS itself runs as 32-bit process (right?), but why does it build fine in Debug?

  • 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-29T13:56:47+00:00Added an answer on May 29, 2026 at 1:56 pm

    Well, the problem seems to have hidden in the fact the project was upgraded from older versions of VS (I suppose, starting from 2005). I have re-created it from scratch, added all necessary stuff, and it works! Moreover, it became IDENTICAL to the bad one, and this makes me insane: one works, another doesn’t.

    So, I gave up since “the sun is rising? don’t touch anything there”. 🙂 Thanks to everyone who suggested options to try – I appreciate your efforts (+1).

    Accepting my own answer to mark the thread as complete, but don’t vote it up – it doesn’t contain useful info…

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

Sidebar

Related Questions

I have a .nuspec file for my project, which references a third-party DLL that
I have a project which references another project's dll. They both were in .net
I have a C# project which references a DLL (call it external DLL) which
I have a .NET project which references a DLL called ABCPDF. The version number
I have an executable project called A.EXE which references a C# class library B.DLL.
I have a .NET project which references another assembly that is built outside of
I have an ASP.NET web application project which references another project called ModusCore (or
I have a Windows Forms project in Visual Studio 2008, which references a library
I have an iPhone project which references a framework as a subproject. The framework
I have a class library which is called through COM from a Third Party

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.