when i deploy new dll file by add reference its showing this error
Could not load file or assembly 'tessnet2' or one of its dependencies.
An attempt was made to load a program with an incorrect format.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
Stack Trace:
[BadImageFormatException: Could not load file or assembly 'tessnet2'
or one of its dependencies. An attempt was made to load a program with
an incorrect format.]
System.Reflection.Assembly.nLoad(AssemblyName fileName, String
codeBase, Evidence assemblySecurity, Assembly locationHint,
StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean
forIntrospection) +0
System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef,
Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean
forIntrospection) +211
System.Reflection.Assembly.InternalLoad(String assemblyString,
Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean
forIntrospection) +141
System.Reflection.Assembly.Load(String assemblyString) +25
System.Web.Configuration.CompilationSection.LoadAssemblyHelper
(String assemblyName, Boolean starDirective) +98
[ConfigurationErrorsException: Could not load file or assembly
'tessnet2' or one of its dependencies. An attempt was made to load a
program with an incorrect format.]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper
(String assemblyName, Boolean starDirective) +724
System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory
() +297
System.Web.Configuration.CompilationSection.LoadAssembly
(AssemblyInfo ai) +71
System.Web.Configuration.AssemblyInfo.get_AssemblyInternal() +39
System.Web.Compilation.BuildManager.GetReferencedAssemblies
(CompilationSection compConfig) +203
System.Web.Compilation.WebDirectoryBatchCompiler..ctor
(VirtualDirectory vdir) +163
System.Web.Compilation.BuildManager.BatchCompileWebDirectoryInternal
(VirtualDirectory vdir, Boolean ignoreErrors) +68
System.Web.Compilation.BuildManager.BatchCompileWebDirectory
(VirtualDirectory vdir, VirtualPath virtualDir, Boolean ignoreErrors)
+253
System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath
virtualPath) +148
System.Web.Compilation.BuildManager.GetVPathBuildResultInternal
(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp,
Boolean allowBuildInPrecompile) +618
System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert
(HttpContext context, VirtualPath virtualPath, Boolean noBuild,
Boolean allowCrossApp, Boolean allowBuildInPrecompile) +105
System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory
(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp,
Boolean noAssert) +147
System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath
(VirtualPath virtualPath, Type requiredBaseType, HttpContext context,
Boolean allowCrossApp, Boolean noAssert) +81
System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext
context, String requestType, VirtualPath virtualPath, String
physicalPath) +56
System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler
(HttpContext context, String requestType, VirtualPath virtualPath,
String physicalPath) +112
System.Web.HttpApplication.MapHttpHandler(HttpContext context,
String requestType, VirtualPath path, String pathTranslated, Boolean
useAppConfig) +352
System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute
() +183
System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
Boolean& completedSynchronously) +191
regards