dotnet / dotnet/machinelearning
Failed to deploy ML image classification model with aspnetcore webapi:
- Dominant language
- C#
- Stars
- 9.4k
- Forks
- 2k
- Avg merge
- 2d 20h
- Merged PRs (30d)
- 11
Description
### System information
- **OS version/distro**: WINDOWS SERVER 2019
- **.NET Version (eg., dotnet --info)**: dotnetcore 3.1
### Issue
- **What did you do?**
I have trained image classification using ML.Net and integrated model to aspnetcore webapi.
- **What happened?**
WebApi worked fine on my local development machine. But it failed to work when i deploy webapi to the server IIS.
windows showed error:
**Windows cannot access the file for one of the following reasons: there is a problem with the network connection, the disk that the file is stored on, or the storage drivers installed on this computer; or the disk is missing. Windows closed the program IIS Worker Process because of this error.
Program: IIS Worker Process
File:
The error value is listed in the Additional Data section.
User Action
1. Open the file again. This situation might be a temporary problem that corrects itself when the program runs again.
2. If the file still cannot be accessed and
- It is on the network, your network administrator should verify that there is not a problem with the network and that the server can be contacted.
- It is on a removable disk, for example, a floppy disk or CD-ROM, verify that the disk is fully inserted into the computer.
3. Check and repair the file system by running CHKDSK. To run CHKDSK, click Start, click Run, type CMD, and then click OK. At the command prompt, type CHKDSK /F, and then press ENTER.
4. If the problem persists, restore the file from a backup copy.
5. Determine whether other files on the same disk can be opened. If not, the disk might be damaged. If it is a hard disk, contact your administrator or computer hardware vendor for further assistance.
Additional Data
Error value: 00000000
Disk type: 0**
**Faulting application name: w3wp.exe, version: 10.0.17763.1, time stamp: 0xcfdb13d8
Faulting module name: tensorflow.DLL, version: 0.0.0.0, time stamp: 0x5f77815a
Exception code: 0xc000001d
Fault offset: 0x00000000003aec32
Faulting process id: 0x3410
Faulting application start time: 0x01d6c230bdc0bf5c
Faulting application path: c:\windows\system32\inetsrv\w3wp.exe
Faulting module path: C:\inetpub\wwwroot\runtimes\win-x64\native\tensorflow.DLL
Report Id: 003ff975-a029-4989-96e6-cca406a8b89d
Faulting package full name:
Faulting package-relative application ID: **
- **What did you expect?**
WebApi and ML.net should have same behavior on local machine and remote server.
### Source code / logs
[proj.txt](https://github.com/dotnet/machinelearning/files/5588449/proj.txt)
[file1.txt](https://github.com/dotnet/machinelearning/files/5588455/file1.txt)
[startup.txt](https://github.com/dotnet/machinelearning/files/5588458/startup.txt)
Please paste or attach the code or logs or traces that would be helpful to diagnose the issue you are reporting.
Contributor guide
Assessment
This issue has not been assessed yet.