Home > Net >  Asp.net the core project in iis8 can only upload under less than 30 KB file
Asp.net the core project in iis8 can only upload under less than 30 KB file

Time:01-28


In the local or Windows server2008 upload (iis6.0) can be normal. But deployed to Windows server2012 (iis8.0) can only upload under 30 KB file, after
Baidu methods are tried, useless. Do you have any good solution

CodePudding user response:

1, first close the iis admin service service in service,
2, find windowssystem32inetsrv metabase. XML file,
3, in plain text way open, find AspBufferingLimit need to modify it as value (can be modified as 20 m: 20480000),
4, inventory, and then restart the iis admin service service,

CodePudding user response:

A, solve the problem of Windows 2003 default upload file size:
1, change "allow you to directly edit the configuration database" to check the status;

2, in the service closed the iis admin service service
You will be prompted
World Wide Web Publishing Service
The HTTP SSL
The two will stop (remember: after the change need to manually start the two service!)
3, find metabase. Under Windows/system32/inesrv/XML editing the ASPMaxRequestEntityAllowed he changes the value of the need to default to 204800, or 200 k to you need the value of the
4, need to note here is to use and then restart the iis admin service service

Note:
Notepad. Exe also is to use notepad to modify
Don't use WordPad. Exe tablet modification can appear otherwise error,
Lead to the IIS service can't start!

Second, solve the problems of the above applies to download size limit
In IIS 6.0, cannot download more than 4 m attachment, can be solved by the following steps:
1, first close the iis admin service service in service,
2, find windowssystem32inetsrv metabase. XML file,
3, in plain text way open, find AspBufferingLimit need to modify it as value (can be modified as 20 m: 20480000),
4, inventory, and then restart the iis admin service service,

CodePudding user response:

I met, also don't know the building Lord solve no, replied the great god of the attention is not a 30 KB, not 20 m limit
  • Related