Xmlhttprequest сетевая ошибка 0x800c0007 для запрошенного ресурса данные недоступны

I have an app that is failing to load in IE. When I look in the console I see
The same code works in IE11 but the code not woking in RDP IE11 couldnot find out exact cause for the issue.
During save it says couldn’t download zip document

SCRIPT7002: XMLHttpRequest: Network Error 0x800c0007, No data is
available for the requested resource

Knu's user avatar

Knu

14.8k5 gold badges56 silver badges89 bronze badges

asked May 10, 2017 at 6:40

Lier's user avatar

1

Had the same error. It was due to IE not handling deflate properly. Use gzip instead of deflate.

answered Nov 24, 2018 at 19:08

Chris's user avatar

ChrisChris

1,11910 silver badges15 bronze badges

I have an app that is failing to load in IE. When I look in the console I see
The same code works in IE11 but the code not woking in RDP IE11 couldnot find out exact cause for the issue.
During save it says couldn’t download zip document

SCRIPT7002: XMLHttpRequest: Network Error 0x800c0007, No data is
available for the requested resource

Knu's user avatar

Knu

14.8k5 gold badges58 silver badges89 bronze badges

asked May 10, 2017 at 6:40

Lier's user avatar

1

Had the same error. It was due to IE not handling deflate properly. Use gzip instead of deflate.

answered Nov 24, 2018 at 19:08

Chris's user avatar

ChrisChris

1,06410 silver badges15 bronze badges

I have an app that is failing to load in IE. When I look in the console I see…

SCRIPT7002: XMLHttpRequest: Network Error 0x800c0007, No data is available for the requested resource.

So it seems like there may be a problem with the charset or some other issue. I would like to know what I can do to figure out which request caused the issue. When I look at the POST requests they all seem to have a status of 200

  • internet-explorer-11

asked Jun 1, 2016 at 1:31

Jackie's user avatar

JackieJackie

21.2k31 gold badges137 silver badges274 bronze badges

3

  • Please include the relevant code.

    Jun 1, 2016 at 2:28

  • @Jackie, did you ever figure this out? Similar issue here

    Feb 17, 2017 at 4:01

  • Nope sorry guys

    Feb 1, 2020 at 16:12

I have an app that is failing to load in IE. When I look in the console I see…

SCRIPT7002: XMLHttpRequest: Network Error 0x800c0007, No data is available for the requested resource.

So it seems like there may be a problem with the charset or some other issue. I would like to know what I can do to figure out which request caused the issue. When I look at the POST requests they all seem to have a status of 200

  • internet-explorer-11

asked Jun 1, 2016 at 1:31

Jackie's user avatar

JackieJackie

21.2k31 gold badges137 silver badges274 bronze badges

3

  • Please include the relevant code.

    Jun 1, 2016 at 2:28

  • @Jackie, did you ever figure this out? Similar issue here

    Feb 17, 2017 at 4:01

  • Nope sorry guys

    Feb 1, 2020 at 16:12

I am not sure wha is going on here but I am repeatedly receiving this error when trying to use the REST API when saving a form. I make the $.ajax call, wait for the promise to return but at some point the promise gets stuck in the middle and never returns, but instead if I go through enough F10 function in the debugger this is the error I receive. I am at my wits end because I have this working perfectly fine using the same methods on other sites, but this one doesn’t seem to want to cooperate.

var promise1, promise2;
var promise_array = [];

if(vm.receivables) {
 promise1 = user.postDealItem(args....).then(function(response) {
           vm.model.recId = response.Id;
           return response
});
}

if(vm.standard) {
 promise2 = user.postDealItem(args...).then(function(response) {
           vm.model.stdId = response.Id;
           return response
});
}

if(promise1 != null) promise_array.push(promise1);
if(promise2 != null) promise_array.push(promise2);

$.when.apply($,promise_array).done(function(response) {
    //never gets to this point
});

The promise never returns even on the few times it reaches a success stage, it just reloads the page. At my wits end over this one, have been dealing with this for the past 2 days and have not gotten any closer to a solution. I am using SP2013 online at my company’s site and have angular integrated with it(although I prefer jQuery promises/$ajax methods)

asked Mar 14, 2018 at 13:05

MattE's user avatar

2

In fact the answer was an issue with IE11 that appears intermittently where a post request times out between the send and the receive, so when the post returns, it has nowhere to send the data to—no error, no exception, no nothing most times, just a reload of the page…

