iis-express

What account does IIS Express run under?

眉间皱痕 提交于 2019-11-30 10:50:07
I need to get my dev machine to read a certificate from the local machine store to do this I need to run winhttpcertcfg.exe and specify the account I want to elevate What would this account be for IIS express? (For IIS it would be the IWAM_MachineName) thanks a lot IIS Express runs as your user account. When installed, you should find an IISExpress folder in your My Documents folder. 来源: https://stackoverflow.com/questions/8446359/what-account-does-iis-express-run-under

IIS Express 8 - Cannot write configuration file

泪湿孤枕 提交于 2019-11-30 10:48:35
I am trying to use IIS Express 8 for a MVC site in VS2012. I am getting the following error whenever I attempt to create the site: Filename: \?\C:\Users\xxxxxx\Documents\IISExpress\config\applicationHost.config Error: Cannot write configuration file Is there some way to force IIS Express to use a different location for the config & logs folders? I understand I can point to a different location when I am running iisexpress.exe from the command line, but I have no control over this when using Visual Studio. Alternatively, has anyone got any suggestions why the error is happening? (Side note: My

How to automate “run asp.net website” from command line?

╄→尐↘猪︶ㄣ 提交于 2019-11-30 09:49:39
Right now, I do the following manual steps to run an ASP.NET website on my PC: Open Visual Studio and the project inside it Press Ctrl+F5 which: Builds the solution Runs IIS express Opens a browser How to write a batch file that does the same thing? The last step (opening a browser) is optional but at least I need to build the project and start it on IIS express (or whatever is configured in the project file). From the visual studio command line you could do the following: devenv "C:\path\FooSolution.sln" /run MSDN Devenv Command Line Switches Reference Wrapping this all up into a batch file

Running the 64 bit version of IIS Express 8 RC with Visual Studio 2010

南笙酒味 提交于 2019-11-30 09:46:56
I have a web app that uses the 64 bit version of SharpSvn , a managed DLL with an unmanaged dependency. It will not run in IIS Express 7.0. Switching to the 32 bit version of the assembly works fine. I installed the 64 bit version of IIS 8 RC . However Visual Studio 2010 launches the 32 bit version of IIS Express. . I can launch the 64 bit version of IIS manually with the following command: "C:\Program Files\IIS Express\iisexpress.exe" /config:"C:\Users\zippy\Documents\IISExpress\config\applicationhost.config" /site:"MrDVCS" /apppool:"Clr4IntegratedAppPool" In my WebProject.csproj The relevant

Visual Studio 2017 gives 'Adding the Certificate to The Trusted Root Certificates store failed with the following Errror'

落花浮王杯 提交于 2019-11-30 08:04:32
I am trying to run ASP MVC application with SSL mode set to true and whenever i run the application, i get prompt to trust the IIS Express SSL certificate. Upon clicking Yes, it gives the error message 'Adding the Certificate to The Trusted Root Certificates store failed with the following Errror. Access is denied'. I am running my Visual Studio 2017 as administrator mode. I have also deleted localhost certificate by going to MMC. Has anyone else run into this issue. SOLN: This is what worked for me. deleted all localhost certificates. ran repair IIS Express in Add/Remove Programs. Copy and

How to use subdomains with localhost on IISExpress?

血红的双手。 提交于 2019-11-30 07:59:44
I'm serving my MVC app locally via localhost:5252 right now. I'm trying to set up my app to test multi-tenancy by having both localhost and contoso.localhost point to my web app instance. I set up my hosts file with the corresponding entry: 127.0.0.1 contoso.localhost However I'm not sure what else I need to do to make this work. Right now I just get a standard IIS8 page when I navigate, even though I haven't done anything in IIS Manager. I'm trying to avoid having to use IIS locally, as everything is working with IISExpress. Is there any easy way to achieve this? This can be accomplished by

Programmatically determine if code is running under IIS Express

≡放荡痞女 提交于 2019-11-30 07:50:03
问题 I am not sure this is even possible, but I am hoping for a clue as to determine if the code that is currently executing is running under IIS Express. My best approximation so far, which is incredibly hackish and will certainly fail/break at some point: bool IsExpress = Request.ServerVariables["SERVER_SOFTWARE"] == "Microsoft-IIS/7.5" && Int32.Parse(Request.ServerVariables["INSTANCE_ID"]) > 1000000000; Certainly there has to be a better way. My examination of the Application, Server and

Microsoft.Web.Administration.ServerManager looking in wrong directory for IISExpress applicationHost.config

痞子三分冷 提交于 2019-11-30 06:56:19
I have a strange problem when trying to get the application pools on the current machine. It seems that when IISExpress is installed, the Microsoft code wants to check IISExpress in addition to the full IIS. IISExpress uses separate applicationHost files per user. I'm not sure whether this call will require it to check all of those, or just those for the current user. Regardless, it's not finding the one it's looking for in the 'C:\Windows\system32\config\systemprofile\' directory. It should be going to %userprofile% or 'C:\Users\Administrator\' for the user that the application pool that this

IIS Express HTTP Error 401.2 - Unauthorized

好久不见. 提交于 2019-11-30 06:11:40
I have tried the suggestions in this post but I can not get Windows Authentication working with IIS Express in Vision Studio 2010. Now I get following error: Here are my applicationhost.config file entries: ... <add name="WindowsAuthenticationModule" lockItem="false" /> ... <authentication> <anonymousAuthentication enabled="true" userName="" /> <basicAuthentication enabled="false" /> <clientCertificateMappingAuthentication enabled="false" /> <digestAuthentication enabled="false" /> <iisClientCertificateMappingAuthentication enabled="false"> </iisClientCertificateMappingAuthentication>

How To Disable Https in Visual Studio 2017 Web Proj ASP.NET Core 2.0

纵然是瞬间 提交于 2019-11-30 06:00:48
I've created a default project in Visual Studio 2017 with ASP.NET Core 2.0. I've chosen the Web App with MVC and with Individual Use Auth. By default, it is coming up configured and working with https. I've tried disabling that by going into project properties and removing the user ssl and changing https to http but then I get either and IIS Express Connection error or a 404. I've not see default https before. Where is that coming from and where can I disable it? I've just created a default MVC app using net core 2.0. To disable SSL, you need to do 2 steps. You can do this either by using the