iis-express

Microsoft.Web.Administration.ServerManager is connecting to the IIS Express instead of full IIS

痞子三分冷 提交于 2020-01-04 04:42:06
问题 I'm using this to create an instance of ServerManager : [Void][Reflection.Assembly]::LoadWithPartialName("Microsoft.Web.Administration") $serverManager = New-Object Microsoft.Web.Administration.ServerManager When running $serverManager.ApplicationPools | Select -Property Name I get: Name ---- Clr4IntegratedAppPool Clr4ClassicAppPool Clr2IntegratedAppPool Clr2ClassicAppPool UnmanagedClassicAppPool When running $serverManager.Sites | Select -Property Bindings I get: Bindings -------- {[http]

ASP.NET MVC on IISExpress rebuilding entire site for each request

被刻印的时光 ゝ 提交于 2020-01-03 20:02:16
问题 My organisation recently did a hardware refresh, so all software (VS 2013 etc) is newly installed. Now we are all noticing a particular ASP.NET MVC 4.5 application is running extremely slow. Took me a while to notice this, but in the output while debugging the first entry after each request is 'iisexpress.exe' (CLR v4.0.30319: Domain 11): Unloaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll' After this entry, it shows iisexpress loading up

ASP.NET MVC on IISExpress rebuilding entire site for each request

六眼飞鱼酱① 提交于 2020-01-03 20:01:37
问题 My organisation recently did a hardware refresh, so all software (VS 2013 etc) is newly installed. Now we are all noticing a particular ASP.NET MVC 4.5 application is running extremely slow. Took me a while to notice this, but in the output while debugging the first entry after each request is 'iisexpress.exe' (CLR v4.0.30319: Domain 11): Unloaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll' After this entry, it shows iisexpress loading up

ASP.Net Core CreatedAtAction in HttpPost action returns 201 but entire request ends with 500

本秂侑毒 提交于 2020-01-03 13:40:33
问题 I'm following[1] for setting up my first .NET Core WebAPI (moving from "old" WebAPI). When I do HttpPost action, as in tutorial: [HttpPost] public IActionResult Create([FromBody] TodoItem item) { if (item == null) { return BadRequest(); } TodoItems.Add(item); return CreatedAtAction("GetTodo", new { id = item.Key }, item); } I get a HttpError 500 after exiting my Controller. CreatedAtAction returns proper object with Status Code 201 as I would expect, and after my method exits the Server

ASP.Net Core CreatedAtAction in HttpPost action returns 201 but entire request ends with 500

爷,独闯天下 提交于 2020-01-03 13:39:12
问题 I'm following[1] for setting up my first .NET Core WebAPI (moving from "old" WebAPI). When I do HttpPost action, as in tutorial: [HttpPost] public IActionResult Create([FromBody] TodoItem item) { if (item == null) { return BadRequest(); } TodoItems.Add(item); return CreatedAtAction("GetTodo", new { id = item.Key }, item); } I get a HttpError 500 after exiting my Controller. CreatedAtAction returns proper object with Status Code 201 as I would expect, and after my method exits the Server

Grant IIS Express permission to access network drive in VMWare

淺唱寂寞╮ 提交于 2020-01-03 09:57:29
问题 I have a Windows 7 virtual machine in VMWare that I'm using to develop ASP.NET MVC 5 Web applications with the default IIS Express server. I like to keep my projects saved on an external hard drive which I can access in the virtual machine through a shared folder / network drive. However, when I run my applications, IIS Express cannot access my web.config files in the project directory. It's looking in the right folder so I'm pretty sure this is a permissions issue. How can I grant IIS

Work with Web API and Windows Phone

ε祈祈猫儿з 提交于 2020-01-03 06:21:21
问题 I am developing a solution that is composed of two elements: a web server, which publishes some REST services, and a mobile client, which consumes those services. To implement the REST services I have used the Web API technology. When I start the web project in debug, everything works fine. I can use the services by pointing to localhost:63954/api. A weird fact: if I change "localhost" with "127.0.0.1" or with the LAN address of the machine, 192.168.xxx.xxx, the server does not answer anymore

IIS Express (WebMatrix 2) won't serve .cshtml files in WebAPI project (VS10/WinXP)

帅比萌擦擦* 提交于 2020-01-03 02:51:05
问题 I am trying to run a WebAPI project on WinXP through WebMatrix 2. I'm getting this error when attempting to browse index.cshtml (in the root): "This type of page is not served." I created a WebAPI project under the MVC4 project type in Visual Studio 2010, then set the project to run under IIS Express. What I've Tried: The .NET CLR settings in the VS-created WebMatrix site is .NET 4.0 (Integrated). I've already tried playing with the runAllManagedModulesForAllRequests setting in Web.config, no

How to access a service deployed locally in IIS express from Visual studio emulator for android

…衆ロ難τιáo~ 提交于 2020-01-02 09:14:28
问题 I'm have a WebApi project which gets deployed locally on my machine as http://localhost:6143 or http://127.0.0.1:6143. However when I try to browse to that endpoint on the visual studio emulator for android browser, I get net:err connection timed out. Note that on the emulator I'm using http://10.0.2.2:6143 since localhost won't work on the emulator (since it's a vm, localhost refers to itself). I've also tried 127.0.0.1:6143 and get connection refused. I also added port 6143 to the incoming

Why does the Windows command shell tell me to use a different command and then say that command does not exist?

随声附和 提交于 2020-01-02 06:12:31
问题 In connection with my handheld > server app using Web API RESTful methods problem discussed here (Does an ASP.NET Web API app need to be installed into the "real" IIS before a handheld device can access its RESTful methods?), I tried to verify I wasn't having a firewall problem by using the shell command delineated here: http://www.hanselman.com/blog/WorkingWithSSLAtDevelopmentTimeIsEasierWithIISExpress.aspx, explicitly: netsh firewall add portopening TCP 80 IISExpressWeb enable ALL I also