This is a migrated thread and some comments may be shown as answers.

Kendo Window Error while deploying to IIS

1 Answer 14 Views
Window
This is a migrated thread and some comments may be shown as answers.
Chandra
Top achievements
Rank 1
Chandra asked on 30 Dec 2020, 12:17 AM

We are using window component (Telerik UI for ASP.Net Core) in our ASP.Net core project and the code is provided below

in View

     win.center().open();
      win.refresh({
                url: "/DocumentProperties/Publish",
                 data: { documentID: id}
               });

Controller function

        public ViewResult Publish(Int32 documentID)
        {

        }

 

The code is working as expected while testing with visual studio in local machine. The contoller funciton is called and correct parameters are being passed. How ever when we publish the package and deploy to the Dev and QA Server( IIS 10) the conroller function is not getting called. while inspecting via developer toolbar we can see 404 not found. The issue is that an unwanted parameter gets added to the end of the call for example 

the resulting call as part of the refresh method is

/DocumentProperties/Publish?documentID=7&_=1609286664558

while the acutal/expected call should be 

/DocumentProperties/Publish?documentID=7

 

This parameter gets appended to all the other instances in the page (other functions) where refresh method is used

/Search/Details?id=7&param2=a&_=1609286664557:1 Failed to load resource: the server responded with a status of 404 (Not Found)

 

We have tested in both our IIS servers (Dev/QA) and behavior is same. Please provide a fix for the same,

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 01 Jan 2021, 12:38 PM

Hi,

The issue seems to be related with the jQuery ajax request as described here - https://stackoverflow.com/questions/3687729/who-add-single-underscore-query-parameter.

In order to prevent it you can set the refresh cache option to something different than false.

Regards,
Plamen
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Window
Asked by
Chandra
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or