Thursday, November 11, 2004

Can't Find get_asp_ver.aspx?

After adding an automatically error reporting feature to the global.asax file in my project, I started getting emails when I opened the project in VisualStudio.NET 2003 stating that the get_asp_ver.aspx file could not be found. This error only occurred on this one project, but none-the-less, it is apparently a problem others have had.

Microsoft suggests making a bogus get_asp_ver.aspx file, but many use this code in their global.asax.vb file which makes more sense to me than having a file in your site that does nothing:
Sub Application_BeginRequest(ByVal sender As Object, _

ByVal e As EventArgs)
Dim url As String = CStr(Request.ServerVariables("URL"))
If url.ToLower().IndexOf("get_aspx_ver.aspx") >= 0 Then
Response.End()
End If
End Sub

No comments: