Click here to Skip to main content
15,868,164 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
I have and exe program which is build on .net framework v1.1.4322 (I figured out the version by checking on manifest in ildsam). I need to move this app to the server which has .net v4. My application does not run.

What I have tried:

I changed config file and added the line of settings in config file.
XML
<startup>
<supportedRuntime version="v4">
</startup>
Posted
Updated 26-Jan-17 23:32pm
v2
Comments
Richard Deeming 25-Jan-17 16:32pm    
The .NET Framework is highly backwards-compatible. For the most part, an application compiled against one version should work on any future version.
Version Compatibility in the .NET Framework[^]

NB: The configuration should be: <supportedRuntime version="v4.0" />

If your application doesn't work, then you'll need to give us some details. Do you get an exception? If so, what is the code that it's thrown from?

Have you tried re-compiling the application against .NET 4.0 or 4.5?
[no name] 25-Jan-17 18:07pm    
I don't have source code to recompile the application. It doesn't throw any exception. I looked into event viewer and report.wer file it says stopped working after loading all dlls. Nothing in details.
[no name] 27-Jan-17 10:55am    
Thank you for helping. I wish I could have figured out the problem.

1 solution

Quote:
I don't have source code to recompile the application. It doesn't throw any exception. I looked into event viewer and report.wer file it says stopped working after loading all dlls. Nothing in details.

If you don't have the source then there is nothing we can practically do for you: it could be anything from missing configuration files, to hard-coded connection strings - we can;t tell without decompiling the assembly. ANd that may well be obfuscated to prevent it being understandable.
Go back to whoever has the source of the application, and see if they can help - it's by far the quickest way to sort this out.
 
Share this answer
 
Comments
[no name] 27-Jan-17 10:42am    
Is it necessary to have framework 1 to run the app?
OriginalGriff 27-Jan-17 10:47am    
No - they are (mostly) backward compatible. See here:
https://msdn.microsoft.com/en-us/library/ff602939(v=vs.110).aspx
But if it doesn't run, you will probably need the source code to get it working.
Have you tried installing a clean OS (XP SP1 included .NET 1.0, Vista and higher already have 2.0 or higher .NET version) and seeing if it works on that? If it doesn't, you absolutely need the source to fix it.
[no name] 27-Jan-17 10:55am    
Thank you guys for all the help

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900