它在我的本地機器上工作得非常好。在godaddy windows主機上部署代碼時,AjaxFileUpload不起作用
我在4.0框架上設計了應用程序,並在部署代碼時將目標框架更改爲4.5。
Web配置文件
<system.web>
<compilation debug="true" targetFramework="4.5"/>
<httpHandlers>
<add verb="*" path="AjaxFileUploadHandler.axd" type="AjaxControlToolkit.AjaxFileUploadHandler, AjaxControlToolkit"/>
</httpHandlers>
<customErrors mode="Off"/>
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<handlers>
<add name="AjaxFileUploadHandler" verb="*" path="AjaxFileUploadHandler.axd" type="AjaxControlToolkit.AjaxFileUploadHandler, AjaxControlToolkit" preCondition="integratedMode"/>
</handlers>
</system.webServer>
的.aspx代碼控制
<cc1:AjaxFileUpload ID="AjaxFileUpload1" throbberid="myThrobber" OnClientUploadComplete="uploadComplete" onuploadcomplete="AjaxFileUpload1_UploadComplete"
runat="server" MaximumNumberOfFiles="4"></cc1:AjaxFileUpload>
Status bar shows image uploaded 100% but after that it shows error in red.
感謝提前:)
我已經給文件夾寫入權限,我正在上傳,ASP文件上傳控制工作正常,我面臨與AJAX FILE上傳控件在ajaxcontroltoolkit這個問題。 –