Link to home
Start Free TrialLog in
Avatar of socom1985
socom1985

asked on

WCF Service can not find files when deployed

My WCF service has problems finding its dependency's when I deploy it on the webserver. All DLL's are being deployed with the service in the /bin folder.. I have no idea how to fix this..

Here is the error:


  Exception type: ConfigurationErrorsException
    Exception message: Could not load file or assembly 'E3k.Api' or one of its dependencies. An attempt was made to load a program with an incorrect format.
   at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)
   at System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory()
   at System.Web.Configuration.AssemblyInfo.get_AssemblyInternal()
   at System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig)
   at System.Web.Compilation.BuildManager.CallPreStartInitMethods()
   at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)
ASKER CERTIFIED SOLUTION
Avatar of Aaron Jabamani
Aaron Jabamani
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
How is the assembly built?  

Will it be running on a 64-bit server, and built as a 64-bit or Any CPU?
 
If it is IIS, how is the server application pool configured?
Avatar of socom1985
socom1985

ASKER

Third Party DLL caused the problem