By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,330 Members | 1,371 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,330 IT Pros & Developers. It's quick & easy.

Program execution question - need guidance

P: n/a
I have written a Windows Forms application in C# that is designed to
be run from a network share. The person who normally uses it will
access the program from her workstation. I have granted trust on her
workstation to the application and she can execute and use the
application just fine on her workstation.

There is another workstation elsewhere in the building that she needs
to be able to access the application from. I have granted trust on
that workstation to the application. When attempting to execute the
application, it seems to start up because I can see the executable
listed in Task Manager, but the main form never appears. In fact,
during startup, I can see the app briefly appear in the task bar but
then it immediately disappears, as if the main form is being shown and
then closed instantly. We never see anything appear on the screen,
however.

I have exception handling throughout the program as well as a top
level handler to catch any exceptions that are not handled elsewhere.
No exceptions seem to be thrown.

The app is basically a database app which displays employee
information and allows certain data to be changed. The SQL server it
attaches to is setup using Windows Authentication and the person who
normally runs the app has the necessary permissions on the database.

If anyone could suggest some steps I might take to get the app running
or at least to figure out what the problem is, I would be grateful.

Thanks,

Chris

Jan 29 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Well, if event logs do not show anything strange, I'd add some tracing in
the code to find out where in the code the app stops. Another thing is if
you copy the app on the local drive, does it work?
"Chris Dunaway" <du******@gmail.comha scritto nel messaggio
news:11**********************@h3g2000cwc.googlegro ups.com...
>I have written a Windows Forms application in C# that is designed to
be run from a network share. The person who normally uses it will
access the program from her workstation. I have granted trust on her
workstation to the application and she can execute and use the
application just fine on her workstation.

There is another workstation elsewhere in the building that she needs
to be able to access the application from. I have granted trust on
that workstation to the application. When attempting to execute the
application, it seems to start up because I can see the executable
listed in Task Manager, but the main form never appears. In fact,
during startup, I can see the app briefly appear in the task bar but
then it immediately disappears, as if the main form is being shown and
then closed instantly. We never see anything appear on the screen,
however.

I have exception handling throughout the program as well as a top
level handler to catch any exceptions that are not handled elsewhere.
No exceptions seem to be thrown.

The app is basically a database app which displays employee
information and allows certain data to be changed. The SQL server it
attaches to is setup using Windows Authentication and the person who
normally runs the app has the necessary permissions on the database.

If anyone could suggest some steps I might take to get the app running
or at least to figure out what the problem is, I would be grateful.

Thanks,

Chris

Jan 29 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.