I had this issue as well, but slightly differently I had this method in a .asmx file and so ran across the “static” issue, but in a different way.
If you have a method as part of your Page class, it must be static
.
If you’ve put a method in an .asmx file to use across several pages, it must not be static
.