Quantcast
Channel: Issues with Long Paths using .NET 4.6.2 on a web application - Stack Overflow
Viewing all articles
Browse latest Browse all 6

Issues with Long Paths using .NET 4.6.2 on a web application

$
0
0

I am building an ASP.NET web application that needs to work with long paths. I have it targeting .NET 4.6.2 and everything was perfect since 4.6.2 has long paths turned on by default (Source), until the Windows 10 creators (RS2) update.

Suddenly System.IO was returning max paths exceptions. I did some research and found This post. It seems that post Windows 10 creators (RS2) update, in order for long paths to work it is a requirement to have an app.mainfest with

<application xmlns="urn:schemas-microsoft-com:asm.v3"><windowsSettings><longPathAware xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">true</longPathAware></windowsSettings></application>

I have verified that adding the app.manifest modification to a console app brings the long path functionality back. The only issue is that this is a web application. I am unable to figure out how to add the equivelant of an app.manifest to a web application.


Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles





Latest Images