How to make deployed MATLAB App on Web Server to access data from networked drive?

15 ビュー (過去 30 日間)
Razin Zuhair
Razin Zuhair 2019 年 1 月 9 日
編集済み: Kevin Chng 2020 年 8 月 12 日
Hi,
I have developed an App using App Designer and the app accesses the log files from a networked drive location (:Y) when I am running it on my local computer. I tried deploying the app using WebApp Server but the app can no longer access the data logs from the netwoked drive any more even though the Server Machine is my local computer itself. I would like to know if there is a way to make this work. Thanks.

回答 (3 件)

Kevin Chng
Kevin Chng 2020 年 8 月 12 日
編集済み: Kevin Chng 2020 年 8 月 12 日
I have recorded the steps in video. Hope it helps

Mohan Feng
Mohan Feng 2019 年 1 月 14 日
The web apps worker by default won't have access to network folder. It is a very low privilege account for security reasons. Please refer to the following link for more information:
The work around might be to change these permissions around.
  1 件のコメント
Razin Zuhair
Razin Zuhair 2019 年 1 月 17 日
Thanks for the reply. I changed the permissions of the Web App Server and even the app itself to Full Control but it still doesn't access the drive.

サインインしてコメントする。


Mohan Feng
Mohan Feng 2019 年 1 月 17 日
By default the web app server will create a local user which will be used to run the web app server. Local users on Windows don't have access to the network as well as limited access to other parts of the OS.
To get around this permissions issue, you would need to run the web server as a user having more permissions, typically a domain user:
--> Start MATLAB web server.
--> Open the "Windows Services" application
--> Find the MATLAB Web Apps service
--> Right-click and select Properties
--> Under "Log On" tab select "This Account", enter the domain user credentials and hit "Ok" button
--> Finally, restart the MATLAB web server by clicking "Stop" and then "Start" button
The application should now be able to access the Network Drives.

カテゴリ

Help Center および File ExchangeMATLAB Web App Server についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by