FileNotFoundException thrown when the file does exists

后端 未结 4 2157
心在旅途
心在旅途 2021-01-06 17:36

I\'m facing this strange problem.

I\'m trying to read a file that is located in another machine as a shared resource:

\\\\remote-machine\\dir\\MyFile         


        
4条回答
  •  无人及你
    2021-01-06 18:01

    Is the shared resource protected by a username and password? And if so, is your application engine running as that user? If your application engine is running as a Windows Service, the Windows service cannot be running as the "Local System Account". This account cannot access the network. You must configure your service to run as a user that has the rights to access the shared drive.

提交回复
热议问题