We are deploying our ASP.NET 2 website to an Windows 2003 32bit server.
De website uses leadtools v16, the rasterimage functionality (loading, saving, and resizing).
Upon loading the home page of the website (which does not uses leadtools functionality), the following exception is thrown:
System.Configuration.ConfigurationErrorsException: The specified module could not be found. (Exception from HRESULT: 0x8007007E) (*****\web.config line 113)
Stacktrace: at System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase)
at System.Web.Configuration.HttpHandlerAction.Create()
at System.Web.Configuration.HandlerFactoryCache..ctor(HttpHandlerAction mapping)
at System.Web.HttpApplication.GetFactory(HttpHandlerAction mapping)
at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
InnerException System.Configuration.ConfigurationErrorsException: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
Stacktrace: at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
at System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory()
at System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai)
at System.Web.Configuration.AssemblyInfo.get_AssemblyInternal()
at System.Web.Compilation.CompilationUtil.GetTypeFromAssemblies(AssemblyCollection assembliesCollection, String typeName, Boolean ignoreCase)
at System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase)
at System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase)
InnerException System.IO.FileNotFoundException: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
Stacktrace: at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.Load(String assemblyString)
at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
We are putting the following dll's in the bin folder:
Leadtools.dll
Leadtools.Codecs.dll
Leadtools.Codecs.*.dll
If I remove all Leadtools.Codecs.*.dll except the png,bmp,gif,tif and j2k dll, the exception is not thrown. However, the website doesn't function correct (imageformats aren't recognized).
If I put the complete redist folder in the bin (including unmanaged dll's), the same exception is thrown.
What are we missing?