Search code examples
fileazureiisentityazure-storage-files

IIS Shared Configuration Webfarm - Error when dynamically updating bindings


First time posting a question so apologies for anything I'm doing wrong.

I have a webfarm of 4 IIS servers running windows server 2016 which uses an azure file storage account for its webfiles. It also save its shared configuration files to the same azure file storage account. This webfarm is then behind an azure load balancer.

Everything works fine, until part of the website code adds an IIS binding. This then causes all the servers to display the error below:

Could not load file or assembly 'EntityFramework,...etc" The parameter is incorrect. (Image attached for full error). enter image description here

The only way to resolve this error is to clear the asp.net temporary files from the C drive of all the servers and run IISRESET on each box.

Any ideas?


Solution

  • So this was a mystery but the following changes have resolved the issue. I'm not sure which combination has fixed it, but this might help someone who has a similar issue.

    1. Recreate website in IIS using new App pool.
    2. Removed individual IIS bindings and replaced with wildcard (we had a really old-school system before where we had 100s of binding, maybe one of these was corrupted).

    Thanks for your help!