How to know if asp.net 3.5 sp1 and asp.net mvc are installed in the server?
asp.net, asp.net-mvc, installation, production-environment
Solution
Not sure but try something like this:
bool mvcInstalled = true;
try
{
System.Reflection.Assembly.ReflectionOnlyLoad(
"System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35");
}
catch()
{
mvcInstalled = false;
}
UPDATED:
To know if .NET 3.5 SP1 is installed check for System.Web.Abstractions assembly
Problem
When I use: ``` System.Environment.Version ``` The result is "2.0.50727.3053" I know that 3.5 is compatible and in IIS is identified as 2.0, blah blah... I would like to know the exact .net version installed and if another resources are installed, like ASP.NET MVC, etc. The problem is that the website is installed in a shared hosting, so I can ask about that resouces to tech support, but if I know programatically, its far better. Regards