I've developed a WPF application with .net 4.0 that it's using the WIA Library.
I've referenced the dll of the XP version because my system need to run on Win XP and above... Everything goes fine on my development machine, but I can't make it work anywhere else.
For the installation I'am using the Express Edition, in the files that will go with the solution, i've added all the files from my "Release" folder of the Project, because i can't make it work with the output of the project... And i've added the wiaaut.dll too...
On the client I've installed the app and registered the dll with regsvr32.exe... but it doesn't work... On a Win8 clean machine and on XP I receive an error when I try to initialize the object from the scanner, like this error...
Am I missing anything else to make it work? When i test it in another dev machine it works normal too...
PS. My dev machine is a Win 8 with VS 2010.
Related
I have developed a desktop application in c# & SQL server 2012 using Visual Studio 2013. I have included the reference for Microsoft.VisualStudio.DebuggerVisualizers and set copy local : true.
The application runs perfectly on client systems with windows 8, 10.
But its showing this error while installing on a windows 7 system.
- OS Windows 7 Ultimate
- already installed .NET Framework 4.5
- installed Report Viewer.exe 2012
- installed report viewer.msi 2010
- installed sqlclr types
- the system doesnt have any microsoft c++ redistributable , i am not sure whether it has any impact.
I checked in the assembly folder, but couldnt find the Microsoft.VisualStudio.DebuggerVisualizers.dll
Am I missing any prerequisites here? How to solve this issue so that i can install the application
Error Message
It needs the Microsoft.VisualStudio.DebuggerVisualizers.dll in the global assembly cache. The GAC is the area where libs are placed which can be accessed from all of the system.
It's kinda a ugly fix but you could place this lib in the same or subdirectory of the same directory where the application is.
Is it possibly that you haven't installed VS on that Win7 machine but on the others?
Unintentionally the Microsoft.VisualStudio.DebuggerVisualizers.dll had been included in the project reference. And in the client system the specified dll could not be found even after trying to install it. Hence I removed it from reference and then it worked perfectly fine without any issues. I guess instead of report visualizer i have included debuggervisualizer. It was a manual error.
Thank you for your support
I've currently used the System.Data.SQLite DLL in a .NET 4.0 x86 WinForms app. This is causing an issue on one of my client's PCs although I cannot reproduce this bug on my system. Both systems are 32bit Windows 7. How do I solve this? Things I've tried:
Installing .NET 4.0 (the app is .NET 4)
Installing all possible VC++ Runtime versions from 2005 to 2012
Installing this particular VC++ Runtime that SQLite needs (fixed a similar issue on my PC)
Adding the useLegacyRuntime attribute in the app.config XML
The error looks wierd because my app is obfuscated. The app works on my 32-bit PC and on my 64-bit development PC. It fails on a client machine. What can I do to solve this error?
In your project, solution explorer expands the Reference section and right click System.Data.SQLite then open properties, in the properties window, make sure copy local is set true . After that rebuild your project and run your client machine again
Turns out my SQLite DLL was outdated. I downloaded the latest from here and rebuilt my app with it. It worked on my PC as well as the client's. I had to install VC++ Runtime 2005 x32 on the Client Machine as well.
(Background: Just started using VC# and .NET)
Hi, I have a simple project which I started developing on Win7 (Pro), using VC# Express edition. It works well when I send it to the client who wanted to use it on Win7 Pro. I used to use "Build -> Publish" to generate the setup.exe and the relevant files. (Both development and client machines are very similar, Win7 Pro, 64-bit etc)
However, now the requirement changed and the client wants to use it on a different machine which is on WinXP Pro (32-bit) and it doesn't have an internet connection (it cannot be ever put on internet).
I used "Any CPU" option, made sure that the .Net version matches (Both have ver 4.0 Client profile". Since this PC will not have internet connection, I unchecked "Create setup program to install prerequisite components".
The program installs on the XP machine, but when it tries to launch it displays an error dialog "encounted a problem, need to close, send an error report to MS".I am not before the XP machine,so I don't know the "details" part of it.
I installed VC# 2010 express on the client machine and tried to open the solution file, but I get an error saying that the solution file cannot be opened because it was created with a newer version of VC#.
Ideally I would need to generate an installation file, which will uninstall the previous version and use a newer version (we need to go back and forth on any changes). But that is not a requirement as of now.
Any idea how should I go about getting this program installed on a WinXP machine? I don't have access to an XP license to test it in a virtual machine.
Thanks.
I have created a win form application in c# with sqlce. I followed the steps here http://erikej.blogspot.dk/2013/10/sql-server-compact-4-desktop-app-with.html making some tweaks along the way since I was using sqlce 3.5 .net and that blog was talking about 4.0 .net.
When I finished the application, I created a set up project and build it which gave me an msi and setup file.
Now when I run this set up on my own machine where I developed the applicaton, it works a charm.
I tried it on a friend's machine as well, it worked well, he had visual studio 2010 as well on his machine.
Now when I tried it on 2 other machines with VS, after installation, on launching the exe, it launches and immediately closes, I do not see anything although.
I know it launches as i look at processes from my task manager it shows it in there for like 3-4 seconds and its gone.
I tried using this Not able to run the .exe file created from c# where i wrapped the try and catch around all the code inside the root win form but no text file was created with any errors.
On doing some research, it says it could be because I am missing some dll's, how do i make sure all the dlls from the references would be copied into the project ? I set all dll's to true for copy local.
Is this something else and not related to dlls?
I really just want to be able to install the application on any machine without any problems.
Thank you for your time.
EDIT
I need to add that this was a project that involved using an XBox controller sending data to a wireless receiver that was hooked to a PC. I used the XNA framework to intercept these and display some form of output on the Win Forms.
When packing and installing/deploying an application that makes use of the XNA DLLs on another non developer machine, the XNA framework needs to be installed.
My solution was packing my application along with the xna installer and so the xna framework installs as a prerequisite and then my application installs and then it no longer crashes.
Thanks to mrlucmoring and Mark for their support and troubleshooting.
i finally finished a proyect i was requested in my university with Lightswitch. Im ready to deploy (publish) next week, and i was JUST told that the people that will recieve the software, are using XP machines. I've read a lot of questions and lots of fixes, to get Lightswitch working on Windows XP, like:
Changing the DumpBin with "editbin vslshost.exe /SUBSYSTEM:WINDOWS,5.01 /OSVERSION:5.1"
deploy it as a desktop application with the services deployed to IIS (i dont think this will work because those are really old pc's)
install all the prerequisites manually and launch the ClickOnce application directly from deployment manifest file (.application)
create a sample ClickOnce application using Visual Studio 2010 OR Visual Studio 2008 with the same name as mentioned in Visual Studio 2012 and publish it. From the published location take the setup.exe bootstrapper and replace the existing setup.exe bootstrapper created using Visual Studio 2012
With all of this workarounds available, i NEED to ask, will this ultimately work? Can someone REALLY tell me that using one-or-all of this workarounds i WILL be able to deploy the application!?
Someone?
The 2-Tier Deployment issue on XP was also addressed in VS 2012 Update 2 IF you upgrade to a "V3" LightSwitch project by right-clicking on the root project in Solution Explorer and selecting "Upgrade Project". This updates the project to the "V3" project system, runtime and will use a much newer publish wizard. The version of VSLSHOST.exe that ships with VS 2012 Update 2 is compatible with XP.
Dave Kidder - LightSwitch team
http://social.msdn.microsoft.com/profile/dave%20kidder/
I have a successfully deployed application using the 3-tiers running as an out-of-browser (desktop app) on XP. Initially I was going to do the 2-tier deployment, but I was unable to get a workaround to work.
So I have one server, which runs IIS as well as my SQL server (OS is Windows Server 2003, but doesn't have to be.)
The client machines range from Windows XP to Windows 7, and I haven't had any special problems with windows XP.
So I can definitely say XP will work as a client. I was unable to get it to run the middle tier (hence IIS on the server) but I didn't try every last idea I found, so I won't say it's impossible.
The two links I found most helpful in the process were
http://blogs.msdn.com/b/bethmassi/archive/2011/03/23/deployment-guide-how-to-configure-a-web-server-to-host-lightswitch-applications.aspx
and
http://blogs.msdn.com/b/bethmassi/archive/2012/03/29/lightswitch-iis-deployment-enhancements-in-visual-studio-11.aspx
Hope that helps.