我已经使用了这段代码并且正在使用我的本地副本,但是当我在IIS 7中发布它时,它已经无法正常工作了。 问题出现在" url:" / dashboard / GetEvents_v2"" ... 我想,它不会在那个位置,因为它总是失败... 请指教。
$(document).ready(function () {
var events = [];
var selectedEvent = null;
FetchEventAndRenderCalendar();
function FetchEventAndRenderCalendar() {
alert('FetchEventAndRenderCalendar');
events = [];
alert('ajax');
$.ajax({
type: "GET",
url: "/dashboard/GetEvents_v2",
success: function (data) {
alert('success');
},
error: function (error) {
alert('failedzzz');
}
。directory link 同样的事情发生在我的图像上,它没有显示在网页上。 我在下面的目录中有一个图像,但它没有显示... C:\的Inetpub \ wwwroot的\ WMS \图片\化身\ avatar.jpg 见图像目录,它存在于那里。 另请注意,它在我的本地副本上工作,但在已发布的IIS中没有。
。 这是日志:错误" GetEvents_v2 "和" /Images/Avatar/avatar.jpg "。请帮忙!
#Date: 2018-05-24 02:55:26
#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status time-taken
2018-05-24 02:55:26 ::1 GET /wms/Dashboard - 80 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:56.0)+Gecko/20100101+Firefox/56.0 500 0 64 5077
2018-05-24 02:55:28 ::1 GET /wms/ - 80 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:56.0)+Gecko/20100101+Firefox/56.0 200 0 0 1382
2018-05-24 02:55:28 ::1 GET /wms/fonts/fontawesome-webfont.woff2 - 80 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:56.0)+Gecko/20100101+Firefox/56.0 404 3 50 2
2018-05-24 02:55:28 ::1 GET /wms/fonts/fontawesome-webfont.woff - 80 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:56.0)+Gecko/20100101+Firefox/56.0 404 3 50 0
2018-05-24 02:55:29 ::1 POST /wms/ - 80 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:56.0)+Gecko/20100101+Firefox/56.0 302 0 0 36
2018-05-24 02:55:29 ::1 GET /wms/Dashboard - 80 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:56.0)+Gecko/20100101+Firefox/56.0 200 0 0 448
2018-05-24 02:55:29 ::1 GET /Images/Avatar/avatar.jpg - 80 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:56.0)+Gecko/20100101+Firefox/56.0 404 0 2 0
2018-05-24 02:55:29 ::1 GET /wms/fonts/fontawesome-webfont.woff2 - 80 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:56.0)+Gecko/20100101+Firefox/56.0 404 3 50 25
2018-05-24 02:55:29 ::1 GET /dashboard/GetEvents_v2 - 80 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:56.0)+Gecko/20100101+Firefox/56.0 404 0 2 37
2018-05-24 02:55:29 ::1 GET /wms/fonts/fontawesome-webfont.woff - 80 - ::1 Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:56.0)+Gecko/20100101+Firefox/56.0 404 3 50 8