skip to Main Content

IIS thinks ASP.NET 4.0 is running, but its not?

I am getting an error about not being able to run websockets Exception information: Exception type: InvalidOperationException Exception message: WebSockets is unsupported in the current application configuration. To enable this, set the following configuration switch in Web.config: <system.web> <httpRuntime targetFramework="4.5"…

VIEW QUESTION

Asp.net – .NET framework Session State

I restored a Database and I created a session state through this command C:WINDOWSMicrosoft.NETFrameworkv2.0.50727aspnet_regsql -ssadd -sstype p -S IP_ADDRESS -U USER_ID sa1 -P USER_PASS And in my web.config I have the following: <sessionState mode="SQLServer" allowCustomSqlDatabase="true" sqlConnectionString="Data Source=IP_ADDRESS;User Id=USER_ID;Password=USER_PASSWORD" cookieless="false" timeout="35"/>…

VIEW QUESTION

Asp.net – Regex negative lookahead true then ignore rest of regex

I'm using the following IIS Rewrite Rule to block as many bots as possible. <rule name="BotBlock" stopProcessing="true"> <match url=".*" /> <conditions> <add input="{HTTP_USER_AGENT}" pattern="^$|b(?!.*googlebot.*b)w*(?:bot|crawl|spider)w*" /> </conditions> <action type="CustomResponse" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" /> </rule> The goal is to block all user…

VIEW QUESTION
Back To Top
Search