Web Connection
Could not load type 'Westwind.WebConnection.WebConnectionModule' from assembly 'WebConnectionModule'.
Gravatar is a globally recognized avatar based on your email address. Could not load type 'Westwind.WebConnection.WebConnectionModule' from assembly 'WebConnectionModule'.
  Phil Sherwood
  All
  Sep 27, 2022 @ 07:47am

I'm moving our app to a new server and get this error when going to the URL for the app.

I've got the modules in the Bin folder that's inside the web folder. Where do you specify where the Bin folder is located?

.NET 4 is installed, and the App Pool is set correctly.

Since I don't do this every day, I've forgotten some of the nuances of setting up a Web Connect app.

I used the MYAPP.EXE CONFIG and the other automated config options, but I'm still missing something.

Any help would be appreciated.

Phil

.

Gravatar is a globally recognized avatar based on your email address. re: Could not load type 'Westwind.WebConnection.WebConnectionModule' from assembly 'WebConnectionModule'.
  Rick Strahl
  Phil Sherwood
  Sep 27, 2022 @ 09:57am

The Bin folder is automatically mapped in a .NET application. So if the file is there and your Application Pool identity has read permissions in that folder it should find webconectionmodule.dll.

If that's not happening I would suspect either that the path to the application is not correct, or there is some sort of permission issue with the Application Pool or path. Double check.

Also make sure that you have Microsoft.WebSockets.dll in the folder as that is a dependency that's required in recent versions. This might cause a dependency problem with the DLL not loading but I believe you'd get a different error for that.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Could not load type 'Westwind.WebConnection.WebConnectionModule' from assembly 'WebConnectionModule'.
  Rick Strahl
  Phil Sherwood
  Sep 28, 2022 @ 12:40pm

Make sure you have the latest WebConnectionModule.dll. The WebConnectionModule class is a somewhat recent addition (in 7.0) that deals with Web Socket handling for live reload and HTML injection of the LiveReload script. That module class didn't exist in older versions, so most likely your DLL is not a 7.x version.

Check the version of WebConnectionModule.dll (in Explorer|Properties|Details) and it should be 7.28 (if you're using the latest).

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Could not load type 'Westwind.WebConnection.WebConnectionModule' from assembly 'WebConnectionModule'.
  Phil Sherwood
  Rick Strahl
  Oct 2, 2022 @ 01:27pm

It shows I've got 7.28.1.0

I do have other versions on the server. How does it know which Bin folder to pull from?

Gravatar is a globally recognized avatar based on your email address. re: Could not load type 'Westwind.WebConnection.WebConnectionModule' from assembly 'WebConnectionModule'.
  Rick Strahl
  Phil Sherwood
  Oct 2, 2022 @ 03:28pm

Any chance you have a parent application that's perhaps also has a bin folder with Web Connection?

Best way to check is by going into the IIS admin console and look at the Handler list - it should show what's loaded and from where. Make sure that it says Local for the Web Connection Module handler references - not Inherit.

It should look like this:

If that's not it then I'm not sure what would cause that error. Do make sure the Microsoft.Websockets.dll assembly is in the bin folder in addition to WebConnectionModule.dll. Without that dependency it won't load.

Also make sure the Application Pool identity has rights to read the files (ie. not ApplicationPoolIdentity user).

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Could not load type 'Westwind.WebConnection.WebConnectionModule' from assembly 'WebConnectionModule'.
  Phil Sherwood
  Rick Strahl
  Oct 2, 2022 @ 05:31pm

It was the Microsoft.Websockets.dll file missing.

Thanks!

Gravatar is a globally recognized avatar based on your email address. re: Could not load type 'Westwind.WebConnection.WebConnectionModule' from assembly 'WebConnectionModule'.
  Rick Strahl
  Phil Sherwood
  Oct 2, 2022 @ 05:36pm

Guess you didn't read my original reply 😄

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Could not load type 'Westwind.WebConnection.WebConnectionModule' from assembly 'WebConnectionModule'.
  Phil Sherwood
  Rick Strahl
  Oct 2, 2022 @ 06:06pm

Evidently not. ha ha

© 1996-2024