Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Tuesday, September 20, 2022 4:43:45 AM(UTC)

aroig  
aroig

Groups: Registered
Posts: 10


I have this warning message twice at the 'Error list' when the vb.net project is open :
There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "Leadtools.Multimedia", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.
Could you help me correcting it ?

Thank you very much
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Tuesday, September 20, 2022 9:30:03 AM(UTC)
Christopher

Groups: Registered, Tech Support, Administrators
Posts: 89

Was thanked: 4 time(s) in 4 post(s)

Typically, an architecture error, when dealing with the LEAD Multimedia toolkit, is due to using x64 architecture with x86 libraries, or vice versa.

First, decide if the project is going to be x86 or x64.
In Visual Studio you can set this here:

architecture.png

Or by altering this in the "Configuration Manager" the exception references.
To find this:
>> GoTo Build
>> Configuration Manager...

confiManager.png

Then check the "Active solution platform" and "Platform" match and are the same architecture you are developing for.

confiManager2.png

Once set, you will want to:
>> _rightClick on the project
>> GoTo Properties
>> Once properties is open, select the Build tab
>> then make sure the build path is set to the correct location
if not, you can select [Browse...] to find the correct file path

for x64 you will want to point to:
C:\LEADTOOLS22\Bin\DotNet4\x64

for x86 you will want to point to:
C:\LEADTOOLS22\Bin\DotNet4\Win32

buildPath.png

Additionally, sometimes libraries can inadvertently be overwritten when running an application pointing to the wrong architecture, so you should check the specified Leadtools.Multimedia.dll to make sure that it is still the same architecture as the file folder you are pointing to.

To make sure that the Leadtools.Multimedia.dll has not been overwritten:
>> GoTo the corresponding architecture file folder

x64
C:\LEADTOOLS22\Bin\DotNet4\x64

x86
C:\LEADTOOLS22\Bin\DotNet4\Win32

>> Scroll to the Leadtools.Multimedia.dll
>> _rightClick on the dll
>> GoTo Properties
>> GoTo the Details tab
>> check to make sure the architecture listed matches the file folder that you are pointing to

checkLib.png

If this is the incorrect architecture, you will want to replace the Leadtools.Multimedia.dll with the correct one.
For version 22 users, this can be done by reinstalling the SDK, which will replace all files.
For previous version users, if you do not have a copy of the file folder on hand that has not been altered, you can obtain a download link for an older version by submitting a request via email to our Support Department.
support@leadtools.com
Please be sure to include the developer key being used with the request, so the Support Agent handling your request can validate a purchased license for that archived version of the SDK exists.
Chris Thompson
Developer Support Engineer
LEAD Technologies, Inc.

LEAD Logo
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.081 seconds.