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)
WCFMicrosoft IIS Web ServerWeb Services

Avatar of undefined
Last Comment
socom1985

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Aaron Jabamani

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Bob Learned

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?
socom1985

ASKER
Third Party DLL caused the problem
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes