Web Connection
'Could not load file or assembly 'WebConnectionModule' or one of its dependencies'
Gravatar is a globally recognized avatar based on your email address. 'Could not load file or assembly 'WebConnectionModule' or one of its dependencies'
  Marcel DESMET
  All
  Mar 7, 2016 @ 11:26am
"Could not load file or assembly 'WebConnectionModule' or one of its dependencies'

I try to setup WebConnection 6 RC2 on a computer with 4.5 and 4.6 NET FrameWork and can't install
the 4.0 NET Framework

Thanks for your help

Gravatar is a globally recognized avatar based on your email address. Re: 'Could not load file or assembly 'WebConnectionModule' or one of its dependencies'
  Rick Strahl
  Marcel DESMET
  Mar 7, 2016 @ 02:09pm

Make sure the Web Connection Application Pool is set to use the .NET framework 4.0 not 2.0.

+++ Rick ---



"Could not load file or assembly 'WebConnectionModule' or one of its dependencies'

I try to setup WebConnection 6 RC2 on a computer with 4.5 and 4.6 NET FrameWork and can't install
the 4.0 NET Framework

Thanks for your help




Rick Strahl
West Wind Technologies

Making waves on the Web
from Maui

Gravatar is a globally recognized avatar based on your email address. Re: 'Could not load file or assembly 'WebConnectionModule' or one of its dependencies'
  Rick Strahl
  Rick Strahl
  Mar 7, 2016 @ 02:09pm

The reason this happens I think is because you have an existing application pool that is used and the setting won't be changed automatically. A new install/project automatically would choose .NET 4.0 as that's the default with IIS 8 and later (and with the change I just added Web Connection explicitly updates the AppPool to use .NET 4.0).

+++ Rick ---


Make sure the Web Connection Application Pool is set to use the .NET framework 4.0 not 2.0.

+++ Rick ---



"Could not load file or assembly 'WebConnectionModule' or one of its dependencies'

I try to setup WebConnection 6 RC2 on a computer with 4.5 and 4.6 NET FrameWork and can't install
the 4.0 NET Framework

Thanks for your help





Rick Strahl
West Wind Technologies

Making waves on the Web
from Maui

Gravatar is a globally recognized avatar based on your email address. Re: 'Could not load file or assembly 'WebConnectionModule' or one of its dependencies'
  Marcel DESMET
  Rick Strahl
  Mar 7, 2016 @ 10:15pm
THanks you, application Pool is now set to Framework 4.0 the error message change to

Impossible de charger le type ( Impossible to load the type .. )
'System.ServiceModel.Activation.HttpModule' à partir de l'assembly
'System.ServiceModel, Version=3.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089'

Version Microsoft .NET Framework:4.0.30319; Version ASP.NET:4.6.1055.0

The reason this happens I think is because you have an existing application pool that is used and the setting won't be changed automatically. A new install/project automatically would choose .NET 4.0 as that's the default with IIS 8 and later (and with the change I just added Web Connection explicitly updates the AppPool to use .NET 4.0).

+++ Rick ---


Make sure the Web Connection Application Pool is set to use the .NET framework 4.0 not 2.0.

+++ Rick ---



"Could not load file or assembly 'WebConnectionModule' or one of its dependencies'

I try to setup WebConnection 6 RC2 on a computer with 4.5 and 4.6 NET FrameWork and can't install
the 4.0 NET Framework

Thanks for your help





Gravatar is a globally recognized avatar based on your email address. Re: 'Could not load file or assembly 'WebConnectionModule' or one of its dependencies'
  Rick Strahl
  Marcel DESMET
  Mar 8, 2016 @ 01:14am

Hmmm... this is not something Web Conneciton loads. Are you mixing Web Connection with another project or other .NET code?

It's either that or you are pointing one of your extensions at the wrong module type.

Just to check you might want to try creating a new project and compare your web.config vs. the generated one. Specifically watch for the scriptmappigns and for any referenced .NET assemblies in the http runtime section.

+++ Rick ---


THanks you, application Pool is now set to Framework 4.0 the error message change to

