Could not load file or assembly 'BusinessObjects.Enterprise.Sdk' with 64 bit SDK

I am running across an error that I do not fully understand when trying to get the SDK to work for 4.1 SP04. I have been trying to get this solution for a while now. I am able to run the SDK functionality with the 32 bit version without an issues however, my client would like to run the 64 bit version to align with their architecture. I have added the x64 DLLs to my project in VS2013, and compiled and built the project as a 64 bit project. I am receiving the following error message:
Could not load file or assembly 'BusinessObjects.Enterprise.Sdk' or one of its dependencies. An attempt was made to load a program with an incorrect format.
When building the project to build on "Any CPU" instead of x64 or x86, I am seeing the following messages:
Warning    1    There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "BusinessObjects.Enterprise.Sdk, Version=14.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=AMD64", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.    DemoWeb2
Warning    2    There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "CrystalDecisions.Enterprise.Framework, Version=14.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=x86", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.    DemoWeb2
Warning    3    There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "CrystalDecisions.Enterprise.InfoStore, Version=14.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=x86", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.    DemoWeb2
Warning    4    There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "CrystalDecisions.Enterprise.PluginManager, Version=14.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=x86", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.    DemoWeb2
I have made sure that I am referencing the 64 bit sdk .dlls from C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win64_x64\. I only have 64 bit installed as well. Are InfoStore, Framework, and PluginManager only x86?
Thanks!

Hi Dustin
You do  not need to be concerned if your app references 32 or 64 bit assemblies. VS being 32 bit, needs to reference 32 bit assemblies in order to compile correctly. Thus running the app from the VS IDE, you wil be using 32 bit assemblies. Using a compiled exe or a DLL, the app will use 32 bit or 64 bit assemblies depending on how the app was compiled and "bitness" of the OS.
E.g;; an app compiled as 32 bit will require 32 bit assemblies
An app compiled as 64 bit will run 64 bit assemblies - on 64 bit OS only.
An app compiled as "Any CPU", will run 32 b it or 64 bit assemblies, depending on the OS. On a 64 bit OS, the app will by definition use 64 bit assemblies (but it is up to you to deploy the 64 bit runtime - not the 32 bit runtime). On a 32 bit OS the app will use 32 bit assemblies.
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter

