I wouldn't use what you are doing with fileextensions - there are
methods in .NET to do that
what if you had a file called "my.filename.ext" which is quite reasonable ...
and common ... people tend to rename things by adding an extension to them,
e.g. global.aspx -> global.aspx.old