1

我正在使用Jquery.Form.Js插件進行ajax文件上傳。它在除IE8以外的所有瀏覽器和版本中工作正常。當我在IE 8上傳時,文件被上傳,但瀏覽器掛起響應。突然,一個彈出窗口打開,它表示啓動應用程序下載,我從那裏得到他的錯誤日誌如下。請讓我知道這個決議。謝謝。Jquer.Form.Js IE8中的AJAX文件上傳問題

PLATFORM VERSION INFO 
    Windows    : 6.1.7601.65536 (Win32NT) 
    Common Language Runtime  : 4.0.30319.544 
    System.Deployment.dll  : 4.0.30319.1 (RTMRel.030319-0100) 
    clr.dll    : 4.0.30319.544 (RTMLDR.030319-5400) 
    dfdll.dll   : 4.0.30319.1 (RTMRel.030319-0100) 
    dfshim.dll   : 4.0.31106.0 (Main.031106-0000) 

SOURCES 
    Deployment url   : http://localhost:7780/Sistic/internalmessaging/saveFile.htm 

ERROR SUMMARY 
    Below is a summary of the errors, details of these errors are listed later in the log. 
    * Activation of http://localhost:7780/Sistic/internalmessaging/saveFile.htm resulted in exception. Following failure messages were detected: 
     + The remote server returned an error: (500) Internal Server Error. 

COMPONENT STORE TRANSACTION FAILURE SUMMARY 
    No transaction error was detected. 

WARNINGS 
    There were no warnings during this operation. 

OPERATION PROGRESS STATUS 
    * [5/14/2013 11:00:11 AM] : Activation of http://localhost:7780/Sistic/internalmessaging/saveFile.htm has started. 

ERROR DETAILS 
    Following errors were detected during this operation. 
    * [5/14/2013 11:00:26 AM] System.Net.WebException 
     - The remote server returned an error: (500) Internal Server Error. 
     - Source: System 
     - Stack trace: 
      at System.Net.HttpWebRequest.GetResponse() 
      at System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy) 
      at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) 
      at System.Xml.XmlTextReaderImpl.OpenAndPush(Uri uri) 
      at System.Xml.XmlTextReaderImpl.PushExternalEntityOrSubset(String publicId, String systemId, String baseUriStr, Uri& baseUri, String entityName) 
      at System.Xml.XmlTextReaderImpl.DtdParserProxy_PushExternalSubset(String systemId, String publicId) 
      at System.Xml.DtdParser.ParseExternalSubset() 
      at System.Xml.DtdParser.Parse(Boolean saveInternalSubset) 
      at System.Xml.DtdParser.System.Xml.IDtdParser.ParseInternalDtd(IDtdParserAdapter adapter, Boolean saveInternalSubset) 
      at System.Xml.XmlTextReaderImpl.ParseDtd() 
      at System.Xml.XmlTextReaderImpl.ParseDoctypeDecl() 
      at System.Xml.XmlTextReaderImpl.ParseDocumentContent() 
      at System.Deployment.Application.ManifestValidatingReader.XmlFilteredReader.Read() 
      at System.Xml.XmlCharCheckingReader.Read() 
      at System.Xml.XsdValidatingReader.Read() 
      at System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri) 
      at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestDirectBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation) 
      at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options) 
      at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl) 
      at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state) 

COMPONENT STORE TRANSACTION DETAILS 
    No transaction information is available. 

回答

0

由於服務器發送的響應類型的解釋不正確,可能會發生這種情況。 請在服務器端設置適當的響應類型,然後嘗試。 例如"text/html"