TROUBLE DEPLOYING SIMPLE C# APP TO WINDOWS 2000 Machine

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I am trying to deploy a C# application to a Windows 2000 machine. When I try
to run the app after the install i get a runtime error. the setup works on
both
XP and windows 2003 server machines.

Any Ideas

Thanks for your help
 
I'm not promising to help, but: what specific runtime error? What version of
the runtime? (1.1, 2, ...?) What deployment method? (msi, ClickOnce, ... ?)

Marc
 
Hi,


My bet is taht you do not have the framework installed



cheers,
 
runtime version 1.1; deployment project vs.net
Just in time debugging error.

Test on a XP machine without runtime, installed runtime 1.1 worked without
issue.

Thanks
 
First (as Ignacio pointed out) check that the relevant CLR is installed
correctly.

To me this sounds like either a plain bug in the code (perhaps using a Win32
API that doesn't exist in Win2K), or a missing dependency (or similar); when
you say "simple C# app", have you tried deploying an application like the
following?

public class MainClass {
static void Main(string[] args) {
System.Windows.Forms.MessageBox.Show("Hello world");
}
}

If the above deploys and executes, then I'm afraid there isn't enough
information in your post to guess at what is happening. Assuming the JIT-box
doesn't already provide it, you could try putting some exception handling
into your main method, and display the actual exception details for
debugging? My guess: a missing (reference) dependency.

Marc
 
thanks Marc,

I caught the exception, You need to have MDAC version 2.6 or greater to use
the SqlClient namespace. That was my problem.

I Appreciate your help,

Rich
Marc Gravell said:
First (as Ignacio pointed out) check that the relevant CLR is installed
correctly.

To me this sounds like either a plain bug in the code (perhaps using a Win32
API that doesn't exist in Win2K), or a missing dependency (or similar); when
you say "simple C# app", have you tried deploying an application like the
following?

public class MainClass {
static void Main(string[] args) {
System.Windows.Forms.MessageBox.Show("Hello world");
}
}

If the above deploys and executes, then I'm afraid there isn't enough
information in your post to guess at what is happening. Assuming the JIT-box
doesn't already provide it, you could try putting some exception handling
into your main method, and display the actual exception details for
debugging? My guess: a missing (reference) dependency.

Marc

Richard Mintz said:
runtime version 1.1; deployment project vs.net
Just in time debugging error.

Test on a XP machine without runtime, installed runtime 1.1 worked without
issue.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top