473,387 Members | 1,481 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Program execution question - need guidance

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
1 1182
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Bruce W...1 | last post by:
A scripting newbie question... I'm trying to understand some code I found. This script conducts a poll and writes the results to a text file. The following statement is part of the source file. ...
13
by: takashi | last post by:
Hi, I have a question. I am learning about how to use c++ language. I have attempted to make my own programs, using the knowledge that I have, but sometimes when I get stuck on writing a code, it...
1
by: Eric M | last post by:
Hi, I am new to c++ programming with Windows and I need to know if its possible to close applications or delay their execution from a seperate program. Ideally, I would want to pause the...
4
by: Casual Reader | last post by:
Hi, I have a C# program that in principle should only use a constant amount of memory to execute (with periodic garbage collection) and in fact does so when executed in Mono under either Windows...
3
by: Craig Brunton | last post by:
Dear all, I am new to visual basic.NET and have recently finished my first program that works with our design package to create drawings. The problem I now have is that I have installed the...
7
by: Buck Rogers | last post by:
Hi all! Newbie here. Below is an example from Teach Yourself C in 21 Days. My apologies if it is a bit long. What I don't understand is how the "get_data" function can call the...
7
by: Peter Nurse | last post by:
Two (almost) identical SQL Server databases (DB1 backed up and restored to DB2 yesterday). DB2.dbo.GetSchPaymentsTD took 1.5 seconds (!) to execute DB1.dbo.GetSchPaymentsTD took less than a...
3
by: Dean Slindee | last post by:
Need to write a standalone application that processes data once per day. Looking for the application program types available that would satisfy these requirements: Requirements: 1. Unattended...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.