.net core 问题汇总

 

2 . Access return   

     Server:Microsoft-HTTPAPI/2.0   404   

     Solution :
              Open regedit
             Add UrlSegmentMaxLength DWORD 512 in the HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\HTTP\Parameters registry key
                           whose value is the number of bytes you'd like to allow for a request's headers
                           The default value is 260. The maximum value  don't know
             then  
                     net stop w3svc
          net stop http
         net start http
         net start w3svc

   

 

1  . Access return   

      Server:Microsoft-HTTPAPI/2.0       The size of the request headers is too long
     Solution :
              Open regedit
             Add MaxRequestBytes DWORD in the HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\HTTP\Parameters registry key
                           whose value is the number of bytes you'd like to allow for a request's headers
                           The default value is 16,384 bytes. The maximum value is 16,777,216 bytes (approximately 16MB)
             then  
                     net stop w3svc
          net stop http
         net start http
         net start w3svc

posted on 2020-08-14 14:09  developer1980  阅读(115)  评论(0)    收藏  举报

导航