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. .NET (Core and Framework)
  4. Difference between .net2.0 redist and IDE?

Difference between .net2.0 redist and IDE?

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpvisual-studiosecurityhelpquestion
2 Posts 2 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.
  • S Offline
    S Offline
    Soundman32 2
    wrote on last edited by
    #1

    I have written a program that runs fine when launched from a PC with VS2005 installed, but crashes when launched on a PC with just the redistributable installed. The message is the standard dialog box '..has encountered a problem and needs to close'. Please tell microsoft about this problem. There is no exception shown. I can't install the compiler to track it down cause then the problem will go away. It's not a security setting because the tester fixed the problem by installed VS2005 without changing any settings. Any ideas?

    E 1 Reply Last reply
    0
    • S Soundman32 2

      I have written a program that runs fine when launched from a PC with VS2005 installed, but crashes when launched on a PC with just the redistributable installed. The message is the standard dialog box '..has encountered a problem and needs to close'. Please tell microsoft about this problem. There is no exception shown. I can't install the compiler to track it down cause then the problem will go away. It's not a security setting because the tester fixed the problem by installed VS2005 without changing any settings. Any ideas?

      E Offline
      E Offline
      Ed Poore
      wrote on last edited by
      #2

      Neil_Scales wrote:

      standard dialog box '..has encountered a problem and needs to close'. Please tell microsoft about this problem.

      You should be able to click on Show Error Data or a button that's labelled something like that, if I remember correctly you click several links through different dialog boxes and you will receive a text box which has the exception details in it, in the middle of details of all the loaded dlls and version information.

      Neil_Scales wrote:

      It's not a security setting because the tester fixed the problem by installed VS2005 without changing any settings.

      Are you referencing a DLL that might only be used in VS.NET (the only example I can think of at the moment is envdte.dll which is the interface libarary for writing VS.NET add-ins (you probably won't be using that :) but it was the only example I could think of). Best bet is to wrap your Main routine inside a try...catch block and dump any error message out to the screen or a file.  E.g.

      static void Main(string[] args)
      {
          try
          {
             // Do normal application stuff here
          }
          catch (Exception exception)
          {
             // Any of these options
             Console.WriteLine(exception.ToString());
             MessageBox.Show(exception.ToString());
             System.IO.File.WriteAllText(@"errorlog.txt", exception.ToString());
          }
      }


      You know you're a Land Rover owner when the best route from point A to point B is through the mud. Ed

      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