/ __ browserLink / requestData:输入字符串的格式不正确

时间:2014-12-10 17:28:04

标签: asp.net-mvc angularjs

更新: 禁用browserLink后会出现以下错误:

你几乎发布了我发现这个浏览器链接功能的同时我已经从VS IDE和web.config中禁用并获得相同的错误消息 enter image description here

GET http://localhost:4416/home/about net::ERR_CONNECTION_REFUSED VM1616:8113 GET http://localhost:4416/home/about net::ERR_CONNECTION_REFUSED VM1616:8113 GET http://localhost:4416/home/about net::ERR_CONNECTION_REFUSED VM1616:8113 GET http://localhost:4416/home/about net::ERR_CONNECTION_REFUSED VM1616:8113 GET http://localhost:4416/home/about net::ERR_CONNECTION_REFUSED VM1616:8113 GET http://localhost:4416/home/about net::ERR_CONNECTION_REFUSED VM1616:8113 GET http://localhost:4416/home/about net::ERR_CONNECTION_REFUSED VM1616:8113 GET http://localhost:4416/home/about net::ERR_CONNECTION_REFUSED VM1616:8113 GET http://localhost:4416/home/about net::ERR_CONNECTION_REFUSED VM1616:8113 GET http://localhost:4416/home/about net::ERR_CONNECTION_REFUSED VM1616:8113 GET http://localhost:4416/home/about net::ERR_CONNECTION_REFUSED VM1616:8113 GET http://localhost:4416/home/about net::ERR_CONNECTION_REFUSED VM1616:8113 GET http://localhost:4416/home/about net::ERR_CONNECTION_REFUSED VM1616:8113 GET http://localhost:4416/home/about net::ERR_CONNECTION_REFUSED VM1616:8113 GET http://localhost:4416/home/about net::ERR_CONNECTION_REFUSED VM1616:8113 GET http://localhost:4416/home/about net::ERR_CONNECTION_REFUSEDVM1616:8113 (anonymous function)VM1616:7915 sendReqVM1616:7655 serverRequestVM1616:11046 wrappedCallbackVM1616:11046 wrappedCallbackVM1616:11132 (anonymous function)VM1616:12075 Scope.$evalVM1616:11903 Scope.$digestVM1616:12179 Scope.$applyVM1265:1341 (anonymous function)VM1265:3762 invokeVM1265:1339 doBootstrapVM1265:1353 bootstrapVM1265:1301 angularInitVM1265:21048 (anonymous function)VM1264:1037 fireVM1264:1148 self.fireWithVM1264:433 jQuery.extend.ready

更新:

如果我使用http://visualstudiogallery.msdn.microsoft.com/cc6c9c5f-2846-4822-899f-a6c295cd4f2b AngularStart模板创建一个新项目,我会收到此错误。我的其他项目也使用Angular。

