cannot upload the published file to share point.
error message "cannot read from the source file or disk"
file type :Json file
already enabled Json file type on sharepoint
how to solve that?
The error message would tend to indicate that Sharepoint does NOT allow JSON files. If you have just enabled JSON, did you need to restart the server for the change to take effect? (Your server administrator should be able to tell you.)
Either way, Sharepoint is
I don't know if and how SharePoint can be made to accept json files, but here's a workaround to eliminate json files from the output, so one would not run into the issue in the first place. It's what I do whenever I have to publish a non-responsive project to SharePoint. Mind that I never tried with a responsive project - don't know if there's any difference when it comes to json and the possibilites to avoid them.
Works for me. You might want to have a look at those two posts as well: