iis-express

IIS Express Visual Studio Integration - Changing site name

邮差的信 提交于 2019-12-23 09:19:22
问题 I'm just starting to use Visual Studio 2010 SP1 with IIS Express. When Visual Studio launches IIS Express, it specifies the name of the "site" to launch IIS Express with. The name of the site seems to be derived from the name of my web project. Is it possible to have Visual Studio launch a site with some other name? For instance, if my web project's name is "WebProject1", when Visual Studio launches IIS Express, it will use the following command: iisexpress.exe /site:WebProject1 I would like

Couldn't determine an appropriate version of runtime to run

拜拜、爱过 提交于 2019-12-23 02:18:27
问题 I just finished upgrading to beta4. My code compiles successfully with no errors/warnings but I am unable to launch my web api hosted in IIS Express (by hitting F5 ). I get the following error: Couldn't determine an appropriate version of runtime to run. See http://go.microsoft.com/fwlink/?LinkId=517742 for more information. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where

Why async await doesn't working on IIS, but it's working on IIS Express

社会主义新天地 提交于 2019-12-22 10:34:27
问题 I don't understand, why async/await doesn't resolve problem with IIS threads. I see that we have limit on IIS threads equals 10, when I use IIS and no limits for IIS express. I add 2 methods in HomeController for repeat this problem. One of them (method) use Thread.Sleep and other use async/await. Of course I use logger (NLog) for describe this problem in more details. I use apache-jmeter-3.0 with 100 parallel request for one url as stress test. I was very surprised when the test execution

IIS Express, ASP.NET Core - Invalid URI: The hostname could not be parsed

旧城冷巷雨未停 提交于 2019-12-22 04:15:47
问题 Back from my weekend and went to debug my web project which is an ASP.NET Core Web Api. It started giving me an error: Invalid URI: The hostname could not be parsed. I can start a new asp.net core web api project and it debugs fine so I'm pretty sure its something with my configuration for this project. Any ideas? James 回答1: I had the same issue. Just close VS, remove .vs folder, open project once again. Rebuild & Run. It should help. 回答2: I post this answer because many people found my

Keeping web application attached to IIS Express in Visual Studio 2013

人走茶凉 提交于 2019-12-22 02:28:27
问题 In Visual Studio 2012, if I stopped debugging, the web application would remain attached to IIS Express, such that I could continue loading pages in the browser without having to restart debugging. This worked really well for me in conjunction with .NET Demon, as my application would rebuild after every change and I could just jump over to the browser to check the changes instantly. After upgrading to Visual Studio 2013, this behavior no longer exists. When you stop debugging, the application

Visual Studio 2015. Failed to register URL for site access is denied IIS Express. Access denied 0x80070005

痴心易碎 提交于 2019-12-21 22:59:54
问题 I enabled SSL in Visual Studio 2015 in order to implement Facebook and Google login locally. I changed the project URL in the Web tab of the project's properties to https://localhost:44300/ and decorated the controller with the RequireHttps attribute - ref @msdn. Everything worked fine locally. I reverted settings to HTTP to test something else and that caused me a problem when I tried to get back to HTTPS. I found this SO question and tried almost every suggested solution. Error detail:

Why is IIS 8.0 Express using the old project names after rename in Visual Studio 2012

寵の児 提交于 2019-12-21 19:46:23
问题 After some naming confusing my team decided to rename some projects and the namespaces for all the existing code files in the project. (In Visual Studio 2012) We've changed: the Project Names the Assembly Name, Default namespace, Title and Product entries in the Project Properties the namespaces for each code file in each project that was renamed all the using statements for the revised namespaces cleared out the old .dll files in the /bin directory (for the routing engine to not find

How to send client certificate using HttpWebRequest and IISExpress for debugging

北战南征 提交于 2019-12-21 17:27:10
问题 I have some code for pulling a client certificate from the page request. This is the code in "MyPage.aspx". string someparam = this.Request.Params["someparam"]; if (!String.IsNullOrWhiteSpace(someparam) && this.Page.Request.ClientCertificate.IsPresent) { try { X509Certificate2 x509Cert2 = new X509Certificate2(this.Page.Request.ClientCertificate.Certificate); // // Code for verifying the x509Cert2 // } catch (Exception) { } } Now I want to test the code in Visual Studio in my local environment

IIS Express Web Server Port Is In Use

喜你入骨 提交于 2019-12-21 14:58:09
问题 I can normally debug my web service with no problem, but now I persistently get error "Unable to launch the IIS Express Web Server. Port 3268 is in use". I have looked at previous questions about this, but I am stuck: it doesn't matter what port I use rebooting, closing web browser, deleting web history etc all fail tools like TCPView show that the port is NOT in use I can start/stop IISExpress from a command prompt OK normally, address localhost:3268 shows an error message in a browser - but

Unable to launch IIS Express Web Server in VS 2013

岁酱吖の 提交于 2019-12-21 12:10:29
问题 I have an application in MVC 4 using VS 2013. This is very strange,everything was working fine till last night but today morning when I started working and tried to run my application I found the following error: Unable to launch IIS express web server. Failed to register URL"http://localhost:62707" for site... Access denied(0x80070005) I searched regarding this since morning and I got solutions for this which I tried as: I deleted IIS Express folder from my documents several times and tried