dotnet / dotnet/aspnetcore

Migrating .NET8 app to NET10 getting sysrem folders fail

Open
#65,241 0 comments 0 reactions 0 assignees View on GitHub
area-networking
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 10h
Merged PRs (30d)
281

Description

After migration from .Net8 to Net10 of a web app hosted on iis 10 getting paths for special folders does not work correctly. Instead of using iis pool user profile it uses system profile from windows\system32 folder. LoadUserProfiles is set to true on iis pool.

When getting the path instead of using Environment.Special.Folder.ApplicationData i used Environment.SpecialFolder.UserProfile and concat AppData\Roaming myself and was able to mitigate the issue.

Actual behaviour: using ApplicationData returs path in systemprofile.

Expected behaviour: AplicationData should return path in the iis app polol identity user profile not in system32 folder

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.