How can I tell if an App is ASP.NET 2.0 or ASP.NET 1.1. This is in C#
I don't have the source code and I don't have access to IIS Manager. But I can ftp and check the ASPX files. Any Ideas?
How can I tell if an App is ASP.NET 2.0 or ASP.NET 1.1. This is in C#
I don't have the source code and I don't have access to IIS Manager. But I can ftp and check the ASPX files. Any Ideas?
if you can get an error message to show it will tell you at the bottom of the page what version of the framework is in use.
or, if you could upload a file, you could upload an aspx page containing code to output the framework version:
<%@ Page Language="C#" EnableSessionState="False" EnableViewState="False" Trace="False" Debug="False" %>
<script language="C#" runat="server">
protected void Page_Load(object s, EventArgs e)
{
Response.Write(System.Environment.Version);
}
</script>
this was just typed in, there could be syntax or other code errors.
In 2.0, there was a change in the @Page directive to add the CodeFile attribute.
So, if you find that attribute, it's 2.0.
Or you can just deliberately upload a test.aspx to cause an exception to be thrown; the default ASP.NET yellow screen of death will show the runtime version.
:-D
If it tries to load System.dll (or any core type) you will be able to see which version of the core components it depends on.
You can do this through your browser - just look in the response headers for "X-AspNet-Version"
In FireFox you can do this with the web developer toolbar... -> Information -> View Response Headers.
You can also check Response Headers with Fiddler
Or just use the ViewHtml website here to view Response Headers