iis-express

MVC 4 application goes to login page first using Windows auth when run

断了今生、忘了曾经 提交于 2019-12-20 07:23:02
问题 I am currently developing a project that will use Windows authentication to authorize users and set their specific permissions. However, every time I run the program to test, the default login page created by Visual Studio when I created the project (/Account/Login) always appears first, rather than going to Home/Index. The URL is usually http://localhost:50848/Account/Login?ReturnUrl=%2fViews%2fHome%2fIndex.cshtml when I start it up, rather than just http://localhost:50848 . I should also

Use IIS Express by default in Visual Studio 2010 (MVC3) web projects?

混江龙づ霸主 提交于 2019-12-20 01:52:37
问题 Just recently upgraded to Visual Studio 2010 SP1 and ASP.NET MVC3, but the only way I'm aware of using IIS with new projects is to set this up manually after the project is created. Is it possible to click a checkbox somewhere to make IIS Express the default development server for all of my VS web applications? 回答1: In VS Studio go to options and in Project and Solutions select Web Projects. Then check the only checkbox available in settings: Use IIS Express for new file-based web sites and

Remove 30MB upload limit on IIS express

别来无恙 提交于 2019-12-19 16:24:51
问题 Does anyone know how to remove the 30MB upload limit, specifically for IIS Express? I've tried editing the applicationhost.config and <security> <requestFiltering> <requestLimits maxAllowedContentLength="1050000"></requestLimits> </requestFiltering> </security> <location path="api/media/AsyncUpload"> <system.web> <httpRuntime maxRequestLength="1050000" /> <!-- The size specified is in kilobytes. The default is 4096 KB (4 MB). 1gb = 1048576 --> </system.web> </location> Seem to be set

Remove 30MB upload limit on IIS express

僤鯓⒐⒋嵵緔 提交于 2019-12-19 16:24:41
问题 Does anyone know how to remove the 30MB upload limit, specifically for IIS Express? I've tried editing the applicationhost.config and <security> <requestFiltering> <requestLimits maxAllowedContentLength="1050000"></requestLimits> </requestFiltering> </security> <location path="api/media/AsyncUpload"> <system.web> <httpRuntime maxRequestLength="1050000" /> <!-- The size specified is in kilobytes. The default is 4096 KB (4 MB). 1gb = 1048576 --> </system.web> </location> Seem to be set

Unable to Start Debugging. visual studio 2012 prompt after one time debug

半世苍凉 提交于 2019-12-19 12:24:32
问题 I am getting this error " Unable to Start Debugging " in visual studio 2012. I have also update the remote debugging sp2. also uninstalled and reinstalled vs2012 and added sp. still facing the same issue. My operating system is windows-8 64 bit. Also tried to run in Administrator user still the same. Unable to Start Debugging. visual studio 2012 回答1: Save your work, close Visual Studio then reopen your project 回答2: I had the same problem in my Visual Studio 2013. The solution I found is easy.

Error: allowDefinition='MachineToApplication' beyond application level

做~自己de王妃 提交于 2019-12-19 07:58:30
问题 there are a ton of SO postings on this subject. by far, the solution seems to be to configure the directory in IIS as an application. Another common solution is to remove backup web.config files from folders in the root. my problem is different because I'm running on IIS Express so there's no way to configure the folder as an application. what I've noticed is that every time I compile, there's a folder called obj in my root which causes the problem. So I have to manually remove it, every time

All requests getting HTTP Error 401.2 - Unauthorized response

£可爱£侵袭症+ 提交于 2019-12-18 21:26:31
问题 My MVC app has, until a few minutes ago, been working fine (with asp/net membership as part of the solution). However, without knowingly changing anything relevant every request, even to my homecontroller (which doesn't have any authorization attributes etc). I've taken all the entries out of the web.config for now relating to authorization, and I've check the applicationhost.config which has the following: <access sslFlags="None" /> <applicationDependencies> <application name="Active Server

Slow page refresh times during development

喜欢而已 提交于 2019-12-18 18:47:15
问题 We have a reasonably large ASP.NET MVC app that I work on in Visual Studio 2012 on Win 8. I have a strange issue with slow page load times after recompilation. Usually, the actual build time is about 5 seconds, then the browser opens up and it takes 1-2 minutes to load the page. Some points: It loads slowly whether I change a view or recompile the project completely This is not a performance issue, everything else works really well, there is enough RAM etc. It happens only with IIS Express.

Visual Studio 2015 can't start IIS Express

南楼画角 提交于 2019-12-18 18:43:28
问题 When I am trying to run an ASP.Net Core project in Visual Studio 2015, a Microsoft Visual Studio dialog appears "The project doesn't know how to run the profile IIS Express". Does anyone know anything about this message, or how to fix it? I've searched Google and the MSDN. There's nothing in the build logs, or the Windows event log. 回答1: This dialog showed up for me when I had migrated a project from dotnet RC1 to RC2. Before the fix I could still run it using dotnet run and from Visual

Visual Studio 2015 can't start IIS Express

血红的双手。 提交于 2019-12-18 18:43:06
问题 When I am trying to run an ASP.Net Core project in Visual Studio 2015, a Microsoft Visual Studio dialog appears "The project doesn't know how to run the profile IIS Express". Does anyone know anything about this message, or how to fix it? I've searched Google and the MSDN. There's nothing in the build logs, or the Windows event log. 回答1: This dialog showed up for me when I had migrated a project from dotnet RC1 to RC2. Before the fix I could still run it using dotnet run and from Visual