I tracked it down by watching th network very closely before it sent and stopped it right before it reloaded. It aborted the XMLHTTPRequest and then I started digging…found that you need to set a few other blank functions in the ajax cal like completed and beforeSend and then put timeout: 0…this somehow prevents IE11 from timing out…worked the first attempt after I did this and every attempt after…

IE is the worst browser ever made, it needs to die a quick painful death.

answered Mar 15, 2018 at 3:29

MattE's user avatar

MattEMattE

2074 silver badges12 bronze badges

I am not sure wha is going on here but I am repeatedly receiving this error when trying to use the REST API when saving a form. I make the $.ajax call, wait for the promise to return but at some point the promise gets stuck in the middle and never returns, but instead if I go through enough F10 function in the debugger this is the error I receive. I am at my wits end because I have this working perfectly fine using the same methods on other sites, but this one doesn’t seem to want to cooperate.

var promise1, promise2;
var promise_array = [];

if(vm.receivables) {
 promise1 = user.postDealItem(args....).then(function(response) {
           vm.model.recId = response.Id;
           return response
});
}

if(vm.standard) {
 promise2 = user.postDealItem(args...).then(function(response) {
           vm.model.stdId = response.Id;
           return response
});
}

if(promise1 != null) promise_array.push(promise1);
if(promise2 != null) promise_array.push(promise2);

$.when.apply($,promise_array).done(function(response) {
    //never gets to this point
});

The promise never returns even on the few times it reaches a success stage, it just reloads the page. At my wits end over this one, have been dealing with this for the past 2 days and have not gotten any closer to a solution. I am using SP2013 online at my company’s site and have angular integrated with it(although I prefer jQuery promises/$ajax methods)

asked Mar 14, 2018 at 13:05

MattE's user avatar

2

In fact the answer was an issue with IE11 that appears intermittently where a post request times out between the send and the receive, so when the post returns, it has nowhere to send the data to—no error, no exception, no nothing most times, just a reload of the page…

I tracked it down by watching th network very closely before it sent and stopped it right before it reloaded. It aborted the XMLHTTPRequest and then I started digging…found that you need to set a few other blank functions in the ajax cal like completed and beforeSend and then put timeout: 0…this somehow prevents IE11 from timing out…worked the first attempt after I did this and every attempt after…

IE is the worst browser ever made, it needs to die a quick painful death.

answered Mar 15, 2018 at 3:29

MattE's user avatar

MattEMattE

2074 silver badges12 bronze badges

У моего клиента следующая топология:

User <--> Apache <--> TomCat <--> JBossAS7 <--> Mule

Mule необходимо связаться с другим сервером, на другом домене, чтобы получить информацию, запрашиваемую пользователем. Это соединение использует HTTPS, а сертификат находится в доверенности Mule. Таким образом, Mule и другой сервер могут создать SSL-соединение.

Это запрос ajax, используемый для выполнения того, что хочет пользователь:

$.ajax({
url : DS.nav.importDS,
data : data,
type : "GET",
cache : false,
success : function(html)
{
   //do some stuff
},
error:function (error)
{
    //do some stuff
}});

(версия jquery: 1.7.1)

О заголовках ответов:

  • Cache-Control: max-age = 0, no-cache, no-store, необходимо перепроверить
  • Cache-Control: без кеширования
  • Подключение: Keep-Alive
  • Content-Type: text / html; charset = UTF-8.
  • Keep-Alive: тайм-аут = 5, максимум = 100

Этот запрос GET возвращает содержимое HTML.

Моя проблема в следующем:

Этот запрос перестает работать без предупреждения.
На Хром (используемая версия: 65.0.3325.162) через несколько минут в консоли появляется следующее сообщение об ошибке: «ERR_INCOMPLETE_CHUNKED_ENCODING.». Нет связи с антивирусом защиты в реальном времени.

На Край, «XMLHttpRequest: сетевая ошибка 0x800c0007, данные для запрошенного ресурса недоступны».

НО, он работает в IE. Я полагаю, что IE более снисходительный, чем Chrome или Edge. Но я хочу понять почему.

Я ищу не идеальный ответ, а любую идею, которая может направить меня на след того, что происходит.

РЕДАКТИРОВАТЬ

В Chrome
— Код состояния: 200 ОК
— Сроки: ВНИМАНИЕ: запрос еще не завершен! (после загрузки контента)

РЕДАКТИРОВАТЬ
Используя инструмент chrome: // net-export, это результат HTTP-запроса:

