the error says the you have the code:
myObject.GetFileName(...)
where myObject is a string. or
"some string".GetFileName(...)
strings don't have this method. you could have created an string extension method name GetFileName, but it was not found.