Assistant API retrieval, File retrieval

I’ve been working on the assistant api retrieval using dotnet. I’ve created the code template based on the provided github. In the assistant creation on the playground, I passed the file directly to the file search tool. When I tested it in playgroud, I’m getting the response what I want but when I run the code, I’m getting the response that the assistant doesn’t have access to the file or upload the file.