iis-express

Enabling PHP on IIS Express with Visual Studio (sans WebMatrix)

℡╲_俬逩灬. 提交于 2019-11-29 21:53:51
I am working on this web application which is mostly .NET, but a part is written in PHP. In my development environment, IIS Express is my web server of choice, so I would prefer to get PHP and .NET work together in this environment. First naive attempt: Just throw the PHP scripts into the web site, and load them in a browser. The result is an HTTP Error 404.21 - Not Found with the following suggestions: Install PHP and configure handlers correctly. Install and enable PHP for this web site. If you are using WebMatrix, follow these steps to enable PHP: Open the web site in WebMatrix. Select the

How do I change my IIS Express SSL certificate for one that will work with Chrome 58+?

南楼画角 提交于 2019-11-29 21:27:44
Chrome 58+ drops support for CN in SSL certs, which means (at least on my machine) that browsing sites hosted in IIS Express throw constant security warnings. How do I change my IIS Express SSL certificate for one that will work with Chrom 58+? The answer Chris gave solves the issue, thanks! Because my whole team had this issue, I created a little Powershell script to run the steps in Chris' answer. https://gist.github.com/camieleggermont/5b2971a96e80a658863106b21c479988 Running this in elevated mode did the trick for me. Chris This is how I fixed this. There may be an easier way (I'm sure

Running IIS Express without administrator rights

空扰寡人 提交于 2019-11-29 21:25:55
I've upgraded to iis express 7.5 with VS2010 SP1. Within the release notes it specified that express is able to run WITHOUT administrator permissions. When I try to run from the commandline (powershell cmd line) I receive the same "Access Denied" error (shown below) I was getting running with IIS Express 7. As far as I can tell admin rights is still required. Anyone been able to run without admin rights? The detailed error message is: Failed to call HttpAddUrl with http://MACHINE-NAME:80/ Failed to register URL "http://MACHINE-NAME:80/" for site "WebSiteName" application "/". Error description

IIS Express Access denied

我只是一个虾纸丫 提交于 2019-11-29 21:05:20
问题 I am trying to create new file in visual studio 2012 fileStream = new FileStream("google_com.txt", FileMode.CreateNew); But i keep getting this error Access to the path 'C:\Program Files (x86)\IIS Express\google_com.txt' is denied. Plz help to fix this poblem. 回答1: Solutions: Put a specific location for google_com.txt file. like C:\google_com.txt . Actually it is not allowing to create the file in default location(inside program files) as it might not have the proper privilege. If you want to

IIS Express unable to create the virtual directory

烂漫一生 提交于 2019-11-29 20:24:29
I'm using IIS Express to create a virtual directory at http://localhost:5000/ and received this error: Unable to create the virtual directory. The URL http://localhost:5000/ is already mapped to a different folder... This is because I've used the port 5000 for an old project before and it's no longer needed. My question is, how can I remove the old mapping using IIS Express so I can create the virtual directory at the same port again? Thanks You should be able to accomplish this in one of two ways. You can remove the old project, or change its port using WebMatrix , which has an administration

Wildcard hostname in IIS Express + VS 2015

99封情书 提交于 2019-11-29 18:28:30
问题 I have a multi-tenant application that is accessed in production as customer.ourdomain.com . For local development with IIS, we use a custom wildcard domain, company-localdev.com . With IIS, this works without any particular configuration. IIS Express, on the other hand, only binds to localhost . We have an ongoing migration project to ASP.NET 5, and we'd like to use IIS Express for an easier developer experience. Is it possible to have IIS Express listen to *.company-localdev.com:1234 ?

What is wrong with this HttpWebRequest/HttpWebResponse code (why is it considered a “bad” request (400))? [closed]

牧云@^-^@ 提交于 2019-11-29 18:28:02
Based on the info from this MS link , I've got the following code in a Windows CE / Compact Framework app which calls a REST method in a Web API server app: public static string SendXMLFile2(string uri, string data) { //TODO: Remove below after testing String s = data.Substring(0, 128); MessageBox.Show(String.Format("data length is {0}, uri is {1}, first part is {2}", data.Length, uri, s)); //TODO: Remove above after testing HttpWebRequest myHttpWebRequest=(HttpWebRequest)WebRequest.Create(uri); myHttpWebRequest.AllowWriteStreamBuffering=false; myHttpWebRequest.Method="POST"; UTF8Encoding

Prevent iisexpress from running the websites in a solution when the startup app is a console app

∥☆過路亽.° 提交于 2019-11-29 16:02:22
问题 I have a solution with a number of projects in it. Even if I set the web project's start options to: Don't open a page. Wait for a request from an external application. Use custom webserver. Base URL: http://localhost . And the startup project to: Single startup project Select the console application (not website) When I press start debugging, IIS express launches (shows up on the taskbar). How do I prevent from IIS Express from launching? I am only running a console application, and don't

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

末鹿安然 提交于 2019-11-29 14:53:42
问题 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). 回答1: From the visual studio command line you could do the following: devenv "C:

Local debugging of subdomains with VS 2015

无人久伴 提交于 2019-11-29 14:40:04
问题 I have a multi-tenant website that has to take care of any incoming request and determine the appropriate routing by the URL subdomain. I set up the subdomain routing using this or a similar solution. However I'm trying to access my website on my local machine using subdomains an alias website. I'm unable to get my local IIS to port to my website with the subdomain I've specified. I want to dedicate a virtual domain name in my local machine that will port to the website I'm debugging on VS (