t=203357 [st=  2948]        HTTP_TRANSACTION_READ_RESPONSE_HEADERS
                        --> HTTP/1.1 200 OK
                            Date: Fri, 23 Mar 2018 14:44:16 GMT
                            Server: Apache-Coyote/1.1
                            X-Frame-Options: SAMEORIGIN
                            Cache-Control: max-age=0, no-cache, no-store, must-revalidate
                            Pragma: no-cache
                            Expires: Sat, 26 Jul 1997 05:00:00 GMT
                            X-Frame-Options: SAMEORIGIN
                            X-UA-Compatible: IE=9,chrome=1
                            Content-Type: text/html;charset=UTF-8
                            Content-Language: en
                            Keep-Alive: timeout=5, max=98
                            Connection: Keep-Alive
                            Cache-Control: no-cache
                            X-Via-NSCOPI: 1.0
                            Transfer-Encoding: chunked
t=203357 [st=  2948]     -HTTP_TRANSACTION_READ_HEADERS
t=203357 [st=  2948]      HTTP_CACHE_WRITE_INFO  [dt=0]
t=203357 [st=  2948]     +URL_REQUEST_DELEGATE  [dt=4]
t=203358 [st=  2949]        DELEGATE_INFO  [dt=3]
                        --> delegate_blocked_by = "extension ModHeader"
t=203361 [st=  2952]     -URL_REQUEST_DELEGATE
t=203361 [st=  2952]   -URL_REQUEST_START_JOB
t=203361 [st=  2952]    URL_REQUEST_DELEGATE  [dt=1]
t=203362 [st=  2953]    HTTP_TRANSACTION_READ_BODY  [dt=0]
t=203362 [st=  2953]    URL_REQUEST_JOB_FILTERED_BYTES_READ
                    --> byte_count = 12971
t=203363 [st=  2954]    HTTP_TRANSACTION_READ_BODY  [dt=313130]
                    --> net_error = -355 (ERR_INCOMPLETE_CHUNKED_ENCODING)
t=516493 [st=316084]    FAILED
                    --> net_error = -355 (ERR_INCOMPLETE_CHUNKED_ENCODING)
t=516495 [st=316086] -REQUEST_ALIVE
                  --> net_error = -355 (ERR_INCOMPLETE_CHUNKED_ENCODING)

ОБНОВИТЬ

Я отключил javascript и ввел свой запрос прямо в URL-адрес, и результат был отображен, но страница все еще загружается в течение 5 минут.

Detailed Error Information

INET_E_DATA_NOT_AVAILABLE[1]

Message No data is available for the requested resource.
Declared in winerror.h

HRESULT analysis[2]

Flags Severity Failure
Reserved (R) false
Origin Microsoft
NTSTATUS false
Reserved (X) false
Facility Code 12 (0x00c)
Name FACILITY_INTERNET[2][1]
Description The source of the error code is Wininet related.[2][1]
Error Code 7 (0x0007)

Questions

Why can’t I remove the transfer-encoding header in a node proxy?

