Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Getting a .NET application to work on Vista

Getting a .NET application to work on Vista

Scheduled Pinned Locked Moved C#
csharphelpquestiondotnet
8 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mohsen Saad
    wrote on last edited by
    #1

    I have tried my application on Vista. it installs without any problem but whenever I try to run it I get this error message "APD.exe has stopped working. A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available" My application is developed in C# and .NET framework 2.0 . it works fine on Windows XP so what is the solution to this problem?

    G V P S 4 Replies Last reply
    0
    • M Mohsen Saad

      I have tried my application on Vista. it installs without any problem but whenever I try to run it I get this error message "APD.exe has stopped working. A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available" My application is developed in C# and .NET framework 2.0 . it works fine on Windows XP so what is the solution to this problem?

      G Offline
      G Offline
      GuyThiebaut
      wrote on last edited by
      #2

      In your solution did you set it to allow later versions of .Net? As far as I understand Vista comes with .Net 3 and if you restrict your application (there is a little tick box in the setup project) to .Net 2 your application will not work.

      You always pass failure on the way to success.
      P 1 Reply Last reply
      0
      • G GuyThiebaut

        In your solution did you set it to allow later versions of .Net? As far as I understand Vista comes with .Net 3 and if you restrict your application (there is a little tick box in the setup project) to .Net 2 your application will not work.

        You always pass failure on the way to success.
        P Offline
        P Offline
        Pete OHanlon
        wrote on last edited by
        #3

        .NET 3 is an adjunct to .NET 2. In other words, Vista comes with 2 as well as 3 because 3 cannot exist without 2. I suspect the issue is more to do with the application violating things that Vista has locked down. It's possibly a file access issue.

        Deja View - the feeling that you've seen this post before.

        My blog | My articles

        G 1 Reply Last reply
        0
        • M Mohsen Saad

          I have tried my application on Vista. it installs without any problem but whenever I try to run it I get this error message "APD.exe has stopped working. A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available" My application is developed in C# and .NET framework 2.0 . it works fine on Windows XP so what is the solution to this problem?

          V Offline
          V Offline
          Vikram A Punathambekar
          wrote on last edited by
          #4

          Have you tried debugging your app under Vista? You have given very little information; I don't see how this can help us help you.

          Cheers, Vikram.


          Zeppelin's law: In any Soapbox discussion involving Stan Shannon, the probability of the term "leftist" or "Marxist" appearing approaches 1 monotonically. Harris' addendum: I think you meant "monotonously". Martin's second addendum: Jeffersonian... I think that should at least get a mention.

          1 Reply Last reply
          0
          • M Mohsen Saad

            I have tried my application on Vista. it installs without any problem but whenever I try to run it I get this error message "APD.exe has stopped working. A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available" My application is developed in C# and .NET framework 2.0 . it works fine on Windows XP so what is the solution to this problem?

            P Offline
            P Offline
            Pete OHanlon
            wrote on last edited by
            #5

            Mohsen Saad wrote:

            My application is developed in C# and .NET framework 2.0 . it works fine on Windows XP so what is the solution to this problem?

            Debug the application. That's the solution. Also, you might want to take a look at this[^].

            Deja View - the feeling that you've seen this post before.

            My blog | My articles

            1 Reply Last reply
            0
            • M Mohsen Saad

              I have tried my application on Vista. it installs without any problem but whenever I try to run it I get this error message "APD.exe has stopped working. A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available" My application is developed in C# and .NET framework 2.0 . it works fine on Windows XP so what is the solution to this problem?

              S Offline
              S Offline
              Scott Dorman
              wrote on last edited by
              #6

              What does the app do when it starts up? If you're trying to access certain parts of the registry, event logs, or certain disk folders you can see this type of behavior. You will need to run the application under a debugger to see what is happening.

              Scott. —In just two days, tomorrow will be yesterday. —Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai


              [Forum Guidelines] [Articles] [Blog]

              1 Reply Last reply
              0
              • P Pete OHanlon

                .NET 3 is an adjunct to .NET 2. In other words, Vista comes with 2 as well as 3 because 3 cannot exist without 2. I suspect the issue is more to do with the application violating things that Vista has locked down. It's possibly a file access issue.

                Deja View - the feeling that you've seen this post before.

                My blog | My articles

                G Offline
                G Offline
                GuyThiebaut
                wrote on last edited by
                #7

                What I was referring to is when you create a setup project, within the Launch Condition Properties there is a property called AllowLaterVersions. If this is set to false then if the application is compiled in a .Net 2 environment the installation will not work on a machine with .Net 3 present. This was an issue I experienced with a user having 3 on their machine - I changed this setting and it solved the issue. It's kinda crazy really - why would you not want an application compiled in .Net 2 to to run in 3?

                You always pass failure on the way to success.

                modified on Wednesday, March 26, 2008 11:03 AM

                D 1 Reply Last reply
                0
                • G GuyThiebaut

                  What I was referring to is when you create a setup project, within the Launch Condition Properties there is a property called AllowLaterVersions. If this is set to false then if the application is compiled in a .Net 2 environment the installation will not work on a machine with .Net 3 present. This was an issue I experienced with a user having 3 on their machine - I changed this setting and it solved the issue. It's kinda crazy really - why would you not want an application compiled in .Net 2 to to run in 3?

                  You always pass failure on the way to success.

                  modified on Wednesday, March 26, 2008 11:03 AM

                  D Offline
                  D Offline
                  Dan Neely
                  wrote on last edited by
                  #8

                  This gets into the cluster cthulu of .net framework versioning. Going from 1 to 1.1 to 2.0 could cause problems if your application's functionality was dependent on a bug in the old version (either explictly :wtf:, or because your workaround for it didn't check for the original bug being fixed :doh:). Now we fastward a few years and for 3.0 and 3.5 the meaning changes completely from modification of old stuff to addition of new stuff only. :doh: :doh: :doh: :doh:

                  Otherwise [Microsoft is] toast in the long term no matter how much money they've got. They would be already if the Linux community didn't have it's head so firmly up it's own command line buffer that it looks like taking 15 years to find the desktop. -- Matthew Faithfull

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups