#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    36
    Rep Power
    12

    Compiling C# so others can use it.


    I've made a couple little apps so far.

    The problem is that these apps can not run on a non-development computer ( one that doesn't have VS C# installed ).

    I've installed the .NET framework on an XP Pro system and the .exe file that is generated from pressing F5 will not run.

    The Apps will only run on the computer I developed them on.

    Are there any tutorials someone can point me out to? or any insight on this?
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    3
    Rep Power
    0
    Trying including a Setup Wizard, which will automatically include all the referrenced dll's and others needed for execution on other machines.
    File->Add Project->New Project->Setup and Deployment projects

    Also verify that you have the same .net framework version installed on both (1.1 or 1.0)

    Regards,
    John
  4. #3
  5. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Location
    Soton, UK
    Posts
    43
    Rep Power
    12
    I suggest U ensure you are producing "release" builds as opposed to "debug" builds when preparing to run on another rig.

    It may be that you've used namespaces which are not part of the framework, and which do not reside in your compiled output directory.

    And then pretty much as John said :
    Make an installer and use digital signing.
    Ensure the correct framework is installed on the rig your trying to run it on.

IMN logo majestic logo threadwatch logo seochat tools logo