使用.ashx上传Silverlight文件失败,使用Chrome浏览器 [英] Silverlight File Upload Using .ashx Fails Using Chrome
本文介绍了使用.ashx上传Silverlight文件失败,使用Chrome浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在silverlight项目中开发了一个httphandler,用于将文件上传到服务器.上载在IE8,IE9和FireFox中可以正常工作.当我尝试在Chome中进行文件上传过程时,它不起作用.任何人都遇到过类似的事情吗?
I have developed a httphandler in my silverlight project that I use to upload files to the server. The upload works fine in IE8, IE9, and FireFox. When I use try the file upload process in Chome, it does not work. Anyone ever run into something similar? Thanks.
推荐答案
< httpRuntime maxRequestLength ="1048576" requestValidationMode ="2.0" />
<httpRuntime maxRequestLength="1048576" requestValidationMode="2.0" />
Adding the bold section above to the web.config solved my problem.
< httpruntime maxrequestlength ="1048576" requestvalidationmode ="2.0">
将上面的粗体部分添加到web.config中解决了我的问题.
<httpruntime maxrequestlength="1048576" requestvalidationmode="2.0">
Adding the bold section above to the web.config solved my problem.
这篇关于使用.ashx上传Silverlight文件失败,使用Chrome浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文