I am trying to set the application page as default.
So I have added an application page in
layouts folder using visual studio.
But when I run the code in feature activation I am trying to get the file in layouts folder
Spfile form = web.GetFile("_layouts/filename");
But if I check
It fails the condition.