0
I’m writing a service WCF 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 mistake:
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 application Web API works normally. Someone has had this problem and could help me?
This running local or posted on the server? may be due to the difference in credentials between one application and another.
– Leandro Angelo
I tried to run both locally and on a server and get the same error.
– Rayan Pereira de Lima