Showing posts with label IIS. Show all posts
Showing posts with label IIS. Show all posts

Sunday, October 4, 2020

Fixing SignalR Max Connection Limit Issue

SinglaR does not have any limitations of concurrent connections. We need to set the IIS aspnet.config

Please open path: %windir%\Microsoft.NET\Framework\v4.0.30319\aspnet.config and add/change the maxConcurrentRequestsPerCPU property of the pool. 


<system.web>
    <applicationPool maxConcurrentRequestsPerCPU="20000" />
</system.web>

Monday, June 10, 2019

Publish Angular in Directory in IIS

Build Angular project:
ng build --prod --deployUrl="/App1/" --baseHref="/App1/"


Add web.config File:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.web>
</system.web>
<system.webServer>
  <rewrite>
    <rules>
      <rule name="Angular Routes" stopProcessing="true">
        <match url=".*" />
        <conditions logicalGrouping="MatchAll">
           <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
           <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
        </conditions>
        <action type="Rewrite" url="/App1/index.html" />
      </rule>
    </rules>
  </rewrite>
  <directoryBrowse enabled="false" />
</system.webServer>
</configuration>