How can i find about a dot net applications prerequisite? lately i moved an application which works fine on my system to another system and upon executing it, the application crashed.I tried installing dot-net frameworks 4, 3.5sp1 and 3.5 ( couldn't install 3 because it was complaining about a newer version being installed ).But still no luck. So how can i know about it in first place?
-
When it crashed, what was the error message?jrummell– jrummell2012-08-08 13:45:26 +00:00Commented Aug 8, 2012 at 13:45
-
How are you executing it, through debug on VS or as an IIS Application?Grinn– Grinn2012-08-08 13:46:40 +00:00Commented Aug 8, 2012 at 13:46
-
@jrummell: "MyApplication" has encountered a problem and needs to close.Hossein– Hossein2012-08-08 13:50:43 +00:00Commented Aug 8, 2012 at 13:50
-
@Grinn: it was a debug version of my project,and by double clicking on its icon , outside VS ( on a different system) i tried to execute itHossein– Hossein2012-08-08 13:51:52 +00:00Commented Aug 8, 2012 at 13:51
-
1Oh, it's a Windows Forms (or Console) app. I assume this is an app to which you have source-code access. I'd go into VS > Solution Explorer > References > view Properties on System, and look at the Version there. Then, check on the other machine to ensure that .NET version is installed (msdn.microsoft.com/en-us/kb/kbarticle.aspx?id=318785). Here's a reference to what the version #'s mean: en.wikipedia.org/wiki/List_of_.NET_Framework_versions . Let me know if that works for you and I'll post it as an answer to get credit! :)Grinn– Grinn2012-08-08 13:57:37 +00:00Commented Aug 8, 2012 at 13:57
1 Answer
You can open ildasm.exe, drag and drop the assembly onto the IL DASM window. Then double-click the MANIFEST node in the window and you will see its referenced assemblies and their version information.
EDIT
If you don't have ildasm.exe, another good free option is dotPeek from JetBrains. You can drop your assembly onto it's assembly explorer, right-click it and select properties. You will see the .net framework version in the properties window.
And I have noticed that if you open a .net assembly with a text editor and do a "find" for .NETFramework you can pretty reliably find the framework version in the file.