WARNING: File '.dll' targeting 'x64' is not compatible with the project's target platform 'x86'.

Posted by Naraayanan under Error and Solution on 11/6/2012 | Points: 10 | Views : 4250 | Status : [Member] | Replies : 5

Hi All,
Now, i am working windows Application Project.I also create a setup file for this Application.I am using Two Dll files.One dll file supports 32 bit another for 64 bit OS.I built my Project.The following warning message displays.So How can i solve this problem.
Warning Message:
WARNING: File '.dll' targeting 'x64' is not compatible with the project's target platform 'x86'.
I tried the following ways.No use.Please Help me.
VS : 2008
Way :1
Go to Configuration Manager.
Create a New Plat form X86
Clean Solution
Build Solution.
No Use
Way :2
Go to Configuration Manager.
Create a New Plat form X64
Clean Solution
Build Solution.
No use
and also i checked dll project Platform. It is an AnyCPU.
Way :3
Go to Configuration Manager.
Create a New Plat form AnyCPU.
Clean Solution
Build Solution.
No use.

how to avoid this error .Please tell me. and Application doesn't work 64 Bit OS.So Please why this error occur?

Regards,
Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/
http://abaprocker.blogspot.com/



Responses

Posted by: Saratvaddilli on: 11/7/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
once try this
set your TargetPlatform of your setup project yo x64


Thanks and Regards
V.SaratChand
Show difficulties that how difficult you are

Naraayanan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naraayanan on: 11/7/2012 [Member] Starter | Points: 25

Up
0
Down
Hi,
I tried it .It's failed.


Regards,
Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/
http://abaprocker.blogspot.com/

Naraayanan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Madhu.B.Rokkam on: 11/7/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
As far as my understanding is concerned we cannot build a project targetting both 32bit and 64 bit. I believe we need to create multiple setups each for 32bit and 64 bit separately. And create a custom setup which would help to select the required target setup file.

Hope its helpful

Thanks and Regards
Madhu

Naraayanan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Saratvaddilli on: 11/7/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi
Have you done this
set your TargetPlatform of your setup project to x64 to any cpu

Thanks and Regards
V.SaratChand
Show difficulties that how difficult you are

Naraayanan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Saratvaddilli on: 11/7/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Please try this once
setup project as 64bit installer and change targetplatform of your sertup project to x64 and setting is for any cpu and deploy in 64x bit only

Thanks and Regards
V.SaratChand
Show difficulties that how difficult you are

Naraayanan, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response