Skip to content

Problem running .NET application

Jonatan

Asked Aug 20, 2006, 6:47 AM EDT8 answers
Share
LinkedInX
This is making me go nuts!  I worked for a long long time on this project, but on computer with .NET 2.0 it refuses to run, and now it doesn't even run if 2.0 is uninstalled and 1.1 is installed.

The only computer I can get it to work on is my old computer that it was developed on!

On other computer it has the following error Class not registered!, Object reference not set to an instance of an object!

The person I am developing the project for could run it until he uninstalled his .NET runtime and installed the new one!  After that it refuses to run!

This really pisses me off as I heard .NET was backwards compatible, I guess not.    If someone could help me I'd be more than happy!    It's close to a crisis here :(

Thank You,
Jonatan

8 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Mahesh Chand
    0
    Both .NET 2.0 and .NET 1.1 applications runs fine on same machine. It depends on what exactly are you running. What kind of application is it? What are major components in the application - ASP.NET, Windows Forms, ADO.NET, COM Interop or any thing else?
    0
  • 0
    I use msdata ( for connection with excel and word ) MsChart, AxInterop and Interop, I have a made a GuiToKernel bridge that connects my C# application to C as some of the most time critical code is done there.   It's my first major C# project and I was acctually worried I would get problems like these and hesitated a long time between this and MFC.

    Could it be some of the components I am using causes this problems?

    Jonatan
    0
  • Mahesh Chand
    0
    It's possible that one of the components creating problems. You should have proper error and exception handling so you would know what part of the code actually creating the problem.
    0
  • 0

    Yes, as far as I know I have set it up propely, the problem it works perfectly fine on my development machine with no exceptions or warning what so ever.   Is there a program such as dependency walker for C++ for fidning what causes an error while trying to run a C# program?

    0
  • Mahesh Chand
    0
    Ofcourse every thing works fine on our DEV machines. We've got the magic touch ;-). We usually don't know how many things are installed on our DEV machine.

    Did your application ever work on any non-DEV machine? If not, it's possible you are missing one of the components. I think better would be to get a fresh machine and install all the components you need one by one.
    0
  • 0
    This is exactly what I am trying to explain, it worked on the buyers machine before, but after they re-installed the newest .NET runtime it doesn't work anymore!   ( so the only thing they did was uninstall old .NET and re-install the latest version from windows update )

    After this the program stopped working, there was no other files deleted or changed!!!

    This is why I can only think of incompability between .NET version.
    0
  • Mahesh Chand
    0
    Well .. first of all, a production machine can not have .NET 1.1 applications running and somebody comes, uninstall 1.1 and install .NET 2.0. This is just not acceptable. If they do, it would be just difficult to figure out what went wrong.

    If I was you, I will try to remove all versions of .NET and application from production machine and then install .NET 1.1 and then install the application to see if it works.
    0
  • 0

    Yes, I also found it unacceptable this is why I am upset.   I did exactly as suggested and uninstalled all .NET versions and a re-install.   The application doesn't work.

    The only thing I can imagine being wrong is incompability between .NET version.   I am about to give up :(   I don't think I'll write a .NET application again.

    0