We are not able to access a file in the web api

Pavan Pathak 0 Reputation points
2024-01-12T11:33:20.19+00:00

We have a csv file that is in the project directory. After publishing it is showing already in azure and we can access it through the developer tools. But in the api we are getting file not found error we tried putting the full path hard coded also but still same. Any help is appreciated.

ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
343 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ken Kam Hung, Lin 91 Reputation points
    2024-01-16T11:50:48.45+00:00

    Hi Pavan,

    Do you mind share you code so that we could find out where goes wrong in your code.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.