Я использую uploadify (плагин загрузки jquery)
Есть JavaScript
$("#<%=ImageUpload.ClientID %>").uploadify({
'uploader': '/Scripts/Plugins/uploadify/uploadify.swf',
'script': 'Upload.ashx',
'scriptData': {},
'cancelImg': '/Scripts/Plugins/uploadify/cancel.png',
'folder': 'Uploads',
'auto': true,
'multi': true,
'fileExt': '.jpg;.gif;.png;.bmp;.jpeg',
'onError': function (a, b, c, d) {
if (d.status == 404)
alert('Could not find upload script. Use a path relative to: ' + '<?= getcwd() ?>');
else if (d.type === "HTTP")
alert('error ' + d.type + ": " + d.status);
else if (d.type === "File Size")
alert(c.name + ' ' + d.type + ' Limit: ' + Math.round(d.sizeLimit / 1024) + 'KB');
else
alert('error ' + d.type + ": " + d.text + ASPSESSID);
}
});
и web.config
<authorization>
<deny users="?" />
</authorization>
Если я удаляю Аутентификацию в web.config, она работает. Как я могу решить эту проблему?
Спасибо всем.