title: How to fix an error in "map.getview().setcenter" of openlayers?
body: <p>I implement openlayers in .net mvc with C#. I try to center a map and in local its works but on the server get an error.</p>
  <p>When I comment the line <code>map.getview().setcenter</code> the rest of the project works</p>
  <pre><code> $.ajax({
          url: &quot;GetCoordinateSibuc&quot;,
          type: &quot;post&quot;,
          dataType: 'json',
          data: JSON.stringify({ clientId: $('#filterClientSelect').val(), sibucId: $('#filterSibuc').val() }),
          contentType: &quot;application/json, charset=utf-8&quot;,
          success: function (response) {
  
              map.getView().setCenter([response.longitud, response.latitud], 11);
  
              var sibucStyle = new ol.style.Style({
                  image: new ol.style.Icon(({
                      anchor: [0.5, 5],
                      anchorXUnits: 'fraction',
                      anchorYUnits: 'pixels',
                      opacity: 1,
                      scale: 1,
                      src: '/Content/images/report/mark_sibuc1.png'
                  }))
              });
  </code></pre>
  <p>I expect to get the map center in the coordinates but i get error in JS like:</p>
  <blockquote>
  <p>Script terminate by timeout.</p>
  </blockquote>
  <p>And in the server log:</p>
  <blockquote>
  <p>perflib 1008</p>
  <p>perfnet 2004</p>
  </blockquote>