Access network folder and files from .NET Core application in IIS

Juan A. Reyes Paulino 20 Reputation points
2024-05-07T17:35:39.8066667+00:00

Greetings, I have an application deployed in IIS with .NET Core 7 and SQL Server, I want to access a network path, write and read files within a folder in the path (\path\folder)

What steps should I follow to achieve this?

Developer technologies | ASP.NET | ASP.NET Core
SQL Server | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 77,766 Reputation points Volunteer Moderator
    2024-05-07T20:42:31.8533333+00:00

    You use the System.IO namespace

    https://learn.microsoft.com/en-us/dotnet/api/system.io?view=net-8.0

    to access the file share the app pool will need to be a domain account with permissions to the share.

    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.