iis-express

Can't get .net core MVC to redirect 401 to /Account/Login

╄→гoц情女王★ 提交于 2019-12-25 04:12:31
问题 When I request a controller action that is [Authorize] decorated instead of being redirected to the login page I receive a 401 error. This is a .net core mvc app using the identity template running on IIS express. When i run the app from program.cs the redirect to login works fine. I've added explicit directions to for the cookie authentication to use the /Account/Login redirect both for configuration and services section, as well as configuring Identity to perform this redirect. I can't get

Multiple Developers working on same IIS Express Port through Citrix

匆匆过客 提交于 2019-12-25 02:59:29
问题 My team, is forced to use CITRIX for developing our ASP.NET code, without Admin privileges (so we can't use IIS to setup our websites). We're all working on the same website; however, for development purposes, we'd like to have our own dedicated IIS Express Ports. The problem is, by changing the IIS Express ports, we're modifying our project settings; so when we push our code to the source control, everyone else has to deal with the obvious merging problem I'm wondering if there's a better

I'm not able to debug asp .net core web applications under virtual directories in IIS Express

烈酒焚心 提交于 2019-12-25 01:19:33
问题 Hope, I will get help here, because, if seriosuly, I spent few days on this problem, and I really have no idea, what I missed, but I am not able to debug web apps on asp .net core under virtual directories. I did the same on my previous project on asp. net framework (not .net core), and it worked without any issues. The main idea is to have separate web applications for some paths in url (child sites): site.com - one root web application, site.com/broker/ - another web app, site.com/services

Server Error in '/asp.netwebadminfiles' Application - VS 2013

爱⌒轻易说出口 提交于 2019-12-24 17:43:12
问题 I'm working with ASP.Net web application and i want to create a membership user so i have to access the Web Configuration Tool for ASP.NET . i have run IISExpress commands in Prompt and it's works fine but whenever i run the http://localhost:5376/asp.netwebadminfiles/default.aspx?applicationPhysicalPath=C:\Users\user\Documents\Visual%20Studio%202013\Projects\MyWebsite&applicationUrl=/ in the browser i got this error ! the error message : Server Error in '/asp.netwebadminfiles' Application.

Server Error in '/asp.netwebadminfiles' Application - VS 2013

落花浮王杯 提交于 2019-12-24 17:43:06
问题 I'm working with ASP.Net web application and i want to create a membership user so i have to access the Web Configuration Tool for ASP.NET . i have run IISExpress commands in Prompt and it's works fine but whenever i run the http://localhost:5376/asp.netwebadminfiles/default.aspx?applicationPhysicalPath=C:\Users\user\Documents\Visual%20Studio%202013\Projects\MyWebsite&applicationUrl=/ in the browser i got this error ! the error message : Server Error in '/asp.netwebadminfiles' Application.

IIS Express and ASP.NET 2.0

时间秒杀一切 提交于 2019-12-24 16:46:18
问题 For IIS 7.5 Express, I understand that I can set the CLR version to 2.0 for a site from the command line using the /clr:v2.0 command line argument. For the life of me, I cannot find the documentation that explains how to specify it when using the /site argument. I would have thought it goes in the applicationhost.config file but damned if I can find it. Since the CLR version is website specific I would have thought it went into the section but...shrug. Thanks for any help you can provide. 回答1

OWIN not firing up if project not set as Startup with IIS Express

≡放荡痞女 提交于 2019-12-24 14:19:18
问题 I have a solution in VS2013 with the following setup: App.Web (Web Project with only static files) App.Web.API (Web API project with OWIN) Both the projects have a default url pointing to their own localhost:portX (I am using IIS Express), so App.Web is listening on localhost:2222 and APP.Web.API is listening on localhost:3333. I set up the App.Web.API to use OWIN and I added the package Microsoft.Owin.Host.SystemWeb for the autofire up in IIS. I put a breakpoint in the configuration method

appDomainCreationException in IIS Express using ASP.NET 5 beta7

会有一股神秘感。 提交于 2019-12-24 13:39:28
问题 After updating my app to beta7 I'm unable to run it from IIS Express using either view in browser or running it in the debugger it shows this exception in the browser but doesn't break on any exception in my code using the debugger: [Exception: Unexpected application failure. Status code '-2147024894'.] System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) +361 [HttpException (0x80004005): Unexpected application

Asp.net web API 2 separation Of Web client and web server development

浪尽此生 提交于 2019-12-24 08:29:13
问题 Our web application is developed by 2 teams. One team works on the client side, with it's own Branch for development, and the other works on the server side, also with it's own development branch. The client and the server are running separately, each one as a website on a different port. The websites are hosted over IIS Express during development, and in production they will run over IIS. Our ideal situation is that each team can develop completely separately and whenever a develop session

Web API 2 CORS IIS Express Debug and No Access-Control-Allow-Origin header

試著忘記壹切 提交于 2019-12-24 08:19:19
问题 Empty web.api project, install Microsoft.aspnet.webapi.cors 5.2.3, add config.EnableCors(); to webapiconfig. make controller and action public class HomeController : ApiController { [EnableCors("*" , "*" , "*")] public async Task<string> Get() { return await Task.FromResult("omg"); } } Debug app and Load up fiddler and do a request to http://localhost:61939/api/Home there are no CORS headers present. web.config contains: <system.webServer> <handlers> <remove name="ExtensionlessUrlHandler