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?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,328 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,167 questions
{count} votes

1 answer

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

    You use the System.IO namespace

    https://video2.skills-academy.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