After upgrade to Couchbase.Lite 3.1.7.0 .NET windows application installing is failed

Hi,

In our .NET windows application, We recently upgraded Couchbase.Lite to 3.1.7.0 but we got an error at
CouchDatabase = new Database(“xxxxx”);

Researched on this and found that it’s because of target platform x86. this version will only work in x64 target platform of widows application. So changed target platform of windows app to x64 and able to run successfully in local.

But we got an issue in installation. So we changed setup project target platform to x64 and we are adding three primary outputs to setup project. one windows application and two windows services because when ever we are installing this application, it will install windows app and two windows services in background. So we changed windows services target platform to x64 as well able to build setup project successfully after newly added things which are build under x64.
But still we are facing below issue

We researched on it and what we understand is there are some dependencies may left which are from x86 but we rebuild under x64 and newly added.

Are we missing anything in this process? Please suggest a solution for this?

Thanks in advance
Anusha

There is not really much to comment on here except that you are right and everything would need to be x64.

1 Like

Hi, @borrrden, We tried using x64. We did Re build of all projects under x64 and added new output to setup project. did we missed anything? is there any other ways to overcome this issue.

I can’t really be sure where the issue is coming from without seeing it myself. The exception is saying that something is still not x64 and that’s basically all the information present. Maybe you can use dependency walker or something to go through all of its dependencies.

@borrrden , I used dependency walker as well, in that I didn’t see anything related to x86. Thank you

HI @borrrden, We created a new project, it contains windows application and setup project. Still we are getting same issue in new sample project. please go through the link where attached new sample project. WindowsFormsApp.zip

Thank you.

I don’t have the tooling installed to run the vdproj (in fact I’ve actually never even heard of such a project). However, the app runs fine for me. I notice, however, that release mode has “prefer 32-bit” enabled which could be an issue.

I was able to install the vdproj tooling and see the issue but I have no insight into what causes it. The project runs just fine and it seems like it is a problem specifically with that tooling.