When I access the file from the UNC file path from asp.net, I find the following problem. Login failed: unknown username or invalid password. Help me.
The problem may not be with the UNC nature of the path you are trying to access, but with security credentials. If, for example, you run the asp.net application under the System account, you will not be able to access network resources, because the system is a local account (and not a domain account).
I suggest you check inetmgr under which your application pool works (under the Identity tab). Try using a domain account that can access this resource.
The account "responsible" when issuing a request to access the file simply does not have to have credentials to access the resource / resource found in the UNC location.
, , . , .NET- ( ), , , , , , DCOM, .. .NET /.
UNC/. , , .
The solution is supported by the impersonation and delegation of asp.net functions. There are certain constructs that provide a token-based security scheme for invoking the file.copy operation, for example, for a purpose that is a UNC location. You can check it out here .
Source: https://habr.com/ru/post/1720255/More articles:Tomcat and MySql on VPS - performanceNumeric string (arbitrary size) → Multiple integers - phpSpring MVC - jsp not running - javaScheme How to check 2 conditions in one paragraph? - schemeCompiling a Java File Set in a Directory Tree Using the JSR 199 Compiler API - javaHow to take a screenshot from a specified site? - capture.Net Powerpoint Component - c #bluetooth to iphone - iphoneIs it good to have multiple class definitions in a single file? - c #Контроль версий для служб ReportingServices - version-controlAll Articles