Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#Console
I have created some windows console application using C# code. After buidling the application.
 
.exe file runs successfully on machine where application is built, the same .exe file i am trying to run on some other machine it is throwing unhandled exception.
 
Please can any one help me to resolve this issue.
 
Error: Unable to run some function present in dll which is referring with this exe.
 
P.S: i cant post error message here as it is IP voilation.
Posted 16-Nov-12 0:07am
Edited 18-Nov-12 22:20pm
v3
Comments
Timberbird at 16-Nov-12 6:10am
   
Add more details about the exception, machine configuration, .NET version, config files used etc
Abhishek Pant at 16-Nov-12 6:18am
   
you need to install .net framework 4.5 if it was built through by visual studio.
ryanb31 at 16-Nov-12 10:07am
   
What's the error?
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

There're two things possible:
  1. .NET is installed on the other machine, but a too old version.
    You can try to install the latest version of .NET on the other machine, or set the Target Framework in your project file to a older version.
  2. .NET isn't installed on the other machine. You need to install the .NET Framework on the other machine.
If your other machine runs Windows 7, the .NET Framework 4.0 is installed by default, on a Windows 2008 R2 machine, the .NET 3.5 is installed by default and on a Vista machine and a Windows 2008 machine, the .NET Framework 3.0 is installed by default.
  Permalink  
Comments
Suraj S Koneri at 19-Nov-12 4:19am
   
Error is not related to .NET framework versions, anyways thanks for answer
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

I am willing to bet this is C# not C, and that you need to install .NET on the target machine. Please tag your questions correctly
  Permalink  
Comments
Suraj S Koneri at 19-Nov-12 4:19am
   
Error is not related to .NET framework versions, anyways thanks for answer
Abhishek Pant at 19-Nov-12 4:24am
   
then will you tell us whats the error!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Dnyaneshwar@Pune 1,300
1 Sergey Alexandrovich Kryukov 670
2 OriginalGriff 319
3 Tadit Dash 310
4 ravikhoda 300
0 Sergey Alexandrovich Kryukov 11,224
1 OriginalGriff 6,897
2 Peter Leow 4,795
3 Abhinav S 3,838
4 Maciej Los 3,575


Advertise | Privacy | Mobile
Web01 | 2.8.140421.2 | Last Updated 19 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid