thanks for the lecture smithers
Yes, I was a bit upset, maybe I should not have open the thread in the
first
pace at all.
I'm not blaiming anyone of you guys doing your best to help us with
various
.Net problems, you're all doing a great job.
and your're absolutely right, computer's are digital devices, always
has
been always will be, and they can not by them self decide to skip
anything
without the program author's will.
sorry for giving you that impression, English is not my native
language.
I was very positive towards C# after finishing the training, and now
with
a
little distance to the result of the first attempt of coding I'm
surprised
that so much error handling is part of the code without me having to
code
it.
That's how I should have expressed myself if I did my research
correctly
before coming here. I'll do my homework better in the future.
Maybe there is one thing you could help me with.?
I'm mostly doing applications used by many over a local network,
meaning
that the app.exe file is stored on a server share.
I tried to find the app.exe file after the application was installed
using
the built-in application package, I could not find it, yet it's there
!!!!!
I must have missed something from the training or they never told me
the
secret here, can someone bring a light to this.
Can I make a setup program within the VS2005 not containing the app.exe
file
but only the required resources to run the app.exe file and then place
the
app.exe file on a server share and a shortcut on the desktop?
Or, am I totally derailed here.....?
Kjell
:
Hello Kjell,
You made the following statements:
<< the call to open the ADO connection to a locally stored Access DB
was
kind of "skipped" >>
<< it just skips certain parts of the code >>
<< very much in same condition as my pc (except for VS2005) and equal
to
the
pc's my customer is having. >>
You would benefit from changing the way you think about computers and
how
they work. Computers are dignital devices - not analog devices. So
nothing
in a computer "kind of" happens. It either happens or it does not
happen.
That is the truth or at least should be the underlying assumption
about
all
of your troubleshooting efforts - even if there is a *perception* that
something "kind of" happens.
Computers do not "just skips certain parts of the code": Your working
assumption should be that the only reason code would fail to execute
is
if
there is some specific and knowable reason.
No two computers are identical - period. You write that your daughters
PC
is
"in very much the same condition". Remember that means it is NOT in
fact
in
the *same* condition. Your customers PCs are NOT equal either - not to
each
other, not to your daughters, and not to yours. The only time they
would
be
"practically identical" is immediately after reimaging from a standard
image.
So rather than becoming upset because your assumptions and
expectations
are
obviously invalid, you would benefit from changing your assumptions -
rather
than blaming the computers, .NET, or inventing wild theories involving
possible analog aspects of these digital devices.
Fianlly, regarding
<< without error messages how am i suppose to know whats wrong? >>
Your question practically answers itself. You aren't supposed to know
what's
wrong if no messages are appearing. So if you aren't getting error
messages,
then stick in some messages of your own. There are many ways to do
this:
Show a message box at critical points in the code- and have the
message
box
display the current value of important variables; write to a text
file -
include line numbers, value of critical variables, sequence, return
value
of
called methods, implement some Trace listeners, etc.
But before you do that, check the obvious stuff. How does your
application
connect to the database. Surely that is going to be an obvious
difference
between your computer and those at the customer site. What does your
connection string look like - how is it set... hard-coded, or from
.Settings
or App.config.
"change how you think - and change your [debugging] life"
-HTH
-"Smithers"
fair enough.
I took my daughter's PC, also a WinXP sp2 pro, bla bla very much in
same
condition as my pc (except for VS2005) and equal to the pc's my
customer
is
having.
and this is making me more confuse, it works on her machine.
What is most disturbing is that there are no error messages, it just
skips
certain parts of the code.
It costing me a half day to make one test on customer's pc, and this
is
the
best part;
I've built all pc's for that customer, built the whole domain for
him,
and
I
have built my own domain in very much the same way.
without error messages how am i suppose to know whats wrong?
Kjell
:
It can happen very easily if the only system you tested it on is
your
development system. Get Visrtual PC 2007, make yourself a XP SP2
virtual
machine (with updates if you like) do whatever deployment you're
using
and
see if it works.
--
Phil Wilson
[MVP Windows Installer]
Hello
I've taken a four days training in C#, very good training,
experienced
teacher and all that, very positive.
Went home spent a week making my first application, slightly more
than
the
usual "Hello world".
Took it with me to my best customer, and beleive it or not....It
will
not
work !!!!
How can that happen!!!
It works fine on my XP-pro at home and not at all on my customers
XP-pro
with all updates, with Domain User account, no matter how I try,
it
refuses
to execute certain sections of the code, everything trivial like
showing a
form (empty of course) no problem, but everything interesting
like
open
the
ADO connection to the databas, get the recordset filled and fill
the
List
on
the empty form NOPE, can't do that due to some .Net Framework
security
issues.
So, How can I make 200 client machines accept my C# code without
manually
configuring them one by one?
Kjell