AjaxfileUpload error

前端 未结 2 1172
死守一世寂寞
死守一世寂寞 2020-12-18 23:06

I\'m trying to implement a simple ajaxtoolkit fileupload control and every time I click \"Upload\" all I get is an error. I tried placing breakpoint in the \"AjaxFileUpload1

2条回答
  •  爱一瞬间的悲伤
    2020-12-18 23:19

    This was happening to me, and I did two things to fix it:

    1) Update your site's web.config file to contain entries for the following:

    
      
        
      
    
    
      
        
      
    
    

    2) If the page you're uploading from is inside a folder with it's own web.config with deny anonymous authorization rules, make sure you add an allow for the AjaxFileUploadHandler like so:

    
      
        
          
        
      
    
    

提交回复
热议问题