I have a Node http-proxy server doing some response body rewriting that basically does this: 1. Client GET localhost:8000/api/items 2. Node Proxy send localhost:8000 -> to example.com/api 3. Server responds with json [{ id: 1234, url: http://example.com/api/items/1234 }] 4. Node proxy rewrites json to [{ id: 1234, url: http://localhost:8000/api/items/1234 }] […] read more

flash cant shown in webBrowser

I add MIME filter to my WebBrowser Control by IInternetSession.RegisterMimeFilter。 The MIME type is «text/html»。 The filter have a bug that the flash cant shown in some site such as «http://cn.yahoo.com/». I tryed add «» before the tag,noneffective。 I return data directly but falsh still invisible。 I set the IE […] read more

Ajax data response by POST

Well, I send POST request to server-side to get data (xls). I use fiddler and see binary in response, but Chrome tells me there is a Network Error 0x800c0007. Server side based on WCF. Here I take HttpResponse, copy Stream from Excel to response.OutputStream, and say response.flush(). It goes without […] read more

IE11 Ajax Request will fail intermittently

I am having weird issue in IE 11 (Version: 11.285.17134.0). After I logged in to my site I have been redirected to a landing page where the user performs a search which makes a $.ajax POST request to fill data in a grid. However for every first request on that […] read more

Comments

Leave a comment

Sources

  1. winerror.h from Windows SDK 10.0.14393.0
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0

I’m currently facing a very frustating and untraceable bug with my Telerik web app as the web controls did not show any exceptions at all. I am able to insert and delete the records on the grid but CANNOT EDIT them. I hope someone can shed some light into my problem. here’s the code that I am using…

<telerik:RadAjaxManager runat="server" ID="RadAjaxManager1">

          <AjaxSettings>

               <telerik:AjaxSetting AjaxControlID="RadGrid1">

                    <UpdatedControls>

                         <telerik:AjaxUpdatedControl ControlID="RadGrid1" />

                    </UpdatedControls>

               </telerik:AjaxSetting>

          </AjaxSettings>

     </telerik:RadAjaxManager>

    <telerik:RadGrid ID="RadGrid1"

        GridLines="None"

        AutoGenerateColumns="false"

        PageSize="10"

        AllowPaging="true"

        AllowSorting="true"

        runat="server"

        DataSourceID="MasterViewDataSource"

        OnItemDataBound="OnItemDataBoundHandler"

        AllowAutomaticInserts="True"

        AllowAutomaticUpdates="true"

        AllowAutomaticDeletes="true"

        ShowStatusBar="true">

        <PagerStyle Mode="NextPrevAndNumeric" />

            <MasterTableView ShowFooter="false" DataKeyNames="TrxId" EditMode="InPlace" CommandItemDisplay="TopAndBottom">

                <Columns>

                    <telerik:GridBoundColumn DataField="TrxId" HeaderText="Trx No." ReadOnly="true"/>

                        <telerik:GridTemplateColumn HeaderText="Job Type" ItemStyle-Width="240px">

                              <ItemTemplate>

                                   <%#DataBinder.Eval(Container.DataItem, "TypeName")%>

                              </ItemTemplate>

                              <EditItemTemplate>

                                   <telerik:RadComboBox runat="server" ID="RadComboBox2" DataTextField="TypeName"

                                        DataValueField="TypeId" DataSourceID="CategoriesDataSource" SelectedValue='<%#Bind("TypeId") %>'>

                                   </telerik:RadComboBox>

                            </EditItemTemplate>

                        </telerik:GridTemplateColumn>

                        <telerik:GridTemplateColumn UniqueName="ObjId" HeaderText="Container No."

                            SortExpression="ObjSN">

                            <FooterTemplate>Template footer</FooterTemplate>

                            <FooterStyle VerticalAlign="Middle" HorizontalAlign="Center" />

                                <ItemTemplate>

                                    <%#DataBinder.Eval(Container.DataItem, "ObjSN")%>

                                </ItemTemplate>

                            <EditItemTemplate>

                                <telerik:RadComboBox runat="server" ID="RadComboBox1" EnableLoadOnDemand="True" DataTextField="ObjSN"

                                    OnItemsRequested="RadComboBox1_ItemsRequested" OnSelectedIndexChanged="RadComboBox1_SelectedIndexChanged"

                                    DataValueField="ObjId" AutoPostBack="true" HighlightTemplatedItems="true" Height="140px" Width="220px"

                                    DropDownWidth="300px">

                                        <HeaderTemplate>

                                            <ul>

                                                <li class="col1">Container No.</li>

                                                <li class="col2">Container Type</li>

                                           </ul>

                                        </HeaderTemplate>

                                        <ItemTemplate>

                                            <ul>

                                                <li class="col1">

                                                    <%# DataBinder.Eval(Container, "Text")%>

                                                </li>

                                                <li class="col2">

                                                     <%# DataBinder.Eval(Container, "Attributes['ObjType']")%>

                                                </li>

                                           </ul>

                                      </ItemTemplate>

                                 </telerik:RadComboBox>

                            </EditItemTemplate>

                       </telerik:GridTemplateColumn>

                       <telerik:GridTemplateColumn HeaderText="STCPO">

                            <ItemTemplate>

                                 <%#DataBinder.Eval(Container.DataItem, "StateName")%>

                            </ItemTemplate>

                            <EditItemTemplate>

                                 <telerik:RadComboBox runat="server" ID="RadComboBox3" DataTextField="StateName"

                                      DataValueField="StateId" DataSourceID="LoadStatesDataSource" SelectedValue='<%#Bind("StateId") %>'>

                                 </telerik:RadComboBox>

                            </EditItemTemplate>

                       </telerik:GridTemplateColumn>

                       <telerik:GridTemplateColumn HeaderText="Voy. No.">

                            <ItemTemplate>

                                 <%#DataBinder.Eval(Container.DataItem, "VoyName")%>

                            </ItemTemplate>

                            <EditItemTemplate>

                                 <telerik:RadComboBox runat="server" ID="RadComboBox4" DataTextField="VoyName"

                                      DataValueField="VoyId" DataSourceID="VoyagesDataSource" SelectedValue='<%#Bind("VoyId") %>'>

                                 </telerik:RadComboBox>

                            </EditItemTemplate>

                       </telerik:GridTemplateColumn>

                       <telerik:GridTemplateColumn HeaderText="Shipper">

                            <ItemTemplate>

                                 <%#DataBinder.Eval(Container.DataItem, "Shipr")%>

                            </ItemTemplate>

                            <EditItemTemplate>

                                 <telerik:RadComboBox runat="server" ID="RadComboBox5" DataTextField="Shipr" MinFilterLength="4"

                                     OnItemsRequested="RadComboBox5_ItemsRequested" EnableLoadOnDemand="true"

                                     DataValueField="ShipprId" OnSelectedIndexChanged="RadComboBox5_SelectedIndexChanged" 

                                     SelectedValue='<%#Bind("ShiprId") %>'>

                                 </telerik:RadComboBox>

                            </EditItemTemplate>

                       </telerik:GridTemplateColumn>

                       <telerik:GridTemplateColumn HeaderText="Consignee">

                            <ItemTemplate>

                                 <%#DataBinder.Eval(Container.DataItem, "Cons")%>

                            </ItemTemplate>

                            <EditItemTemplate>

                                 <telerik:RadComboBox runat="server" ID="RadComboBox6" DataTextField="Cons"

                                     OnItemsRequested="RadComboBox6_ItemsRequested" EnableLoadOnDemand="true"

                                     DataValueField="ConsId" OnSelectedIndexChanged="RadComboBox6_SelectedIndexChanged"

                                     SelectedValue='<%#Bind("ConsId") %>'>

                                 </telerik:RadComboBox>

                            </EditItemTemplate>

                      </telerik:GridTemplateColumn>

                      <telerik:GridBoundColumn DataField="TrxWeight" HeaderText="GWT" UniqueName="TrxWeight"/>

                      <telerik:GridBoundColumn DataField="TrxSeal" HeaderText="Seal No." UniqueName="TrxSeal"/>

                      <telerik:GridBoundColumn DataField="TrxRemarks" HeaderText="Remarks" UniqueName="TrxRemarks"/>

                      <telerik:GridTemplateColumn HeaderText="Bill To">

                            <ItemTemplate>

                                 <%#DataBinder.Eval(Container.DataItem, "BillCompany")%>

                            </ItemTemplate>

                            <EditItemTemplate>

                                 <telerik:RadComboBox runat="server" ID="RadComboBox7" DataTextField="BillCompany"

                                      DataValueField="BillId" DataSourceID="BillingDataSource" SelectedValue='<%#Bind("BillId") %>'>

                                 </telerik:RadComboBox>

                            </EditItemTemplate>

                      </telerik:GridTemplateColumn>

                      <telerik:GridEditCommandColumn FooterText="EditCommand footer" UniqueName="EditCommandColumn"

                           HeaderText="Edit" HeaderStyle-Width="100px" UpdateText="Update">

                      </telerik:GridEditCommandColumn>

                     <telerik:GridClientDeleteColumn ConfirmTextFields="TrxId" ConfirmTextFormatString="Are you sure you want to delete transaction No. {0:0000}?"

                           HeaderStyle-Width="35px" ButtonType="ImageButton" ImageUrl="Delete.gif">

                     </telerik:GridClientDeleteColumn>

                  </Columns>

             </MasterTableView>

        </telerik:RadGrid>

   <asp:SqlDataSource ID="MasterViewDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ZEUS %>"

         SelectCommand="SELECT TransactsData.TrxId, TransactsData.TypeId, TransactsData.StateId, TransactsData.ObjId, TransactsData.VoyId,

                               TransactsData.BillId, TransactsData.TrxWeight, TransactsData.TrxSeal, TransactsData.ShiprId, TransactsData.ConsId,

                               a1.CustName AS Shipr, a2.CustName AS Cons, ObjectsData.ObjSN, ObjectsData.ObjType, 

                               WorkTypes.TypeName,  BillingData.BillCompany, LoadStates.StateName, VoysData.VoyName, VoysData.VoyDate

                        FROM   TransactsData INNER JOIN

                               Customers AS a1 ON a1.CustId = TransactsData.ShiprId INNER JOIN

                               Customers AS a2 ON a2.CustId = TransactsData.ConsId INNER JOIN

                               BillingData ON TransactsData.BillId = BillingData.BillId INNER JOIN

                               WorkTypes ON TransactsData.TypeId = WorkTypes.TypeId INNER JOIN

                               ObjectsData ON TransactsData.ObjId = ObjectsData.ObjId INNER JOIN

                               LoadStates ON TransactsData.StateId = LoadStates.StateId INNER JOIN

                               VoysData ON TransactsData.VoyId = VoysData.VoyId"

         InsertCommand="INSERT INTO [TransactsData] ([TypeId], [StateId], [ObjId], [VoyId], [ShiprId], [ConsId], [TrxWeight], [TrxSeal],

                                    [TrxRemarks], [BillId], [TimeCreated])

                             VALUES (@TypeId, @StateId, @ObjId, @VoyId, @ShiprId, @ConsId, @TrxWeight, @TrxSeal, @TrxRemarks, @BillId, GETDATE())"

        UpdateCommand="UPDATE   [TransactsData] SET [TypeId] = @TypeId, [StateId] = @StateId, [ObjId] = @ObjId,

                                [VoyId] = @VoyId, [ShiprId] = @ShiprId, [ConsId] = @ConsId, [TrxWeight] = @TrxWeight,

                                [TrxSeal] = @TrxSeal, [TrxRemarks] = @TrxRemarks, [BillId] = @BillId, [TimeUpdated] = GETDATE()

                        WHERE   [TrxId] = @TrxId"

        DeleteCommand="DELETE FROM [TransactsData] WHERE [TrxId] = @TrxId">

        <InsertParameters>

            <asp:Parameter Name="TrxId" Type="Int64" />

            <asp:SessionParameter SessionField="ObjId" Name="ObjId" Type="Int64" />

            <asp:Parameter Name="TypeId" Type="Int32" />

            <asp:Parameter Name="StateId" Type="Int32" />

            <asp:Parameter Name="VoyId" Type="Int64" />

            <asp:Parameter Name="ShiprId" Type="Int64" />

            <asp:Parameter Name="ConsId" Type="Int64" />

            <asp:Parameter Name="TrxWeight" Type="Int32" />

            <asp:Parameter Name="TrxSeal" Type="String" />

            <asp:Parameter Name="TrxRemarks" Type="String" />

            <asp:Parameter Name="BillId" Type="Int32" />

            <asp:Parameter Name="TimeCreated" Type="DateTime" />

        </InsertParameters>

        <UpdateParameters>

            <asp:Parameter Name="TrxId" Type="Int64" />

            <asp:SessionParameter SessionField="ObjId" Name="ObjId" Type="Int64" />

            <asp:Parameter Name="TypeId" Type="Int32" />

            <asp:Parameter Name="StateId" Type="Int32" />

            <asp:Parameter Name="VoyId" Type="Int64" />

            <asp:Parameter Name="ShiprId" Type="Int64" />

            <asp:Parameter Name="ConsId" Type="Int64" />

            <asp:Parameter Name="TrxWeight" Type="Int32" />

            <asp:Parameter Name="TrxSeal" Type="String" />

            <asp:Parameter Name="TrxRemarks" Type="String" />

            <asp:Parameter Name="BillId" Type="Int32" />

            <asp:Parameter Name="TimeUpdated" Type="DateTime" />

        </UpdateParameters>

       <DeleteParameters>

           <asp:Parameter Name="TrxId" Type="Int64" />

       </DeleteParameters>

    </asp:SqlDataSource>

    <asp:SqlDataSource ID="CategoriesDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ZEUS %>"

        SelectCommand="SELECT [TypeId], [TypeName] FROM [WorkTypes]"></asp:SqlDataSource>

    <asp:SqlDataSource ID="LoadStatesDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ZEUS %>"

          SelectCommand="SELECT [StateId], [StateName] FROM [LoadStates]"></asp:SqlDataSource>

    <asp:SqlDataSource ID="VoyagesDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ZEUS %>"

          SelectCommand="SELECT [VoyId], [VoyName] FROM [VoysData]"></asp:SqlDataSource>

    <asp:SqlDataSource ID="BillingDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ZEUS %>"

          SelectCommand="SELECT [BillId], [BillCompany] FROM [BillingData]"></asp:SqlDataSource>

</asp:Content>

using System;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.Configuration;

using System.Data;

using System.Data.SqlClient;

using Telerik.Web.UI;

namespace TMSv2

{

    public partial class TestBed : System.Web.UI.Page

    {

        protected void Page_Load(object sender, EventArgs e)

        {

        }

        //GridEvents

        protected void OnItemDataBoundHandler(object sender, GridItemEventArgs e)

        {

            if (e.Item.IsInEditMode)

            {

                GridEditableItem item = (GridEditableItem)e.Item;

                if (!(e.Item is IGridInsertItem))

                {

                    RadComboBox combo = (RadComboBox)item.FindControl("RadComboBox1");

                    RadComboBoxItem selectedItem = new RadComboBoxItem();

                    selectedItem.Text = ((DataRowView)e.Item.DataItem)["ObjSN"].ToString();

                    selectedItem.Value = ((DataRowView)e.Item.DataItem)["ObjId"].ToString();

                    selectedItem.Attributes.Add("ObjType", ((DataRowView)e.Item.DataItem)["ObjType"].ToString());

                    combo.Items.Add(selectedItem);

                    selectedItem.DataBind();

                    Session["ObjId"] = selectedItem.Value;

                }

            }

        }

        // ComboboxEvents

        protected void RadComboBox1_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)

        {

            string sql = "SELECT [ObjId], [ObjSN], [ObjType], [ObjOID] FROM [ObjectsData]  WHERE ObjSN LIKE @ObjSN + '%'";

            SqlDataAdapter adapter = new SqlDataAdapter(sql,

                ConfigurationManager.ConnectionStrings["ZEUS"].ConnectionString);

            adapter.SelectCommand.Parameters.AddWithValue("@ObjSN", e.Text);

            DataTable dt = new DataTable();

            adapter.Fill(dt);

            RadComboBox comboBox = (RadComboBox)sender;

            comboBox.Items.Clear();

            foreach (DataRow row in dt.Rows)

            {

                RadComboBoxItem item = new RadComboBoxItem();

                item.Text = row["ObjSN"].ToString();

                item.Value = row["ObjId"].ToString();

                item.Attributes.Add("ObjType", row["ObjType"].ToString());

                comboBox.Items.Add(item);

                item.DataBind();

            }

        }

        protected void RadComboBox1_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)

        {

            Session["ObjId"] = e.Value;

        }

        protected void RadComboBox5_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)

        {

            string sql = "SELECT [CustId], [CustName] FROM [Customers] WHERE CustName LIKE @CustName + '%'";

            var con = new SqlConnection(ConfigurationManager.ConnectionStrings["ZEUS"].ConnectionString);

            var cmd = new SqlCommand(sql, con);

            var reader = default(SqlDataReader);

            cmd.Parameters.AddWithValue("@CustName", e.Text);

            try

            {

                con.Open();

                reader = cmd.ExecuteReader(CommandBehavior.CloseConnection);

                var obj = default(object);

                RadComboBox comboBox = (RadComboBox)sender;

                while (reader.Read())

                {

                    obj = reader["CustId"];

                    var id = obj == DBNull.Value ? 0 : Convert.ToInt64(obj);

                    obj = reader["CustName"];

                    var name = obj == DBNull.Value ? string.Empty : Convert.ToString(obj);

                    RadComboBoxItem item = new RadComboBoxItem();

                    item.Text = name;

                    item.Value = id.ToString();

                    comboBox.Items.Add(item);

                }

            }

            finally

            {

                if (reader != null && !reader.IsClosed) reader.Close();

                if (con != null && con.State == ConnectionState.Open) con.Close();

            }

        }

        protected void RadComboBox5_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)

        {

            Session["CustId"] = e.Value;

        }

        protected void RadComboBox6_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)

        {

            string sql = "SELECT [CustId], [CustName] FROM [Customers] WHERE CustName LIKE @CustName + '%'";

            var con = new SqlConnection(ConfigurationManager.ConnectionStrings["ZEUS"].ConnectionString);

            var cmd = new SqlCommand(sql, con);

            var reader = default(SqlDataReader);

            cmd.Parameters.AddWithValue("@CustName", e.Text);

            try

            {

                con.Open();

                reader = cmd.ExecuteReader(CommandBehavior.CloseConnection);

                var obj = default(object);

                RadComboBox comboBox = (RadComboBox)sender;

                while (reader.Read())

                {

                    obj = reader["CustId"];

                    var id = obj == DBNull.Value ? 0 : Convert.ToInt64(obj);

                    obj = reader["CustName"];

                    var name = obj == DBNull.Value ? string.Empty : Convert.ToString(obj);

                    RadComboBoxItem item = new RadComboBoxItem();

                    item.Text = name;

                    item.Value = id.ToString();

                    comboBox.Items.Add(item);

                }

            }

            finally

            {

                if (reader != null && !reader.IsClosed) reader.Close();

                if (con != null && con.State == ConnectionState.Open) con.Close();

            }

        }

        protected void RadComboBox6_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)

        {

            Session["CustId"] = e.Value;

        }

    }

}

