Readdy Write  
0,00 €
Your View Money
Views: Count
Self 20% 0
Your Content 60% 0

Users by Links 0
u1*(Content+Views) 10% 0
Follow-Follower 0
s2*(Income) 5% 0

Count
Followers 0
Login Register as User

🎬 Video: IIS 10.0 Detailed Error – 404.12 – Not Found when uploading Large Files to Asp Core

24.08.2018 (👁371)


IIS 10.0 Detailed Error - 404.12 - Not Found

 

Problem occurs when you want to access a web api page on a Asp.Net Core 2 MVC page with a javascript jQuery ajax client.

However, the problem only occurs with very large video files.

 

At Asp.Net Core MVC Ajax access controller

Error message when uploading a video file

Solution:

In the web.config file increase the requestLimits. This also applies to asp core applications

 

In the web.config file in asp.net core.

If there is no web.config file, then you can add this web.config file with project-> add

<requestLimits maxAllowedContentLength="3000000000" />

Web.config file in my application ([lnk: "https://readdy.net" /])

<?xml version="1.0" encoding="utf-8"?>

<configuration>

  <system.webServer>

    <security>      

      <requestFiltering>        

        <requestLimits maxAllowedContentLength="3000000000" />

      </requestFiltering>

    </security>

    <aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" requestTimeout="01:00:00" />

    <handlers>

      <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />

    </handlers>

  </system.webServer>

</configuration>

Note:

As soon as the file upload starts on the web page with jQuery ajax, the file is loaded .... And the loading bar runs completely through, but gets stuck at the end of the upload.

The file delimitation should therefore be made before jquery in the query of the files () in the client.

    //< load into FormData >

    //only 1.file

    var data = new FormData();

    data.append(files[0].name, files[0]);

    //</ load into FormData >