0

I wrote a c# windows application and I want to run it on other computer without any installation.

I setup the netCFSetup v35 but when I run my application this error was apeare :

the application failed to init....

can anyone help me please?...

5
  • 4
    Why are you installing the Compact Framework? Commented May 14, 2012 at 9:57
  • Just create a console app or windows app in VS.NET that generates a .exe file that can be executed on other machines without any installation. The only thing the other machine would need to have is a .NET Framework installed. Commented May 14, 2012 at 10:00
  • because of its size(about 50MB) Commented May 14, 2012 at 10:05
  • 1
    If you're targeting the full .NET 3.5 Framework and using features from it, using the Compact Framework is not even an option. You must use the full framework, or don't use features from the full framework and target the Compact Edition, in which there will be some compromises in the features you can use. Commented May 14, 2012 at 10:41
  • I have a feeling that @DavidAnderson is correct. Is there any reason as to why you've used version 3.5 as opposed to 4? Commented May 14, 2012 at 12:27

1 Answer 1

2

I think you are installing wrong framework for you application.

Since its a windows application i suggest your install .Net Framework of Desktop. The one you are installing is of Compact Framework (CF in filename netCFSetup v35) which was used for Windows Mobile 6.5 or earlier.

If you created your app in .Net 3.5 version. install this version

http://www.microsoft.com/en-us/download/details.aspx?id=21

To know in which version of .Net Framework your app is written in, go to properties section of project. There you will get your version number.

Sign up to request clarification or add additional context in comments.

10 Comments

but .net framework is too Heavy,i need smallest version but .net framework is about 230MB
In your development system (where Visual Studio is installed), search for file name dotNetFx35setup.exe. Its a 2.73 MB file. Its your offline system. This is the same file i asked you to download from the link provided in my answer.
please... anybody can help!!?? i need a small size of .net framework v35... is there any version?
when i install that ,it needs to download about 54MB to complete installation,is there any offline setup?
Which version of Visual Studio are you using?
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.