Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - C# Application Dies for Only 1 User

Reply
 
Old 04-23-2008   #1 (permalink)
Erik Reiter


 
 

C# Application Dies for Only 1 User

I have rather odd problem and I am not sure how to go about debugging it.
I have an MDI application that I am deploying on the local intranet to about
20 users using ClickOnce deployment. I am just using the default setting in
Visual Studio 2005 to deploy the app to an intranet web server. It is a full
trust application. After I published the last update one of the users called
and said the application would not start for him after the update installed,
but was working the day before. No other users are having problems.
Basically the problem is: The user starts the application it starts up
fine. Then the user clicks on another application that is open causing my app
to loose focus. When the user clicks back on my application it shuts down
within one second.
If the user starts my application and uses Alt+Tab to switch between the
applications that are running on the machine the error does not occur. In
fact if the user chooses to use Alt+Tab just once to switch between my app
and another app the problem goes away even if they start using their mouse to
start clicking between my app and another one.

Thanks,
Erik


My System SpecsSystem Spec
Old 04-23-2008   #2 (permalink)
cfps.Christian


 
 

Re: C# Application Dies for Only 1 User

Sounds potentially like an unhandled exception, you could try to put
try/catch blocks around all your entry events and find out if any of
them are tossing up exceptions.
My System SpecsSystem Spec
Old 04-24-2008   #3 (permalink)
Erik Reiter


 
 

RE: C# Application Dies for Only 1 User

I have added some additional logging to the app and can still not find the
root cause.

I had the user copy the application from the debug directory of my dev
machine and put it in the c:\temp directory.

The version in the c:\temp directory is not auto closing.

Erik
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
User application data Vista General
run application as another user Domain\UserName VB Script
Install application as standard user Vista security
Getting An Application to run on a standard user account Vista account administration
Block user from installing application Vista account administration


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46