简体   繁体   English

拒绝访问Web应用程序

[英]Access to the web application denied

I'm working on a project on visual studio, mvc with c # language. 我正在开发一个关于visual studio的项目,mvc和c#语言。 this project was passed to me by a colleague of mine and the problem is that when I try to log in I can't. 这个项目是由我的同事传递给我的,问题是当我尝试登录时我不能。 checking it several times I think the problem is on the angular controller. 多次检查我认为问题出在角度控制器上。 in fact when I try to log in I get "err" running even though I enter the correct data. 事实上,当我尝试登录时,即使输入正确的数据,我也会“错误”地运行。 the mistake that gives me is this: "Failed to load resource: net::ERR_CONNECTION_REFUSED [ http://localhost:1336/token] ". 给我的错误是:“无法加载资源:net :: ERR_CONNECTION_REFUSED [ http:// localhost:1336 / token] ”。

LoginController.prototype.doLogin = function(){
    var that = this;
    this.authService.login(this.vm.username, this.vm.password).then(
        function(response) {
            that.layoutService.gotoHome();
        }, function(err) {
            that.vm.hasInvalidData = true;
        }
    );
}

It looks like there is nothing running on port 1336 of your local machine, thus causing the Angular AJAX call to fail. 看起来本地计算机的端口1336上没有任何内容正在运行,从而导致Angular AJAX调用失败。 Make sure that you configure your MVC project in Visual Studio to listen on port 1336 and that it is set up as the Start-up project. 确保在Visual Studio中配置MVC项目以侦听端口1336并将其设置为启动项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 拒绝访问该路径(在Web应用程序下) - Access to the path (under web application) is denied Web服务访问被拒绝 - Web Service Access Denied 拒绝访问应用程序池 - Access to the application pool is denied 尝试使用asp.net Web应用程序提取系统信息时拒绝访问 - Getting access denied when trying to extract system information using a asp.net web application 在 IIS 8 上托管的 ASP.NET Web 应用程序上读取系统事件日志条目时访问被拒绝 - Access denied when reading system event log entries on ASP.NET web application hosted on IIS 8 ASP.net Web应用程序(不是MVC):访问Google GoogleWebAuthorizationBroker.AuthorizeAsync返回拒绝访问错误 - ASP.net Web Application (Not MVC): Accessing Google GoogleWebAuthorizationBroker.AuthorizeAsync returns access denied error 使用C#从Web应用程序打开文件夹,拒绝访问 - Opening a folder from web application using C# giving access denied Azure Web应用程序新X509Certificate2()导致System.Security.Cryptography.CryptographicException:访问被拒绝 - Azure Web Application new X509Certificate2() causing System.Security.Cryptography.CryptographicException: Access denied 未经授权:通过Web API拒绝访问 - Getting Unauthorized : Access denied on web api CORS在Web API中启用,但访问被拒绝 - CORS is enable in Web API but access is denied
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM