Server Error 404 When Launching TDMS File Using WebDAV Server

Updated Sep 27, 2023

Reported In

Other

  • Internet Information Services (IIS) WebDAV server

Issue Details

  • I am using LabVIEW WebDAV function to transfer the TDMS file to the WebDAV under IIS on Windows Server. The TDMS file has been successfully uploaded. However, when I try to download the TDMS file from the web server, I get a server error 404 and I am unable to download the TDMS file.
    Screenshot_20230103_051957.png

  • When I open .csv and .tdms files downloaded from the WebDAV server, I am able to see the content in .csv file but unable to see the content in .tdms file. The .tdms file is completely empty. Why does this happen, and how do we solve it?
  • When I retrieve the .tdms file using LabVIEW WebDAV Get File VI, the .tdms file is empty.

Solution

The server error happens when IIS does not recognize the file name extension requested by the client. This issue happens when the web server is opened via a web browser. To avoid the above error, there are a few methods to successfully upload and download the TDMS file:


Add the MIME type in IIS for the TDMS file

  1. Launch IIS Manager. You can click <Windows-R> and key in inetmgr to launch IIS Manager.

  2. Double click on the MIME Types under the sites. By default, the name for the WebDAV site is Default Web Site.

  3. On the Actions pane, click Add.

  4. Key in .tdms in the file name extension and application/octet-stream for the MIME type.Screenshot_20230110_104512.png

  5. Click OK and refresh your WebDAV server. The TDMS file will now be automatically downloaded when opened in a web browser.

 

Use third-party WebDAV client tools to access the files on the web server

  • You may use a third-party WebDAV client such as WinSCP, CyberDuck or Filezilla Pro etc. to access the web server. By using these third-party clients, they can easily determine the file type.
  • Please note that NI is not responsible for any errors that may occur while using these client tools.
 

Save the TDMS file as a ZIP archive

  1. Right-click on the TDMS that you would like to upload to the web server.
  2. Save the TDMS file as a ZIP file by selecting Send to >> Compressed (zipped) folder.
  3. Upload the ZIP file to the WebDAV server.
  4. Now, you could retrieve the TDMS file from the ZIP file by downloading the ZIP file from the web server.

Additional Information

You could refer to the article from Microsoft regarding how to install and configure WebDAV in different Windows environments.