Similar Messages

  • BO XI Release 2: Could not load file or assembly 'BusinessObjects.

    I am getting the following error whenever I click on Home->Public Folders in BO info view. Is it some version conflict?
    I am using BO XI Release 2. Please help.
    " An error has occurred: Could not load file or assembly 'BusinessObjects.Enterprise.LanguageTools, Version=11.5.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified. "

    Hi,
    [http://service.sap.com/installations]
    Navigate to Installations and Upgrades - Entry by Application Group -> SAP BusinessObjects packages and products-> SBOP ENTERPRISE-> BOBJ ENTERPRISE XI R2
    Regards,
    Stratos

  • Could not load file or assembly CrystalDecisions.Enterprise.Desktop.User

    I had briefly looked into Crystal Reports within my Visual Studio 2008 solution. However since the project needed to be done quickly I removed the report and the references to Crystal.  Now I have deployed my application using Publish onto my QA server where I am getting the following error.  I checked my references, webconfig and imports to make sure the solution didnt have anything tied to Crystal and found nothing.  Why am I getting this error when I am no longer using the product?  Is there some way to remove the requirement for the assembly?  I also tried installing the Crystal Reports 2008 basic redistributable to my server with no luck.
    Error:
    Could not load file or assembly 'CrystalDecisions.Enterprise.Desktop.User, Version=11.5.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
    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.
    Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'CrystalDecisions.Enterprise.Desktop.User, Version=11.5.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 
    Assembly Load Trace: The following information can be helpful to determine why the assembly 'CrystalDecisions.Enterprise.Desktop.User, Version=11.5.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' could not be loaded.
    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
    Stack Trace:
    [FileNotFoundException: Could not load file or assembly 'CrystalDecisions.Enterprise.Desktop.User, Version=11.5.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.]
       System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
       System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +54
       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) +32
    [ConfigurationErrorsException: Could not load file or assembly 'CrystalDecisions.Enterprise.Desktop.User, Version=11.5.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.]
       System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +596
       System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +70
       System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +177
       System.Web.Compilation.WebDirectoryBatchCompiler..ctor(VirtualDirectory vdir) +267
       System.Web.Compilation.BuildManager.BatchCompileWebDirectoryInternal(VirtualDirectory vdir, Boolean ignoreErrors) +39
       System.Web.Compilation.BuildManager.BatchCompileWebDirectory(VirtualDirectory vdir, VirtualPath virtualDir, Boolean ignoreErrors) +429
       System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) +75
       System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +582
       System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +93
       System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +111
       System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +54
       System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +31
       System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +40
       System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +139
       System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +128
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +161

    There has to be a reference to it somewhere in the project or it would not be throwing the error.
    You will have to recheck each page, references, web.config, compile options, etc, until you find it.
    Make sure you don't have it in a using statement or are referencing it directly in code.
    Best Regards,
    Jason

  • 'Could not load file or assembly ...TemplateEngine' Error Msg on Server

    I'm working with the sample application VB_Web_CRVObjMod_FilteringData which works fine locally using the ASP.net Website admin tool
    After publishing to our server, it came up with the error...
    'Could not load file or assembly 'CrystalDecisions.Web, Version=12.0.2000.0...'
    where I installed 'CRRuntime_12_0_mlb.msi' on the server
    Now when I attempt to open the default.aspx, I'm getting this error...
    Could not load file or assembly 'CrystalDecisions.CrystalReports.TemplateEngine, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
    Should the CRRuntime_12_0_mlb.msi install all the necessary assemblies?
    The actual path of the .dll's on the development pc is
    C:\Program Files\Common Files\Business Objects\3.0
    while on the server it's
    C:\Program Files\Common Files\Business Objects\2.7
    Listed in the Add or Remove Programs on the Server
    Crystal Reports 2008 Runtime
    Crystal Reports for .NET framework 2.0 (x86)
    Server Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
    Microsoft Visual Studio 2005
    Version 8.0.50727.42 (RTM.050727-4200)
    Microsoft .NET Framework
    Version 2.0.50727 SP1
    Installed Edition: Standard
    Crystal Reports 2008
    CR Developer
    Version 12.0.0.683
    Product Type: Evaluation
    I also have Crystal Reports XI on the development pc
    CR Professional
    11.0.0.2495

    My development pc has this directory for CR 2008
    C:\Program Files\Business Objects\2008\BusinessObjects Enterprise 12.0\win32_x86
    The \2008\ directory is my doing to prevent the 2008 install from overwriting the XI install. Was this a bad idea?
    - Absolutely the worst idea I could think of. Crystal reports is side by side compliant since version 9. You do not need to, should not do any modifications at all. I have no idea what this has done to the system or even how this works as is...
    On the development pc
    Sort C:\WINDOWS\assembly by Version,
    I can find CrystalDecisions.CrystalReports.Template Engine 12.0.1100.0
    version 11.0.3300.0 also exists
    On the server in C:\windows\assembly
    CrystalDecisions.CrystalReports.Template Engine is not found
    Other CrystalDecisions... assemblies version 12.0.1100.0 are present
    In the original post you mention that you are using .NET 2005. Yet, you only see CR assemblies of version 12.0.1100. These assemblies can not be used in .NET 2005. The really confusing part is that the error is telling me the app is looking for assemblies of version 12.0.2000.
    Look in the .NET project for the CR assemblies. What version of the assemblies are you referencing?
    Ludek

  • Could not load file or assembly 'file:///C:\Program Files\SAP.......

    Could not load file or assembly 'file:///C:\Program Files\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll' or one of its dependencies. The system cannot find the file specified.
    This is the error that always comes out when i run my program. I've already checked My SAP folder in my C drive. However, there is no win32_x86 directory inside the folder of SAP BusinessObjects Enterprise XI 4.0 in my SAP business objects enterprise folder. What is it that I need to do now.
    I am hoping for your answer since i badly need the crystal reports for my thesis. Thank You.

    Hi thanks for your reply. I've already searched. And then i found this answer.
    <startup useLegacyV2RuntimeActivationPolicy="true">
      <supportedRuntime version="v4.0"/>
    </startup>
    By pasting that to the config file. Problem is, i don't know where is the config file and which file they are talking about. Can you please tell me where i could find the config file? Please. Thank you very much.

  • Could not load file or assembly 'log4net' or one of its dependencies. An at

    Hi guys,
    Yesterday I downloaded the CR release for VS2010. Before this I was using the Beta (and later Beta2) version. Both worked fine. I first uninstalled the beta version, next I installed the release version. No problems with installing. But now I'm trying to use CR. I get the error:
    "Could not load file or assembly 'log4net' or one of its dependencies. An attempt was made to load a program with an incorrect format.".
    I noticed that it has something to do with the runtime enviroment. If I set the project's platform target to x86, it works fine. Turning it back to 'any CPU' or x64, it results in that error. (I'm using w7 x64).
    I did install the the x64 runtime (CRRuntime_64bit_13_0.msi, also asked at the end of the installation).
    Any ideas how to solve this?
    Why is CR using log4net anyway?
    Best,
    Danny

    Hi Ludek,
    Thanks for you replies. Let's answer them:
    -Is this a local install, or are you using some sort of a remote connection?
      It's my local development machine.
    -Are you getting the error at build time or at runtime?
      Both: VS2010 doesn't give a compiler error, but only a warning. At runtime in completly crashes.
    - Look in the GAC. Do you see Log4Net.dll? There should be two - one for 32 bit and one for 64 bit OS (same version though).
      Both are there.
    Further I noticed the following.
    - If I set the target platform to Any CPU (and thus x64), when building, log4net.dll is copied to the bin folder. If the target platform is set to x32, log4net.dll is not copied. If a take a look at the last modified time of the dll and compare this to the dll in the GAC, the 64-bit dll is copied. So this looks right.
    - If I selected the included reference in VS2010, it says that the path of the reference is the following: ...\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet\CrystalDecisions.ReportSource.dll. So it looks like the 32-bit version of CR is used.  When I go the folder Crystal Reports for ...\.NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86, I can find here a folder "dotnet", containing all the references included in the project. Taking a look into the "win64_x64" folder, I can't find the "dotnet" folder. I did install the 64-bit runtime version.
    Hope this information helps

  • Could not load file or assembly crdb_adoplus.dll

    Hello everyone!..
    I am having a really annoying problem, in my code when I try to set de data source to the report the following error appears:
    Could not load file or assembly 'file:///C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll' or one of its dependencies. The system cannot find the file specified.
    I am running .NET Framework 4 running in VS2012 to X86 and I have installed the CRforVS_13_0_8, although just in case I installed all the version from the CRforVS_13_0_5 to the CRforVS_13_0_8.
    Also I have found in many sites that adding the following lines to the app.config seems to fix the problem, but in my case doesn't work:
        <startup useLegacyV2RuntimeActivationPolicy="true">
             <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
         </startup>
    Part of my code is this, just in case:
    using (ReportDocument report = new ReportDocument())
           try
           // carga el reporte desde su ubicación configurada
                     report.Load(pathReporte);
                     report.SetDataSource(data);
    and the dlls I have referenced are this ones:
    CrystalDecisions.CrystalReports.Engine
    CrystalDecisions.ReportSource
    CrystalDecisions.Shared
    Thanks very much for your help in advance.

    Hi Javier
    Two things to do:
    1) Read this blog re. troubleshooting issues with CR and datasets (the error is different, but try anyhow)
    2) Use Process Monitor and see what is happening when your process is attempting to load the crdb_adoplus.dll
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Could not load file or assembly 'Microsoft.SqlServer.Diagnostics.STrace, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.

    I am trying to use SQL Server 2008 Developer on Windows Server 2008.  Whenever I try to connect to the server, I get this error: "Could not load file or assembly 'Microsoft.SqlServer.Diagnostics.STrace, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91'
    or one of its dependencies. The system cannot find the file specified."
    I found some info at
    http://blogs.msdn.com/b/ashishme/archive/2009/08/15/could-not-load-file-or-assembly-microsoft-sqlserver-diagnostics-strace-version-10-0-0-0-culture-neutral-publickeytoken-89845dcd8080cc91-or-one-of-its-dependencies-the-system-cannot-find-the-file-specified.aspx,
    but this didn't help me because it is not on my system, even after reinstalling both SQL Server and .NET Framework 4.  I also saw a this page: http://social.msdn.microsoft.com/Forums/en-US/sqltools/thread/1115cd55-721d-4974-99b1-d142d1e6a927,
    but this also didn't fix my problem.
    What can I do, or where can I get the missing assembley?
    Thanks in advance.

    You can get the missing assembly (Microsoft.SqlServer.Diagnostics.STrace.dll)
    by installing the "Shared Features" of SQL Server 2008.
    You could only install SQL Server 2008
    R2 (any edition) on Windows 7.
    Do not install more than 1 SQL Server 2008 R2 edition
    into the same computer; Some of the components are not compatible.
    E.g:  BIDS from R2 Express Advance edition cannot
    recognize Integration Service from R2 Enterprise Trial edition - it would throw above missing dll error.

  • Could not load file or assembly 'Oracle.DataAccess, Version=2.112.3.0

    Hi,
    I am using windows 7 64 bit Enterprise Edition, Visual Studio 2010 Premium, and my app is built using .net framework 4.0. I downloaded and install ODP.NET 11.2.0.32 but when I add reference Oracle.DataAccess to my app, its giving me the following error, *"Could not load file or assembly 'Oracle.DataAccess, Version=2.112.3.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified."*
    I have checked other threads on this same topic, but I found that I have proper version (64bit) of ODP.NET as per my OS, Visual Studio & .net framework.
    Am I missing something, please help.

    Hi,
    I manage to resolve the error, the error is though due to a different reason,
    I was trying to add ODP.Net 64bit reference directly to a Web Site project in Visual Studio 2010, then find out that this is not possible as the web site builds based on aspnet worker process, and that is 32bit, hence there was a problem referencing the 64bit ODP.NET assembly.
    So I created a class library project for any cpu and refer the 64bit assembly in there, and refer the class library project in the main web site, and the problem solved.

  • Could not load file or assembly 'CrystalDecisions.Shared, Version=12.0.2000

    I downloaded the trial version of CR 2008 in order to test an update of a report from Crystal 10.  I would also add that I am using CR 2008 embedded in Visual Studio .Net 2005.  I was able to successfully upgrade the report and run it without issue from the .Net debugger.  However when I deploy the report to the users machine when it attempts to display the report I get the following error:
    Could not load file or assembly 'CrystalDecisions.Shared, Version=12.0.2000.0, Culture=neutral, PublicKey Token=692fbea5521e1304' or one of its dependencies.  The system cannot fined the file specified.
    Since I was able to successfully deploy the report with CR 10, my question is do I need to purchase a version of CR 2008 in order to deploy?  I just want to make sure that this is indeed the issue prior to making the purchase.  If that is not the case can you please point me to proper deployment procedures for 2008, perhaps there is something I am missing.
    Thanks much for your assistance,
    Mike

    I will assume that when you are viewing the report you are using a custom app which uses CR 2008.  To deploy your app you will need two things:
    1. The Runtimes
    2. A valid Keycode
    You can obtain the Runtimes here:
    Runtime Downloads
    CR 2008 msi: https://smpdl.sap-ag.de/~sapidp/012002523100005985862008E/cr120_redist_install.zip
    CR 2008 click once: https://smpdl.sap-ag.de/~sapidp/012002523100005986302008E/cr120_clickonce.zip
    CR 2008 msm: https://smpdl.sap-ag.de/~sapidp/012002523100005985842008E/cr120_mm.zip
    You can also find these by going to here:
    https://www.sdn.sap.com/irj/sdn/businessobjects-downloads
    and selecting "Crystal Reports", ".NET", and "Utility"
    I'm not sure if your eval keycode will work to deploy - but even if it does, the application will eventually stop working when the eval period runs out.  If you want it to keep working, you will need to purchase a permanent keycode.
    Shawn

  • Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040

    Please assist I am on a Windows 7 64 bit machine I have VS 2010 and have been fighting with this new program that I was brought on to help with - Issue is that I am unable to get rid of this issue. There is so many solutions but none have worked. If someone can give me some help with what has worked for you.
    The error is Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
    This is with CR installed on 64 bit.
    Thank you very much for any assistance with this problem,
    Kris

    Hi Vittorio
    Please enter the search string 'log4net crystal net' into the search box in the top right corner. When the results come up, click on the Support Notes link. That will filter for the KBAs that you want to have a look at.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Could not load file or assembly 'log4net, Version=1.2.10.0

    Server Error in '/' Application.
    Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
    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.
    Exception Details: System.IO.FileLoadException: Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The located assembly's manifest definition does not match
    the assembly reference. (Exception from HRESULT: 0x80131040)
    Source Error:
    Line 13: public partial class ReportViewer : System.Web.UI.Page
    Line 14: {
    Line 15: ReportDocument rptDocument = new ReportDocument();
    Line 16: ParameterDiscreteValue crtParamDiscreteValue = new ParameterDiscreteValue();
    Line 17: protected void Page_Load(object sender, EventArgs e)
    Source File: d:\WEBDATA\sriramcollege.com\Reports\ReportViewer.aspx.cs    Line:
    15
    Stack Trace:
    [FileLoadException: Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
    CrystalDecisions.Shared.SharedUtils..cctor() +0
    [TypeInitializationException: The type initializer for 'CrystalDecisions.Shared.SharedUtils' threw an exception.]
    CrystalDecisions.Shared.SharedUtils.get_CurrentControl() +18
    CrystalDecisions.Shared.SharedUtils.GetEffectiveCulture() +8
    CrystalDecisions.CrystalReports.Engine.CREngineRes.GetString(String name) +10
    CrystalDecisions.CrystalReports.Engine.ReportDocument.CheckForCrystalReportsRuntime() +143
    CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor() +159
    [TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception.]
    CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor() +0
    ReportViewer..ctor() in d:\WEBDATA\sriramcollege.com\Reports\ReportViewer.aspx.cs:15
    ASP.reports_reportviewer_aspx..ctor() in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\e63cc5e2\46d2498\App_Web_bvplj1td.0.cs:0
    __ASP.FastObjectFactory_app_web_bvplj1td.Create_ASP_reports_reportviewer_aspx() in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\e63cc5e2\46d2498\App_Web_bvplj1td.2.cs:0
    System.Web.Compilation.BuildResultCompiledType.CreateInstance() +30
    System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) +100
    System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +31
    System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +64
    System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +191
    System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +145
    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155

    hi,
    this is not even c# question.
    anyhow, you have the same case as this one.
    https://social.msdn.microsoft.com/Forums/en-US/9223655f-0cbd-441e-86a6-d53f3fb37d48/could-not-load-file-or-assembly-log4net-version12100?forum=netfxbcl
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral

    Hi,
    I have a web site developed with vs 2010 (32-bit) and crystal report 13 (for sv 2010). It's working well i when crystal report installed in gac. I need to this app on a server WITHOUT crystal report installed. so I copied all required crystal assemblies into the bin folder and publish it. I always get following error message
    Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
    I tried a lot of solutions in this forum, but none of them resolved my issue.
    Please help!!
    thanks,
    Max

    Stick with x86 or x64, not Any CPU.
    Don't include log4net manually
    Look at these Kbases:
    [1543854  - Error: Could not load file or assembly log4net|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533343333333833353334%7D.do]
    [1550854  - "Could not load file or assembly 'log4net' or one of its dependencies" Error when building Visual Studio 2010 solution utilizing the Crystal Reports .NET Runtime|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533353330333833353334%7D.do]
    [1544693  - Error BC30560: 'CrystalReportViewer' is ambiguous in the namespace 'CrystalDecisions.Web'|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533343334333633393333%7D.do]
    [1548993  - Server Error in '/' Application when running .NET Web Application using Crystal Reports for Visual Studio 2010|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533343338333933393333%7D.do]
    - Ludek

  • Help with Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.

    This was all working yesterday, but this morning, I cannot run in the dev fabric, or even setting the website project as a startup project directly, I get the following error:
    Could not load file or assembly 'msshrtmi' 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.
    Exception Details: System.BadImageFormatException: Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Assembly Load Trace: The following information can be helpful to determine why the assembly 'msshrtmi' could not be loaded.
    === Pre-bind state information ===
    LOG: User = Andrew-VAIO\Andrew
    LOG: DisplayName = msshrtmi
    (Partial)
    WRN: Partial binding information was supplied for an assembly:
    WRN: Assembly Name: msshrtmi | Domain ID: 3
    WRN: A partial bind occurs when only part of the assembly display name is provided.
    WRN: This might result in the binder loading an incorrect assembly.
    WRN: It is recommended to provide a fully specified textual identity for the assembly,
    WRN: that consists of the simple name, version, culture, and public key token.
    WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue.
    LOG: Appbase = file:///C:/Users/Andrew/Desktop/Beko2011Azure/Website/
    LOG: Initial PrivatePath = C:\Users\Andrew\Desktop\Beko2011Azure\Website\bin
    Calling assembly : (Unknown).
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: C:\Users\Andrew\Desktop\Beko2011Azure\Website\web.config
    LOG: Using host configuration file:
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
    LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
    LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/cb955b02/eef106e2/msshrtmi.DLL.
    LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/cb955b02/eef106e2/msshrtmi/msshrtmi.DLL.
    LOG: Attempting download of new URL file:///C:/Users/Andrew/Desktop/Beko2011Azure/Website/bin/msshrtmi.DLL.
    ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.
    Stack Trace:
    [BadImageFormatException: Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
    System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
    System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +39
    System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks) +132
    System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +144
    System.Reflection.Assembly.Load(String assemblyString) +28
    System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46
    [ConfigurationErrorsException: Could not load file or assembly 'msshrtmi' 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) +618
    System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +209
    System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +130
    System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178
    System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() +94
    System.Web.Compilation.BuildManager.CallPreStartInitMethods() +332
    System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +677
    [HttpException (0x80004005): Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9079228
    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +97
    System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +258
    Note that the dev machine is x64 Win7.
    I have not tried deploying this to staging since the issue started as I'm a bit nervous of touching the staging/live environment until this is solved.
    Removing the PlatformTarget element from the project file has no effect
    Removing the msshrtmi.dll file from the bin directory of the website project ends up with 
    'Could not load file or assembly 'Microsoft.WindowsFabric.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified'
    I have used Git to revert to the last working build to no effect (But I don't have the obj/bin folders in GIT), but it has atleast reset the project files etc.
    If I return msshrtmi.dll to the bin folder and switch the model and website projects to x64 there is no change
    If I switch both to x86 then I get an error Could not load file or assembly 'BekoModel2011' or one of its dependencies. An attempt was made to load a program with an incorrect format.
    which is the model project - presumably because to run on my x64 machine I need the 64bit version?
    I really need to be able to debug and then publish some changes ASAP.
    Andrew

    Hi,
    Is it true that you're using IIS to host the application? Could you check whether the process is x64 or x86 one via task manager or config in IIS manager?
    http://blogs.msdn.com/b/rakkimk/archive/2007/11/03/iis7-running-32-bit-and-64-bit-asp-net-versions-at-the-same-time-on-different-worker-processes.aspx
    Allen Chen [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Receiving error message 'Could not load file or assembly 'System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.'

    I started getting this error message for the first time today. When I look in the event log I see it every time anyone tries to sync to a mobile device to the exchange server. I've also had this problem trying to connect using
    Outlook. I believe it is an IIS issue but I'm not absolutely sure so I'm posting this in the Exchange forum as well.
    The event viewer has the following information...
    3008
    A configuration error has occurred.
    5/1/2014 10:41:08 PM
    5/2/2014 5:41:08 AM
    7539d8a38c8b47869eda3f1749aba08d
    1
    1
    0
    /LM/W3SVC/1/ROOT/Microsoft-Server-ActiveSync-75-130434828686436855
    Full
    /Microsoft-Server-ActiveSync
    C:\Program Files\Microsoft\Exchange Server\V14\ClientAccess\sync\
    SERVER
    16284
    w3wp.exe
    NT AUTHORITY\SYSTEM
    ConfigurationErrorsException
    Could not load file or assembly 'System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
    https://remote.testserver.com:443/Microsoft-Server-ActiveSync/default.eas?User=user.name&DeviceId=ApplC39GQ5xxxxxx&DeviceType=iPhone&Cmd=Ping
    /Microsoft-Server-ActiveSync/default.eas
    174.224.130.31
    False
    NT AUTHORITY\SYSTEM
    24
    NT AUTHORITY\SYSTEM
    False
    at System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) at System.Web.Configuration.Common.ModulesEntry..ctor(String name, String typeName, String propertyName, ConfigurationElement configElement) at System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1 moduleList) at System.Web.HttpApplication.GetModuleCollection(IntPtr appContext) at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)
    I have tried most, if not all, of the different post's suggestions to no avail.
    The steps I have taken are as follows...
    1. Repaired .Net 4 (Both the client and extended)
    2. Uninstalled and reinstalled .Net Framework 4.0.
    3. Verified that the dll exists.
    4. Checked the applicationHost.config file. It contains the follow statement...
    <add name="ServiceModel-4.0" type="System.ServiceModel.Activation.ServiceHttpModule, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="managedHandler,runtimeVersionv2.0"
    />
    5. Changed the following line in web.config to include the runtimeVersion...
    <add name="ServiceModel" type="System.ServiceModel.Activation.HttpModule, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="managedHandler,runtimeVersionv2.0" />
    6. Executed aspnet_regiis.exe -iru from the ...\Framework64\v4.0.30319 directory.
    7. Went to inetpub\history to use an applicationHost.config file from yesterday but it only has history from 9PM tonight. It probably had what I needed before I started changing it tonight.
    I still receive the same error message.
    Like I said everything was working yesterday. In fact I didn't hear or see any issue until after 1PM today.
    Any help would be very appreciated!

    Hi,
    Please confirm whether users can access their mailboxes from Outlook Web Access or not. We can do the following changes to have a try:
    1. In IIS > Application Pools, change the .NET Framework Version to v2.0 and restart IIS service.
    2. If it doesn’t work, explore the Default Web site.
    3. Renamed the web.config file to web.config.old
    4. Reset IIS using iisreset command to have a try.
    Thanks,
    Winnie Liang
    TechNet Community Support

Maybe you are looking for