iis express from vs error ERR_HTTP2_PROTOCOL_ERROR - asp.net-mvc

Running an MVC project in VS 2022, .NET Framework 4.8. When I run from VS, I get the below error. This was working as of a couple days ago, suddenly I get this error. I am inexperienced in all things IIS Express, how can I go about troubleshooting this exception? Google search has not turned up anything helpful to me. Any help is greatly appreciated!
EDIT: I created a new ASP.NET MVC application and was able to run it in IIS Express without issue. It is running under a different port (https://localhost:44327/) that the project I'm having issues with. I tried changing the port# on the problem project, but still get the same error.
In doing all of this, my applicationhost.config for IIS Express didn't change at all.

Uninstalling IIS Express in Visual Studio Installer, rebooting, and reinstalling IIS Express (along with all dependent components that had been removed) fixed my issue.

Related

How to make BundleTransformer work on Windows Server Core

Ever since we found dotLess stopped working for us our ASP.NET MVC project has been using BundleTransformer for our LESS bundling and minification. We are trying to migrate our CI build agents to use Windows Server Core (headless) and away from Windows Server Standard. When we did this we started receiving Internal Server Errors when trying to hit our pages. This seems to be blowing up inside of BundleTransformer.
We initially were using BundleTransformer with http://www.nuget.org/packages/JavaScriptEngineSwitcher.Msie
From reading this post I thought maybe it was that we were missing the dependency on Internet Explorer.
http://bundletransformer.codeplex.com/discussions/454495
I tried to use the v8 engine switcher and started getting server errors on my Windows Standard setup.
http://www.nuget.org/packages/JavaScriptEngineSwitcher.V8
Has anyone successfully managed to get BundleTransformer working on a Windows Server Core environment? Anything would help. Thank you.
You have installed the Visual C++ Redistributable for Visual Studio 2012 before you install the JavaScriptEngineSwitcher.V8 package?
Give an example of the error message.

Why do I need to switch off module inheritance to make my ASP.NET MVC site work on Windows Server 2008?

I am developing an ASP.NET MVC 5 site targeting .NET 4.5.1 and for some reason I am struggling to deploy it on a Windows Server 2008 Standard edition server.
To be clear the site runs fine on my Windows 7 development machine and my Windows Server 2012 test environment but when I deploy it to the Windows Server 2008 in question I get this error:
At this point I tried all the advice about reinstalling ASP.NET and enabling runAllManagedModulesForAllRequests that I found in threads like this one ASP.NET MVC on IIS 7.5 but nothing would make it work.
Eventually I found that I could fix the problem by switching off the "Invoke only requests to ASP.NET applications or managed handlers" option for all managed modules in the application. What this did in essence was to make the following changes to the web.config file:
So my question is two-fold. Firstly, why is this change necessary to get the site to work? Secondly, am I safe to change the web.config permanently given that it will be installed on other servers as well, not all of which will be Windows Server 2008?

IIS 8 Express does not deliver page

When I debug/run my webs with IIS8 Express, IE starts and then just waits, nothing happens, white page with busy-mouse pointer.
This problem suddenly appeared (Windows 7 and Visual Studio 2010). I decided to reinstall my computer, now with Windows 8 and ONLY Visual Studio 2012 and I got the same problem!?
Running IIS Express (64 bit) with trace-level it works, and no error are reported, it does however not seem to work if I run the web using 32 bit (and from Visual Studio).
I have tested with a MVC4 project and ASP.NET Forms (Episerver) however the later has some issues running in 64bit (since it has dependencies that need to be 32bit).
My colleagues have the same code and for them IIS8 Express works, must be something with my installation?
I have tested reinstalling IIS8 Express (and my computer =)) no luck.
UPDATE:
I have tried running IIS 8 (not express) an it works.
For the MVC Project it seems to be signalr that "causes" the hang (removing RouteTable.Routes.MapHubs makes the site work).
I have tried creating a new MVC and ASP.NET Project and they both work.
So the problem seem to be located around my "old" Projects.
Running mu old projects on my laptop Everything works.
It is starting to drive me crazy
Any suggestions?
Jimmy,
IIS Express has had multiple bug reports with Microsoft. Personally, I'm working in IIS Express now without issue, but there are common complaints about IIS Express hanging after upgrades of VS 2010 SP1 or VS 2012.
That's not exactly your situation, but please read
http://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/3917b164-2acf-4bec-8a0c-295aeaa5c198/
Problem Using IIS Express with Visual Studio 2010 SP1
Visual Studio 2010 iis express freezes when debugging multiple websites
iis express hangs
We've determined that you can use Cassini and IIS 8 at the moment. This may be a cop out, but you're right that it's project dependant (I've seen this before), and in your case you may be better off living with and moving on.
I had a similar issue running my asp.net MVC4 project on localhost under IIS express 8.0. Any time I hit Ctrl F5 to refresh a js file change every js file took 4 to 5 seconds to load. It turns out IIS Exp 8.0 is extremely slow when serving up js files. I ended up uninstalling IIS 8.0 and installing IIS express 7.5 and straight away the problem was fixed. Here are the steps I followed:
Uninstall IIS express 8.0
Delete the My Documents\IISExpress folder
Install IIS express 7.5 (Link to IIS Express 7.5 download)
IIS Express 8.0 seems to be installed with VS 2012 so if you had a new install or possibly a service pack update this might have upgraded your previous IIS express version.

Unable to find V3.5 in IIS5.0

I am doing sample application on MVC when i run the application i am getting the following error
Also in my IIS i am unable to find the version 3.5 even i am having 2008 installed on my pc so can any one tell how to rectify this problems
You might need to configure extensionless mappings as IIS 5 doesn't support it.

Websharper configuration on IIS 7.5

Does anyone know how to configure Websharper 1.0 or 2 (sitelets) on IIS 7.5?
This helps on IIS Express at least
An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode
I have tested WebSharper 2.2 sitelets on IIS 7.5. I could see a problem with no sitelets showing up (404) when deploying to a virtual directory (both IIS 7.5 and the development server), but a root deployment worked as expected. WebSharper 2.3 due for release today fixes this virtual directory deployment bug. I hope that was it, but I would be interested to learn more details if the bug persists. Thanks! --A

Resources