From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Access remote files with Web Service

Solved!
Go to solution

I have developed a Web Service application with LabVIEW but I am unable to access files from another network drive from within the Web Service application (copy from and to) .

 

It works fine for built LabVIEW applications and it works fine when running the Web Service in development mode but when Publishing the webservice this is not possible.

 

I've tried simply shared folders over a private network but it does not work when the Web Service is Published.

I've tried FTP but it does not work when the Web Service is Published.

 

Thanks in advance for you for your help !

 

0 Kudos
Message 1 of 3
(2,086 Views)
Solution
Accepted by topic author PerMartinHejHopp

It is a permission issue. You will need to find out what user the NI Web Service is running as and provide access to the network drive for that user.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 2 of 3
(2,062 Views)

Thank you very much Mark !!

 

This solved the issue

 

----

 

So what I did was simply:

  1. Create a new Windows User with Administrative privileges
  2. Go to services
  3. Locate the NI Application Web Service
  4. Right-click and go to Properties --> Logon
  5. Change from “Local System account” to “This account”
  6. Click Browse… and locate the new User which was created in 1)
  7. Restart the NI Application Web Service

 

0 Kudos
Message 3 of 3
(2,006 Views)