Thursday, July 25, 2024

URL rewrite jacks up iisexpress stuck in SSL mode in chrome.

 I was doing a merge for another devs app. vs2013 wvc web app ,net 4.5.2.

part of the merge was adding this to the config for url rewrite.

<system.webServer>
    
 
    <caching enabled ="false" />
    <rewrite>
      <rules>
        <rule name="HTTP to HTTPS Redirect" stopProcessing="true">
          <match url="(.*)" />
          <conditions>
            <add input="{HTTPS}" pattern="^OFF$" />
          </conditions>
          <action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" appendQueryString="false" />
        </rule>
      </rules>
    </rewrite>
    <modules>

I ran Vs2013 in iisexpress and now any time I run the app I get this error.

Error: This site can’t provide a secure connection localhost sent an invalid response. Try running Windows Network Diagnostics. ERR_SSL_PROTOCOL_ERROR

I commented that block out of the config, it still does it. I load a different app, still does it I installed URL rewrite 2.1, still does it I reboot the machine still does it

If change the app from iisexpress to iis in the project web settings it works.

If I change it back to iisexpress.. breaks again.

It seems to me that the local instance of iisexpress got some thing set on it that's broken.

But if rebooting didn't fix it, how do I fix it so iisexpress works again?

UPdate, I added this to my config, and installed firefox, as somoen said it's a chrome issue that makes it stick like that.

<system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <security>
      <!--<access sslFlags="None" />-->
    </security>
    <caching enabled ="false" />
    <!--
    
    <rewrite>
      <rules>
        <rule name="HTTP to HTTPS Redirect" stopProcessing="true">
          <match url="(.*)" />
          <conditions>
            <add input="{HTTPS}" pattern="^OFF$" />
          </conditions>
          <action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" appendQueryString="false" />
        </rule>
      </rules>
    </rewrite>-->

And iisexpress works now in firefox.

Anyone know what Chrome is doing that 's causing the issue, I need to be able to test in chrome, alas.

fixed it and posted on SO here:
https://stackoverflow.com/questions/78789966/url-rewrite-webconfig-settings-broke-iisexpress/78799676#78799676

Wednesday, November 1, 2023

Could not load file or assembly 'System.Data.SQLite' or one of its dependencies. An attempt was made to load a program with an incorrect format.

 Could not load file or assembly 'System.Data.SQLite' or one of its dependencies. An attempt was made to load a program with an incorrect format.

if you pull down a new project and get this, change the default app poll to suppor 32 bit apps in Inetmgr advanced settings



Wednesday, March 29, 2023

 Visual Studio, Project references not working.

You add the reference, and it keep showing the yellwo triangle for the bad reference, even though it's working for other projects in the same soloution.


Verify they are both referencing the SAME version of .net, aka .4.5.2 not .4.5

Tuesday, July 5, 2022

Turn on Request tracing for more info debuggin IIS issues.

 How to turn on request tracing for detail logs on IIS issues


https://docs.microsoft.com/en-us/iis/extensions/url-rewrite-module/using-failed-request-tracing-to-trace-rewrite-rules

Tuesday, March 22, 2022

Permission related internal error was encountered. Unable to continue execution. Sybase Ase

 

 

In case anyone hits you asking about this one, it's caused by trying to access the QA Jcdc Db instead of the jcdc DB on the new server by accident. In short it's caused by hitting a DB you don't have permissions for, instead of an object you don't have permissions for.


10334

14

 Permission related internal error was encountered.  Unable to continue execution.

Explanation: You do not have the permission to execute this command. Have the object owner or a user with the needed role run this command.


 

Thursday, March 17, 2022

Okta Gets confused when accounts for the same user are deleted and recreated.

 So we have a process, SPN that synchs DB changes to AD.

We also have multiple environments, dev 1 dev 2, QA, etc. which we switch between in the full dev lifecycle.

If a user is arrived on center in one environment, and not in the other, each time SPN gets run

on the other environment, the user gets it's state changed *(added or deleted)

This screws up Okta, and the users cant' login, until you do the following.


 log into okta domain on OktaPreview, click admin button to goto admin panel

On the left nav. Menu: Directory> Directory Integrations

In the center pane select: Active Director for student.jcd*v.org

(A new page will load)

In the center pane again select: Import, Clear unconfirmed users and then Import Now

In the popup you can do Incremental (takes a short period of time <10 min) or Full Import (takes a little longer).

                Increment adds and disables accounts

                Full Import adds and deletes accounts (*do this to fix, increment is inconsistant)