I am writing a WCF service using C #. In one of my methods I try to access a directory on the network (any command like directory.Exists()
or directory.GetFiles()
) and I get the following error:
System.ServiceModel.FaultException '1 [[System.ServiceModel.ExceptionDetail, System.ServiceModel, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089]]: Username or Password incorrect.
If I try to access the same directory from an Web API application it works normally. Has anyone had this problem and could you help me?