Windows Application installation on a 64 bit OS windows 10 - c#

I am running a setup of Windows application on a windows 10 64 bit OS.
Previously the win forms app had been running on 32bit windows 7 Os for last 14 years.
Every module works fine but not reports (crystal reports).
After installation the application is in Program files(x86).
I installed CRforVS_redist_install_32bit_13_0_19.
I installed CRforVS_redist_install_64bit_13_0_19.
Still the error shows
Please help.

This might mean that you need to have correct Crystal runtime. X64 for 64 bit machine and X86 for 32 bit machine.
Here is a list of all Crystal runtimes: Crystal Reports Runtime Distribution & Supported Operating Systems

Related

Report on my software not worked on windows 7 / 32 bit

I created a software on Windows 10 using SQL Server 2012 and Visual Studio 2015 in C#.
Now I want to install my software on Windows 7 / 32 bit; it is running, but my report is not working, I downloaded the reportviewer, but it's not working.
What should I do to a program that works correctly?
Thanks for help.
It could be a lot of things , Binary incompatibility from development to client machine , lack of required windows updates , Incorrectly installed report run-time , lack of administrator privileges or missing Dlls . Try running it on a 32 bit version of windows 10 if you haven't already.

Program not working on 64 bit Windows

I have programmed (with Visual Studio, C#) an application that connects to an Oracle database and does stuff. It works fine on my pc with sample database, my Windows is 32 bit, but as soon as I upload it to the server which has a 64 bit Windows, I get an error:
The provider is not compatible with the version of Oracle client
I have set target platform on "any cpu" in Visual Studio.
What should I do to have it run on both 32 bit and 64 bit Windows?
C# Database providers are usually 32bit or 64bit (you didn't state the database provider you used).
If you set your program to be any CPU , at run time it will be compiled to either 32bit or 64bit which is determined by locally installed .Net framework.
Since your developing machine is 32bit , it runs as 32bit and has locally installed database provider of 32bit.
When you try to run it on your server , it runs as 64bit and doesn't find a provider for 64bit.
You seems to either need to install a 64bit provider on your server or compile your program to x86.

Why would a x86 compiled application work on 64 bit windows machine?

I installed windows 7 64 bit and then I installed visual studio 2015 then created C# application using windows forms and I compiled this application as x86 (as shown in screenshot) to creat the exe file . After that I installed the .exe file on another 64 bit windows 7 and the application worked fine!
My question is: why this x86 complied application would work on 64 bit machine. I read that if I compile application as x86 it would only work on x86 machines.
Can anyone explain why it worked on 64 bit machine? thank you
The reason is because your 64bit CPU is specically designed for this as well as the operating system you're using.
In short, the OS detect that you're trying to run a x86 application and put the CPU in x86 compatibility mode before executing your application.

Deployment on windows 7 64 bit os while trying to installing Windows application 2010 with crystal reports

I am getting deployment problem while installing Windows application developed using VS2010, access 2007 and Crystal Reports on windows 7 32 bit
First i got the following error.
The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine while data export to MS ACCESS.I installed MS access database engine 2007 and Target Platform of my application to x86 ( which was initially set to AnyCPU)
MS access provider problem got resolved by installing Access database engine and changing the target platform to x86
Then i clicked a button to see reports.I got error "could not load assembly "crystaldecisions.crystalreports.engine".
I resolved it by installing Crystal Report Runtime 64 bit for .NET framework 4.0.
Now i am getting "The type initializer for crystaldecisions.crystalreports.engine.reportdocument' threw an exception "
I found some forums suggest that if u set Platform -> ANY CPU, it would get resolved.
But when i set platform - any cpu, i am getting msaccess problem again.
Please help me to find the solution for deploying Windows Application with Crystal Reports (developed vs2010 and msaccess 2007,windows 7 os 32 bit) on Windows 7 64 bit msaccess 2007.
Please provide a right solution to get rid of all deployment issue.It works finely on my system.
Development Setup:
Windows 7 32 bit
VS2010
Access 2007
Deployment Setup:
MS access 2007
window 7 64 bit
My windows application should run without any msaccess or report issue.
Thanks
Padma
While deploying application developed on 32 bit machine on 64 bit machine.Do the following
1.Build all projects under solution to X86 Platform.
2.Then in production machine,install all the necessary components for 32 bit.
Note Please do not install 64 bit components then it works finely for me.
I uninstalled all the components in my production server, next i installed my application.
Then i started installing components on receiving error messages while running my application.
Finally i got rid of all errors and it works finely for me.

Develop WPF on Window 7 (32 bit) VMware guest on Mac OS X (64 bit) host

I installed Windows 7 (32 bit) on VMware running on Mac OS X 10.6 (64 bit).
I have VS 2010 on the Windows 7 guest. I developed a WPF C# .NET 4 application using this VS 2010. Will the application be a 32 bit or 64 bit application in this scenario.
32bit. Its your windows machine that is executing the application, and that is 32bit.
.Net applications (and by inclusion WPF applications) are compiled into IL, which is actually converted to machine code by the framework. By default, this IL code is set to be able to run on both CPU types and therefore if your end users are on 64bit machines with 64bit framework, they will get a 64bit application. If 32bit with 32bit framework, they will get a 32bit application.
32bits in this case. It depends on the platform Visual Studio installed on.

Categories