У меня есть приложение, которое не загружается в IE. Когда я смотрю в консоль, я вижу, что тот же код работает в IE11, но код, не работающий в RDP IE11, не может определить точную причину проблемы. При сохранении пишет, что не удалось загрузить zip-документ.

SCRIPT7002: XMLHttpRequest: сетевая ошибка 0x800c0007, данные для запрошенного ресурса недоступны

1 ответ

Была такая же ошибка. Это произошло из-за того, что IE неправильно обрабатывал дефляцию. Используйте gzip вместо deflate.


0

Chris
24 Ноя 2018 в 22:08

SharePoint Asked on November 13, 2021

I am not sure wha is going on here but I am repeatedly receiving this error when trying to use the REST API when saving a form. I make the $.ajax call, wait for the promise to return but at some point the promise gets stuck in the middle and never returns, but instead if I go through enough F10 function in the debugger this is the error I receive. I am at my wits end because I have this working perfectly fine using the same methods on other sites, but this one doesn’t seem to want to cooperate.

var promise1, promise2;
var promise_array = [];

if(vm.receivables) {
 promise1 = user.postDealItem(args....).then(function(response) {
           vm.model.recId = response.Id;
           return response
});
}

if(vm.standard) {
 promise2 = user.postDealItem(args...).then(function(response) {
           vm.model.stdId = response.Id;
           return response
});
}

