Machine needing to restart after binary update of desktop application - c#

We have one Desktop application build with .NET3.5 in VS 2008. It is deployed on Network location which is accessible across the firm. Shortcut is created on user's machine to start the application. Desktop is being build (compiled) in AnyCPU configuration as Some user using XP machine and some are using Windows 7. Whenever new build (dlls and exe) deployed on network location, user have to close the app and restart it to work properly
Problem
We are facing a issue whenever we deploy new build (dlls and EXE) of the application. On Windows 7 machine application is not starting if we close the current running instance. User has to restart the machine itself to get it work.
Any help or suggestion is appreciated.

There is limited info to go on but the first thing I would make sure of, is the application still running under the Processes tab in the task Manager?
Go to the task manager on the computer and check the running processes tab to see if this app is still running.
It could be that it doesn't shut itself down properly after the user quits the application.
If the program is still running in the background then Windows will require a restart before the new dll's are loaded.

Related

Windows Service not writing text file after installation in Windows

I have created a console based app and running fine, and same app converted into windows services. When i install it through visual studio for debugging its install and run smoothly, but when the code flow goes to change the app.config file value 0 to 1 it throw an exception UnauthorizedAccessException' and access denied.
The issue can be due to one of these 2 reasons:
If you are not accessing file using an absolute path, the service might be looking for the file at a location other than where you are expecting.
Services are started from an application called Service Control
Manager. This application lives in the system directory
%WinDir%\System32
On a Windows 7 Ultimate - 64 bits this path is actually : %WinDir%\SysWOW64
The WindowsService process could be running under an account different
from what the Visual Studio might be running under.
Either you can make the service run under an account that already has permission to the file or give permissions to the account that the service is already running under.

Application slow after installation

I've created this WPF application and it's working fine and fast when running the release build from any folder.
Since it's done I made an installer (WiX) to install it into the program files folder. When I run my application from program files it's very slow and hangs all the time. Running as administrator makes it run normally again.
Why is this and how can I make it run normally without having to run as admin?
thanks.
I fixed this issue by enabling ClickOnce security settings in project properties and selected option This is a full trust application.

C# application crashes in Windows CE

I have some console C# application, which is working on Windows CE environment. This application start the other main application.This part is working. But also it have to detect when/if main application crash and in this case restart main application. Is there any way to detect application crash by program?
Thanks, Slava.
I have found the solution, which is pretty match to my needs.I just put the application to \Windows\StartUp folder and that is it. After restart all applications in StartUp folder are coming up,including MyApp.

Running Application at StartUp

Hi i am running windows 7 64 bit.
I made an application that uses sql lite database and to do operation application has application manifist file to require admin.
Now issue is that i need to run this application when ever windows starts up it should run after login.
now i tried two approaches
1.Writing Registry Run
2.Creating ShortCut to StartUp Folder.
when ever i restart my application it does not start up.even if i get the path from regedit or startup shortcut is clicked the application starts up.
What is the Issue?
One thing i noticed that if application does not requires Admin permission then it launches. but in that case database exception occurs"Attempt to write a read only database"
but launching with admin rights Works on WinXP
did you check the permissions of the directory containing the sqlite db ? the directory should be write enabled

Windows service only gets called when Visual Studio is attached to process

I've created a simple windows service in C# using Visual Studio 2010. It uses a TcpListener and socket to listen for messages on a given port. This worked absolutely perfectly when my laptop had Windows Vista on it. However, since upgrading to Windows 7 and re-installing my service it only responds if I'm attached to the process and debugging in Visual Studio 2010 - at which time it behaves as expected.
I've tried running the service under my (administrator) credentials and setting the exe to run as administrator. I've also checked "Allow service to interact with desktop" when it was running under the Local System account.
I'm testing using both a test console app and an Adobe Air application - both with the same results.
Are there some specific permissions that I need to allow the service to be called?
Try adding an exception for your executable in Windows Firewall.

Categories