我刚刚开始使用这个(AngularStart https://visualstudiogallery.msdn.microsoft.com/cc6c9c5f-2846-4822-899f-a6c295cd4f2b)模板,当你使用这个模板时,它已经添加了很少的菜单项,所以只是为了测试目的,我添加了一个名为&#34的新菜单项。员工"我和其他人的连接方式完全相同,当我运行应用程序并且除了我添加的(员工)之外的所有链接都正在工作时,当我在Chrome控制台中查看它时看到了什么' s然后我看到非常奇怪的错误,如下所示,我不知道该从错误消息中取出什么

所以这就是我所做的:

我在App_start\bundleconfig.cs中添加了

 bundles.Add(new ScriptBundle("~/bundles/app").Include(
                        "~/Scripts/app/app.js",
                        "~/Scripts/app/services.js",
                        "~/Scripts/app/directives.js",
                        "~/Scripts/app/main.js",
                        "~/Scripts/app/contact.js",
                        "~/Scripts/app/about.js",
                        "~/Scripts/app/demo.js",
                        "~/Scripts/app/employees.js" //<<<NEW ADDED
                        ));

Controllers

HomeController.cs我已添加:

   public ActionResult Employees()
    {
        return View();
    }

Scripts/app/我添加了一个新的.JS文件,并将其命名为employees.js

我有以下内容:

angular.module('main')
    .controller('employeesController', ['$scope', function ($scope) {

    }]);

app.JS

var appRoot = angular.module('main', ['ngRoute', 'ngGrid', 'ngResource', 'angularStart.services', 'angularStart.directives']);     //Define the main module

appRoot
    .config(['$routeProvider', function ($routeProvider) {
        //Setup routes to load partial templates from server. TemplateUrl is the location for the server view (Razor .cshtml view)
        $routeProvider
            .when('/home', { templateUrl: '/home/main', controller: 'MainController' })            
            .when('/employees', { templateUrl: '/home/employees', controller: 'employeesController' })
            .when('/contact', { templateUrl: '/home/contact', controller: 'ContactController' })
            .when('/about', { templateUrl: '/home/about', controller: 'AboutController' })
            .when('/demo', { templateUrl: '/home/demo', controller: 'DemoController' })
            .when('/angular', { templateUrl: '/home/angular' })
            .otherwise({ redirectTo: '/home' });
    }])
    .controller('RootController', ['$scope', '$route', '$routeParams', '$location', function ($scope, $route, $routeParams, $location) {
        $scope.$on('$routeChangeSuccess', function (e, current, previous) {
            $scope.activeViewPath = $location.path();
        });
    }]);

最后,我在Views/Home/Employees.cshtml

中添加了视图

有人知道发生了什么事吗?或者有没有其他好的模板,我可以使用angularjs与mvc?

Failed to load resource: the server responded with a status of 500 (Internal Server Error)
chrome-extension://boadgeojelhgndaghljhdicfkmllpafd/cast_sender.js Failed to load resource: net::ERR_FAILED
chrome-extension://dliochdbjfkdbacpmhlcpmleaejidimm/cast_sender.js Failed to load resource: net::ERR_FAILED
chrome-extension://hfaagokkkhdbgiakmmlclaapfelnkoah/cast_sender.js Failed to load resource: net::ERR_FAILED
chrome-extension://fmfcbgogabcbclcofgocippekhfcmgfj/cast_sender.js Failed to load resource: net::ERR_FAILED
chrome-extension://enhhojjnijigcajfphajepfemndkmdlo/cast_sender.js Failed to load resource: net::ERR_FAILED
http://localhost:4416/__browserLink/requestData/1cb60acbdd0949f08efa47be301eee7c?version=2 Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:4416/__browserLink/requestData/cc7c21b2841b40d3836766c0b3f9319f?version=2 Failed to load resource: the server responded with a status of 500 (Internal Server Error)
http://localhost:4416/__browserLink/requestData/cc7c21b2841b40d3836766c0b3f9319f?version=2 Failed to load resource: the server responded with a status of 404 (Not Found)
browserLink?_=1418231439368:37 GET http://localhost:4416/__browserLink/requestData/cfde8801f070426e9b4f602858301981?version=2 500 (Internal Server Error)
browserLink?_=1418231439384:37 GET http://localhost:4416/__browserLink/requestData/cfde8801f070426e9b4f602858301981?version=2 404 (Not Found)
browserLink?_=1418231440014:37 GET http://localhost:4416/__browserLink/requestData/95c459369e354b8ea0e4afca9f1f849a?version=2 500 (Internal Server Error)
browserLink?_=1418231440030:37 GET http://localhost:4416/__browserLink/requestData/95c459369e354b8ea0e4afca9f1f849a?version=2 404 (Not Found)
browserLink?_=1418231440779:37 GET http://localhost:4416/__browserLink/requestData/1cb60acbdd0949f08efa47be301eee7c?version=2 404 (Not Found)
browserLink?_=1418231440795:37 GET http://localhost:4416/__browserLink/requestData/1cb60acbdd0949f08efa47be301eee7c?version=2 404 (Not Found)
browserLink?_=1418231441644:37 GET http://localhost:4416/__browserLink/requestData/1cb60acbdd0949f08efa47be301eee7c?version=2 404 (Not Found)
browserLink?_=1418231441660:37 GET http://localhost:4416/__browserLink/requestData/1cb60acbdd0949f08efa47be301eee7c?version=2 404 (Not Found)
browserLink?_=1418231442667:37 GET http://localhost:4416/__browserLink/requestData/1cb60acbdd0949f08efa47be301eee7c?version=2 404 (Not Found)
browserLink?_=1418231447529:62 Uncaught TypeError: Cannot read property 'pingInterval' of undefined
browserLink?_=1418231447545:62 Uncaught TypeError: Cannot read property 'pingInterval' of undefined
browserLink?_=1418231448923:62 Uncaught TypeError: Cannot read property 'pingInterval' of undefined
browserLink?_=1418231448939:62 Uncaught TypeError: Cannot read property 'pingInterval' of undefined
browserLink?_=1418231449854:62 Uncaught TypeError: Cannot read property 'pingInterval' of undefined
browserLink?_=1418231449838:62 Uncaught TypeError: Cannot read property 'pingInterval' of undefined
browserLink?_=1418231451929:37 GET http://localhost:4416/__browserLink/requestData/6dbde27550d64f9281632aa6c57601e6?version=2 500 (Internal Server Error)
browserLink?_=1418231455495:37 GET http://localhost:4416/__browserLink/requestData/6dbde27550d64f9281632aa6c57601e6?version=2 404 (Not Found)
browserLink?_=1418231456556:37 GET http://localhost:4416/__browserLink/requestData/6dbde27550d64f9281632aa6c57601e6?version=2 404 (Not Found)
browserLink?_=1418231460243:37 GET http://localhost:4416/__browserLink/requestData/6dbde27550d64f9281632aa6c57601e6?version=2 404 (Not Found)
browserLink?_=1418231464282:37 GET http://localhost:4416/__browserLink/requestData/6dbde27550d64f9281632aa6c57601e6?version=2 404 (Not Found)
browserLink?_=1418231467383:37 GET http://localhost:4416/__browserLink/requestData/6dbde27550d64f9281632aa6c57601e6?version=2 404 (Not Found)
browserLink?_=1418231468447:37 GET http://localhost:4416/__browserLink/requestData/6dbde27550d64f9281632aa6c57601e6?version=2 404 (Not Found)
browserLink?_=1418231471796:37 GET http://localhost:4416/__browserLink/requestData/6dbde27550d64f9281632aa6c57601e6?version=2 404 (Not Found)
browserLink?_=1418231473926:37 GET http://localhost:4416/__browserLink/requestData/6dbde27550d64f9281632aa6c57601e6?version=2 404 (Not Found)
browserLink?_=1418231450966:37 GET http://localhost:4416/__browserLink/requestData/6dbde27550d64f9281632aa6c57601e6?version=2 404 (Not Found)
browserLink?_=1418231450950:37 GET http://localhost:4416/__browserLink/requestData/6dbde27550d64f9281632aa6c57601e6?version=2 404 (Not Found)
browserLink?_=1418231451945:37 GET http://localhost:4416/__browserLink/requestData/6dbde27550d64f9281632aa6c57601e6?version=2 404 (Not Found)
browserLink?_=1418231452843:37 GET http://localhost:4416/__browserLink/requestData/6dbde27550d64f9281632aa6c57601e6?version=2 404 (Not Found)
browserLink?_=1418231452827:37 GET http://localhost:4416/__browserLink/requestData/6dbde27550d64f9281632aa6c57601e6?version=2 404 (Not Found)
browserLink?_=1418231453752:37 GET http://localhost:4416/__browserLink/requestData/6dbde27550d64f9281632aa6c57601e6?version=2 404 (Not Found)
browserLink?_=1418231453768:37 GET http://localhost:4416/__browserLink/requestData/6dbde27550d64f9281632aa6c57601e6?version=2 404 (Not Found)
browserLink?_=1418231454557:37 GET http://localhost:4416/__browserLink/requestData/6dbde27550d64f9281632aa6c57601e6?version=2 404 (Not Found)
browserLink?_=1418231454573:37 GET http://localhost:4416/__browserLink/requestData/6dbde27550d64f9281632aa6c57601e6?version=2 404 (Not Found)
browserLink?_=1418231455511:37 GET http://localhost:4416/__browserLink/requestData/6dbde27550d64f9281632aa6c57601e6?version=2 404 (Not Found)
browserLink?_=1418231456540:62 Uncaught TypeError: Cannot read property 'pingInterval' of undefined
browserLink?_=1418231456556:62 Uncaught TypeError: Cannot read property 'pingInterval' of undefined
browserLink?_=1418231463120:62 Uncaught TypeError: Cannot read property 'pingInterval' of undefined
browserLink?_=1418231463136:62 Uncaught TypeError: Cannot read property 'pingInterval' of undefined
browserLink?_=1418231464266:62 Uncaught TypeError: Cannot read property 'pingInterval' of undefined
browserLink?_=1418231464282:62 Uncaught TypeError: Cannot read property 'pingInterval' of undefined
browserLink?_=1418231465356:62 Uncaught TypeError: Cannot read property 'pingInterval' of undefined
browserLink?_=1418231465372:62 Uncaught TypeError: Cannot read property 'pingInterval' of undefined
browserLink?_=1418231466429:62 Uncaught TypeError: Cannot read property 'pingInterval' of undefined
browserLink?_=1418231466445:62 Uncaught TypeError: Cannot read property 'pingInterval' of undefined
browserLink?_=1418231467367:62 Uncaught TypeError: Cannot read property 'pingInterval' of undefined
browserLink?_=1418231467383:62 Uncaught TypeError: Cannot read property 'pingInterval' of undefined
browserLink?_=1418231468447:62 Uncaught TypeError: Cannot read property 'pingInterval' of undefined
browserLink?_=1418231469465:62 Uncaught TypeError: Cannot read property 'pingInterval' of undefined
browserLink?_=1418231468431:62 Uncaught TypeError: Cannot read property 'pingInterval' of undefined
browserLink?_=1418231469481:62 Uncaught TypeError: Cannot read property 'pingInterval' of undefined
browserLink?_=1418231470758:62 Uncaught TypeError: Cannot read property 'pingInterval' of undefined
browserLink?_=1418231470774:62 Uncaught TypeError: Cannot read property 'pingInterval' of undefined
browserLink?_=1418231471796:62 Uncaught TypeError: Cannot read property 'pingInterval' of undefined
browserLink?_=1418231471812:62 Uncaught TypeError: Cannot read property 'pingInterval' of undefined
browserLink?_=1418231472880:62 Uncaught TypeError: Cannot read property 'pingInterval' of undefined
browserLink?_=1418231472896:62 Uncaught TypeError: Cannot read property 'pingInterval' of undefined
browserLink?_=1418231473942:62 Uncaught TypeError: Cannot read property 'pingInterval' of undefined
browserLink?_=1418231473926:62 Uncaught TypeError: Cannot read property 'pingInterval' of undefined
browserLink?_=1418231457456:64 [12:12:19 GMT-0500 (Eastern Standard Time)] Browser Link: Failed to match method call MadsKristensen.EditorExtensions.BrowserLink.Menu.MenuBrowserLinkFactory.setVisibility
browserLink?_=1418231457472:64 [12:12:19 GMT-0500 (Eastern Standard Time)] Browser Link: Failed to match method call MadsKristensen.EditorExtensions.BrowserLink.Menu.MenuBrowserLinkFactory.setVisibility
browserLink?_=1418231458402:64 [12:12:19 GMT-0500 (Eastern Standard Time)] Browser Link: Failed to match method call MadsKristensen.EditorExtensions.BrowserLink.Menu.MenuBrowserLinkFactory.setVisibility
browserLink?_=1418231458402:64 [12:12:19 GMT-0500 (Eastern Standard Time)] Browser Link: Failed to match method call MadsKristensen.EditorExtensions.BrowserLink.PixelPushing.PixelPushingModeFactory.setPixelPusingMode
browserLink?_=1418231458418:64 [12:12:19 GMT-0500 (Eastern Standard Time)] Browser Link: Failed to match method call MadsKristensen.EditorExtensions.BrowserLink.Menu.MenuBrowserLinkFactory.setVisibility
browserLink?_=1418231458418:64 [12:12:19 GMT-0500 (Eastern Standard Time)] Browser Link: Failed to match method call MadsKristensen.EditorExtensions.BrowserLink.PixelPushing.PixelPushingModeFactory.setPixelPusingMode
browserLink?_=1418231459315:64 [12:12:19 GMT-0500 (Eastern Standard Time)] Browser Link: Failed to match method call MadsKristensen.EditorExtensions.BrowserLink.Menu.MenuBrowserLinkFactory.setVisibility
browserLink?_=1418231459331:64 [12:12:19 GMT-0500 (Eastern Standard Time)] Browser Link: Failed to match method call MadsKristensen.EditorExtensions.BrowserLink.Menu.MenuBrowserLinkFactory.setVisibility
browserLink?_=1418231459331:64 [12:12:19 GMT-0500 (Eastern Standard Time)] Browser Link: Failed to match method call MadsKristensen.EditorExtensions.BrowserLink.PixelPushing.PixelPushingModeFactory.setPixelPusingMode
browserLink?_=1418231460259:64 [12:12:19 GMT-0500 (Eastern Standard Time)] Browser Link: Failed to match method call MadsKristensen.EditorExtensions.BrowserLink.Menu.MenuBrowserLinkFactory.setVisibility
browserLink?_=1418231460259:64 [12:12:19 GMT-0500 (Eastern Standard Time)] Browser Link: Failed to match method call MadsKristensen.EditorExtensions.BrowserLink.PixelPushing.PixelPushingModeFactory.setPixelPusingMode
browserLink?_=1418231460243:64 [12:12:19 GMT-0500 (Eastern Standard Time)] Browser Link: Failed to match method call MadsKristensen.EditorExtensions.BrowserLink.Menu.MenuBrowserLinkFactory.setVisibility
browserLink?_=1418231461177:64 [12:12:19 GMT-0500 (Eastern Standard Time)] Browser Link: Failed to match method call MadsKristensen.EditorExtensions.BrowserLink.Menu.MenuBrowserLinkFactory.setVisibility
browserLink?_=1418231461193:64 [12:12:19 GMT-0500 (Eastern Standard Time)] Browser Link: Failed to match method call MadsKristensen.EditorExtensions.BrowserLink.Menu.MenuBrowserLinkFactory.setVisibility
browserLink?_=1418231461193:64 [12:12:19 GMT-0500 (Eastern Standard Time)] Browser Link: Failed to match method call MadsKristensen.EditorExtensions.BrowserLink.PixelPushing.PixelPushingModeFactory.setPixelPusingMode
browserLink?_=1418231462118:64 [12:12:19 GMT-0500 (Eastern Standard Time)] Browser Link: Failed to match method call MadsKristensen.EditorExtensions.BrowserLink.Menu.MenuBrowserLinkFactory.setVisibility
browserLink?_=1418231462134:64 [12:12:19 GMT-0500 (Eastern Standard Time)] Browser Link: Failed to match method call MadsKristensen.EditorExtensions.BrowserLink.Menu.MenuBrowserLinkFactory.setVisibility
browserLink?_=1418231462134:64 [12:12:19 GMT-0500 (Eastern Standard Time)] Browser Link: Failed to match method call MadsKristensen.EditorExtensions.BrowserLink.PixelPushing.PixelPushingModeFactory.setPixelPusingMode
browserLink?_=1418231457456:64 [12:12:25 GMT-0500 (Eastern Standard Time)] Browser Link: Failed to match method call MadsKristensen.EditorExtensions.BrowserLink.PixelPushing.PixelPushingModeFactory.setPixelPusingMode
browserLink?_=1418231457472:64 [12:12:25 GMT-0500 (Eastern Standard Time)] Browser Link: Failed to match method call MadsKristensen.EditorExtensions.BrowserLink.PixelPushing.PixelPushingModeFactory.setPixelPusingMode
browserLink?_=1418231459315:64 [12:12:25 GMT-0500 (Eastern Standard Time)] Browser Link: Failed to match method call MadsKristensen.EditorExtensions.BrowserLink.PixelPushing.PixelPushingModeFactory.setPixelPusingMode
browserLink?_=1418231458402:64 [12:12:52 GMT-0500 (Eastern Standard Time)] Browser Link: Failed to match method call MadsKristensen.EditorExtensions.BrowserLink.Menu.MenuBrowserLinkFactory.setVisibility
browserLink?_=1418231457472:64 [12:12:52 GMT-0500 (Eastern Standard Time)] Browser Link: Failed to match method call MadsKristensen.EditorExtensions.BrowserLink.Menu.MenuBrowserLinkFactory.setVisibility
browserLink?_=1418231457472:64 [12:12:52 GMT-0500 (Eastern Standard Time)] Browser Link: Failed to match method call MadsKristensen.EditorExtensions.BrowserLink.PixelPushing.PixelPushingModeFactory.setPixelPusingMode
browserLink?_=1418231458418:64 [12:12:52 GMT-0500 (Eastern Standard Time)] Browser Link: Failed to match method call MadsKristensen.EditorExtensions.BrowserLink.Menu.MenuBrowserLinkFactory.setVisibility
browserLink?_=1418231459315:64 [12:12:52 GMT-0500 (Eastern Standard Time)] Browser Link: Failed to match method call MadsKristensen.EditorExtensions.BrowserLink.Menu.MenuBrowserLinkFactory.setVisibility
browserLink?_=1418231423128:64 [12:12:52 GMT-0500 (Eastern Standard Time)] Browser Link: Failed to match method call MadsKristensen.EditorExtensions.BrowserLink.Menu.MenuBrowserLinkFactory.setVisibility

0 个答案:

没有答案