exception details at System.IO.FileSystem.CreateDirectory(String fullPath) at System.IO.Directory.CreateDirectory(String path) at Framework.WebApi.Controllers.ZDataDelivery.Z2DeliveryController.Upload() in D:\moved\TestInternalSystemZ2Data\FullProjectAngApiLastUpdate\Z2DataApp\Framework.WebApi\Controllers\ZDataDelivery\Z2DeliveryController.cs:line 123 at lambda_method(Closure , Object , Object[] ) at Microsoft.Extensions.Internal.ObjectMethodExecutor.Execute(Object target, Object[] parameters) at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeActionMethodAsync() i can access path above and create folder 3 on it manually but from code it give me path was not found on network exception error so why this error display ?
PathDirectory = "\\\\10.253.x.xx\\ImportExport\\testImporter\\3" string PathDirectory = myValue1 + "\\" + Month; if (!Directory.Exists(PathDirectory)) { Directory.CreateDirectory(PathDirectory); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)