Websharper configuration on IIS 7.5 - f#

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

Related

iis express from vs error ERR_HTTP2_PROTOCOL_ERROR

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.

Angular 4 spa template deployment on iis

I created a angular 4 application using VS 2017 angular spa template and it works fine in my local machine. I'm having issues setting up the project on the server IIS.
I have published the files on the server, I created a site on the IIS and mapped it to the index.cshtml under the \views\home\ directory. When I browse the site I'm getting http Error 404.3 - Not found.
Target framework is net461 and iis version is 8.5
Could you please help to resolve this issue.
I had to install aspnetcoremodule for IIS to resolve this issue.
https://learn.microsoft.com/en-us/aspnet/core/fundamentals/servers/aspnet-core-module?tabs=aspnetcore2x

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?

After upgrading to MVC 5, my site returns a 404 error when published to production server

I recently upgraded my application from MVC 4/ EF 5 to MVC 5 / EF 6. I also upgraded to Visual Studio 2013 from VS 2012. Everything runs great on the IIS Express but when I publish to my production server via webDeploy, the site returns a 404 for all pages.
I am running IIS 8. There are no entries in my IIS log from today so this is not logging. I see no event alerts either.
I have done some research and performed the following:
Set the System.Web.MVC, System.Web.Routing and
System.Web.Abstractions to use a local copy when publishing. This
had no effect.
I restarted IIS.
I deleted all the files on the production server and re-published.
Thanks so much for your help!
Turns out that the problem had to do with Amazon eleastic ip - nothing wrong with the site or IIS.

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.

Resources