G
Guest
This has been working perfectly for months. Since we switched from ASP.NET
1.1 to 2.0, we have constant and sporadic issues with updating our
applications.
Touching the web.config works about 40% of the time to cause an AppDomain to
reload and flush all assemblies. Sometimes it works perfectly, but other
times some Assemblies are not reloaded into the AppDomain, even after
multiple web.config file touches. Sometimes multiple versions of the same
assembly are loaded, even though the web.config clearly defines the correct
version to load.
Sometimes, we have to force the entire app pool to recycle before the
assemblies load correctly. No amount of web.config touching will fix it.
Most of the time some assemblies will load, and randomly other assemblies
will not load.
We are receiving 2 primary error messages:
System.IO.FileLoadException: The located assembly's manifest definition does
not match the assembly reference. (Exception from HRESULT: 0x80131040)
The type 'Core.CMS.Page' is ambiguous: it could come from assembly
'C:\WINDOWS\assembly\GAC_MSIL\Core\4.2.100.6__326259bf81ba92e7\AmeriCommerce.dll'
or from assembly
'C:\WINDOWS\assembly\GAC_MSIL\Core\4.2.100.8__326259bf81ba92e7\AmeriCommerce.dll'. Please specify the assembly explicitly in the type name.
My environment is as follows:
Multiple web servers access a DFS share for the home directory for a site.
Automated update system adds new versioned assemblies to the GAC on the web
servers.
Web.Config file is updated with all new assembly versions.
1.1 to 2.0, we have constant and sporadic issues with updating our
applications.
Touching the web.config works about 40% of the time to cause an AppDomain to
reload and flush all assemblies. Sometimes it works perfectly, but other
times some Assemblies are not reloaded into the AppDomain, even after
multiple web.config file touches. Sometimes multiple versions of the same
assembly are loaded, even though the web.config clearly defines the correct
version to load.
Sometimes, we have to force the entire app pool to recycle before the
assemblies load correctly. No amount of web.config touching will fix it.
Most of the time some assemblies will load, and randomly other assemblies
will not load.
We are receiving 2 primary error messages:
System.IO.FileLoadException: The located assembly's manifest definition does
not match the assembly reference. (Exception from HRESULT: 0x80131040)
The type 'Core.CMS.Page' is ambiguous: it could come from assembly
'C:\WINDOWS\assembly\GAC_MSIL\Core\4.2.100.6__326259bf81ba92e7\AmeriCommerce.dll'
or from assembly
'C:\WINDOWS\assembly\GAC_MSIL\Core\4.2.100.8__326259bf81ba92e7\AmeriCommerce.dll'. Please specify the assembly explicitly in the type name.
My environment is as follows:
Multiple web servers access a DFS share for the home directory for a site.
Automated update system adds new versioned assemblies to the GAC on the web
servers.
Web.Config file is updated with all new assembly versions.