if(promise1 != null) promise_array.push(promise1);
if(promise2 != null) promise_array.push(promise2);

$.when.apply($,promise_array).done(function(response) {
    //never gets to this point
});

The promise never returns even on the few times it reaches a success stage, it just reloads the page. At my wits end over this one, have been dealing with this for the past 2 days and have not gotten any closer to a solution. I am using SP2013 online at my company’s site and have angular integrated with it(although I prefer jQuery promises/$ajax methods)

One Answer

In fact the answer was an issue with IE11 that appears intermittently where a post request times out between the send and the receive, so when the post returns, it has nowhere to send the data to—no error, no exception, no nothing most times, just a reload of the page…

I tracked it down by watching th network very closely before it sent and stopped it right before it reloaded. It aborted the XMLHTTPRequest and then I started digging…found that you need to set a few other blank functions in the ajax cal like completed and beforeSend and then put timeout: 0…this somehow prevents IE11 from timing out…worked the first attempt after I did this and every attempt after…

IE is the worst browser ever made, it needs to die a quick painful death.

Answered by MattE on November 13, 2021

Add your own answers!

Related Questions

Ask a Question

Get help from others!

Recent Questions

  • How Do I Get The Ifruit App Off Of Gta 5 / Grand Theft Auto 5
  • Iv’e designed a space elevator using a series of lasers. do you know anybody i could submit the designs too that could manufacture the concept and put it to use
  • Need help finding a book. Female OP protagonist, magic
  • Why is the WWF pending games (“Your turn”) area replaced w/ a column of “Bonus & Reward”gift boxes?
  • Does Google Analytics track 404 page responses as valid page views?

Recent Answers

  • Jon Church on Why fry rice before boiling?
  • Joshua Engel on Why fry rice before boiling?
  • haakon.io on Why fry rice before boiling?
  • Lex on Does Google Analytics track 404 page responses as valid page views?
  • Peter Machado on Why fry rice before boiling?

  • Xmlhttprequest сетевая ошибка 0x2ee2 не удалось завершить действие ошибка 00002ee2
  • Xml файл не прошел форматный контроль ошибка 503 как исправить
  • Xml карта сайта yoast seo ошибка 404
  • Xmeye пользователь заблокирован код ошибки 11303
  • Xmeye ошибка 604000 при входе