Impossible de charger le type ( Impossible to load the type .. )
'System.ServiceModel.Activation.HttpModule' à partir de l'assembly
'System.ServiceModel, Version=3.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089'

Version Microsoft .NET Framework:4.0.30319; Version ASP.NET:4.6.1055.0

The reason this happens I think is because you have an existing application pool that is used and the setting won't be changed automatically. A new install/project automatically would choose .NET 4.0 as that's the default with IIS 8 and later (and with the change I just added Web Connection explicitly updates the AppPool to use .NET 4.0).

+++ Rick ---


Make sure the Web Connection Application Pool is set to use the .NET framework 4.0 not 2.0.

+++ Rick ---



"Could not load file or assembly 'WebConnectionModule' or one of its dependencies'

I try to setup WebConnection 6 RC2 on a computer with 4.5 and 4.6 NET FrameWork and can't install
the 4.0 NET Framework

Thanks for your help








Rick Strahl
West Wind Technologies

Making waves on the Web
from Maui

Gravatar is a globally recognized avatar based on your email address. Re: 'Could not load file or assembly 'WebConnectionModule' or one of its dependencies'
  Rick Strahl
  Rick Strahl
  Mar 9, 2016 @ 02:57am

Just setup on a brand new Win2012 server and everything was ok

The problem stay on the Win 7 computer with IIS 7.5, here is the complete error stack

I generated a new project and config file ar similar, here is the config section of booth I try with ISAPI setup and everything works fine except for the admin.aspx

  <configSections>
    <section name="webConnectionConfiguration" type="System.Configuration.NameValueSectionHandler,System,Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
    <section name="webConnectionVisualStudio" type="System.Configuration.NameValueSectionHandler,System,Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
  </configSections>
[TypeLoadException: Impossible de charger le type 'System.ServiceModel.Activation.HttpModule' à partir de l'assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.]
   System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type) +0
   System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName) +70
   System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +40
   System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +37
   System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +65
   System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +38

[ConfigurationErrorsException: Impossible de charger le type 'System.ServiceModel.Activation.HttpModule' à partir de l'assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.]
   System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +353
   System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, Boolean checkAptcaBit) +21
   System.Web.Configuration.Common.ModulesEntry.SecureGetType(String typeName, String propertyName, ConfigurationElement configElement) +39
   System.Web.Configuration.Common.ModulesEntry..ctor(String name, String typeName, String propertyName, ConfigurationElement configElement) +42
   System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1 moduleList) +160
   System.Web.HttpApplication.GetModuleCollection(IntPtr appContext) +1068
   System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +82
   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +352
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +296

[HttpException (0x80004005): Impossible de charger le type 'System.ServiceModel.Activation.HttpModule' à partir de l'assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9947380
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +261

Hmmm... this is not something Web Conneciton loads. Are you mixing Web Connection with another project or other .NET code?

It's either that or you are pointing one of your extensions at the wrong module type.

Just to check you might want to try creating a new project and compare your web.config vs. the generated one. Specifically watch for the scriptmappigns and for any referenced .NET assemblies in the http runtime section.

+++ Rick ---

THanks you, application Pool is now set to Framework 4.0 the error message change to

Impossible de charger le type ( Impossible to load the type .. ) 'System.ServiceModel.Activation.HttpModule' à partir de l'assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'

Version Microsoft .NET Framework:4.0.30319; Version ASP.NET:4.6.1055.0

The reason this happens I think is because you have an existing application pool that is used and the setting won't be changed automatically. A new install/project automatically would choose .NET 4.0 as that's the default with IIS 8 and later (and with the change I just added Web Connection explicitly updates the AppPool to use .NET 4.0).

+++ Rick ---

Make sure the Web Connection Application Pool is set to use the .NET framework 4.0 not 2.0.

+++ Rick ---

"Could not load file or assembly 'WebConnectionModule' or one of its dependencies'

I try to setup WebConnection 6 RC2 on a computer with 4.5 and 4.6 NET FrameWork and can't install the 4.0 NET Framework

Thanks for your help

© 1996-2024