Could not load file or assembly issue with SSAS Deployment Wizard
Hi
I am getting an error when trying to update 'Data Source Connection Strings' under 'Specify Configuration Properties' of the SSAS Deployment Wizard.
Unhandled exception occurred: Could not load file or assembly 'Microsoft.VisualStudio.Data, Version=8.0.0.0 ...
Well, it used to be 'version = 10.0.0.0. It changed to version 8 after trying to fix it for hours by googling and so on.
I just can not make it work. I really need to make it work as I need to use the deployment wizard to deploy the project to the production server. (Looks like this is the only way as the server is not part of domain, just a standalone server hosted on a cloud).
on top of my head, I remember installing everything under SQL2012 DVD D:\redist\VSTA.
Visit Micirosoft site and download components and so on..
I have two other servers, one with SQL2008R@ and SQL2012. Both are ok. But this server which I want to use it as the production server is causing me an issue. ah... I can not make it work. Please help me!
Kind regards
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
-
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.
AndrewHi,
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. -
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 -
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,
KrisHi 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 -
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,
MaxStick 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 -
Upgrading from MBAM 1.0 to 2.5 on the Administration and Monitoring server (database server already upgraded). To upgrade the administration server, I uninstalled MBAM 1.0 -> Deleted the MBAM website from IIS manually -> Reboot -> Installed MBAM
2.5. After upgrade if I go to selfservice portal via
https://myserver.mycompany.com/selfservice, I get this error:
Server Error in '/SelfService' Application.
Could not load file or assembly 'System.Web.WebPages.Razor,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' 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
'System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35' 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.
Stack Trace:
[FileNotFoundException: Could not load file or assembly 'System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.]
System.Web.Mvc.PreApplicationStartCode.Start() +0
[InvalidOperationException: The pre-application start initialization method Start on type System.Web.Mvc.PreApplicationStartCode threw an exception with the following error message: Could not load file or assembly 'System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified..]
System.Web.Compilation.BuildManager.InvokePreStartInitMethodsCore(ICollection`1 methods, Func`1 setHostingEnvironmentCultures) +12980619
System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods) +12980328
System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +280
System.Web.Compilation.BuildManager.ExecutePreAppStart() +172
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +1151
[HttpException (0x80004005): The pre-application start initialization method Start on type System.Web.Mvc.PreApplicationStartCode threw an exception with the following error message: Could not load file or assembly 'System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified..]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12979668
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12819261
Anyone know how to solve this? Thanks in advanceSorry for late response. I fixed the issue by installing the correct version of ASP .NET 4 from
here.
If .NET Framework 4.5 is already installed, also run aspnet_regiis -i from C:\windows\microsoft.net\Framework\v4.0.30319 -
Could not load file or assembly 'Microsoft.ReportingServices.SharePoint.ObjectModel' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
===========================================================
This is a SQL Server 2012 Developer Edition of SSRS.
I am getting this error when navigating to http://servername/Reports. The reports site was working fine, until I installed a SQL 2014 Developer instance (including SSRS) on the same server.
I can still get to the http://servername/ReportServer site.
Neither of these are using Sharepoint.
Any help resolving this issue would be greatly appreciated.
Below is the stack trace.
===========================================================
[FileLoadException: Could not load file or assembly 'Microsoft.ReportingServices.SharePoint.ObjectModel' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)] 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) +416 System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +166 System.Reflection.Assembly.Load(String
assemblyString) +35 System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +190 [ConfigurationErrorsException: Could not load file or assembly 'Microsoft.ReportingServices.SharePoint.ObjectModel'
or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)] System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +1149
System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +323 System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +116 System.Web.Configuration.AssemblyInfo.get_AssemblyInternal() +36 System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection
compConfig) +212 System.Web.Compilation.WebDirectoryBatchCompiler..ctor(VirtualDirectory vdir) +174 System.Web.Compilation.BuildManager.BatchCompileWebDirectoryInternal(VirtualDirectory vdir, Boolean ignoreErrors) +57 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath
virtualPath) +295 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +482 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext
context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +108 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean
noAssert) +171 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +52 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext
context, String requestType, VirtualPath virtualPath, String physicalPath) +53 System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +519 System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
+176 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +274
===========================================================Hi Glen,
"The located assembly's manifest definition does not match the assembly reference." is generally caused by the loaded assembly's version is different than the expected version application refers to.
In this case, it should be caused by:
While starting Report Manager, the backend process ReportingServiceService need to load assemblies it refers to
ReportingServiceService reads the compilation/assemblies element from web.config(under Report Manager virtual patch)
If the compilation/assemblies is not existing, ReportingServiceService loads all assemblies from Bin folder. It can be verified from call stack System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory(). ReportingServiceService
uses System.Reflection.Assembly.Load with the assemblies' name only to load assemblies.
The Assembly.Load tries to load from the specify assembly by name from GAC at first. If it is found from GAC, it won't be loaded from Bin folder any more.
Since Reporting Service SharePoint Integration mode is installed, a same assembly of 'Microsoft.ReportingServices.SharePoint.ObjectModel' with different version might be installed to the GAC. That causes the error "The located assembly's manifest definition
does not match the assembly reference."
For more information about the error message and the loading process, please see:
http://blogs.msdn.com/b/junfeng/archive/2004/03/25/95826.aspx
https://msdn.microsoft.com/en-us/library/yx7xezcf(v=vs.100).aspx
Thanks,
Jinchun Chen -
Could not load file or assembly
Hi Guys,
I did content migration from wss 3.0 to 2010 share point i ran test-spcontent database and mount-spcontentdatabase.
After fully migrated. once of the site i get following error below , can anyone please help me out.
Error Error
Could not load file or assembly 'manu.redy.TabbedPageViewer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b32f08426d7f83fe' or one of its dependencies. The system cannot find the file specified.
Troubleshoot issues with Microsoft SharePoint Foundation.
Correlation ID: a441c05b-5e17-4ece-adfb-b5948b909808
Date and Time: 26/01/2015 14:11:02
Thanks in Advance.
kumarHi ,
I have checked the older wss 3.0 solution packages, i can see
manu.redy.TabbedPageViewer.cab . So i tried to deploy the .cab file user add-spsolution commmand and deployed into GAC .
When i go the page i see following error below
Error
An unexpected error has occurred.
Web Parts Maintenance Page: If you have permission, you can use this page to temporarily close Web Parts or remove personal settings. For more information, contact your site administrator.
Troubleshoot issues with Microsoft SharePoint Foundation.
Correlation ID: 99ea121a-938b-4b4b-bbce-036108cc2ce0
When i go to webpart maintaince page, i see the error webpart , i deleted that. It displays the same error again.
Any help please
kumar -
"Could not load file or assembly 'WindowsBase 4.0.0.0 ...
I get this error when starting Management Studio Express 2012.
I know it is related to Visual Studio 2010 SP1. I ought to try to update VS2010 SP1 with KBxxxx that fix security issues. But one KB2635973 refuses to install (I downloaded the update and run it not via Windows Update). When running the update I get the
same error. The update UI shows that it has been installed. But it was not. When I check Windows Update it would be listed again.
I didn't invite this trouble myself. I was running Windows 8. I was constantly prompted to upgrade to 8.1 but I declined. But one day it just got upgraded anyway without giving any chance to abort the upgrade. Since then I have this "Could not load
file or assembly" error.
I had tried re-installing SQL server management studio. But the error refuses to go away.
Please help as I have spent a lot of time searching for solution without success. I have been using DOS/Windows since the 1980's and this is the worst experience that I have come across.Ok I found the cause after browsing through this thread:
http://stackoverflow.com/questions/14506938/could-not-load-file-or-assembly-windowsbase-version-4-0-0-0
WindowsBase.DLL is missing from this folder on my machine:
C:\Windows\Microsoft.NET\assembly\GAC_MSIL\WindowsBase\v4.0_4.0.0.0__31bf3856ad364e35
I copied the file from another machine into this folder. Now the problem disappears. -
Could not load file or assembly 'Interop.SBODI_Server' Web Service Error
Hello Professionals,
I'm trying to build a .net application to create a PO through SAP B1 Web Service,
I have downloaded the SAP B1 Web Service Tool and generated all WSDL Files,
I followed the manual to host web services on IIS. However, when i try to connect to web service i get this error
Could not load file or assembly 'Interop.SBODI_Server' or one of its dependencies. An attempt was made to load a program with an incorrect format."
how can i resolve this issue?
Thanks in advance,Just to make sure : Your B1WS is installed on the same machine like SBO DI Server ?
Can you create a simple forms application, include SBODI_Server reference and make a direct DIS SOAP call. Like
<?xml version="1.0" encoding="UTF-16"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Body>
<dis:Login xmlns:dis="http://www.sap.com/SBO/DIS">
<DatabaseServer>confDatabaseServer</DatabaseServer>
<DatabaseName>confLagerDatabaseName</DatabaseName>
<DatabaseType>dst_MSSQL2012</DatabaseType>
<DatabaseUsername>confDBUser</DatabaseUsername>
<DatabasePassword>confDBPassword</DatabasePassword>
<CompanyUsername>confCompanyUser</CompanyUsername>
<CompanyPassword>confCompanyPassword</CompanyPassword>
<Language>ln_English</Language>
<LicenseServer>confLicenceServer</LicenseServer>
</dis:Login>
</env:Body>
</env:Envelope>
SBODI_Server.Node myNode = new SBODI_Server.Node();
var result = myNode.Interact(xmlCommand); -
Could not load file or assembly Oracle.DataAccess
Hi, I have a web project in Visual Studio 2008 for .NET Framework 3.5 using ODP.NET. The app has been working under a 32bit machine with the 10.2 client for a few years. We are moving to new servers which are 64bit and require the 11.2 client. I am trying to get the project built and running on my laptop but it fails at the build. I have a 64bit laptop (Windows 7) and have installed the Oracle 11.2 64 bit client. I have confirmed in the c:\windows\assembly that the Oracle.DataAccess.dll says it is AMD64. However, when I try to build my project it says:
Could not load file or assembly 'Oracle.DataAccess, Version=2.112.1.0, Culture=neutral, PublicKeyToken=89b473f429c47342' or one of its dependencies. An attempt was made to load a program with an incorrect format
From the many posts I have read this happens when you are mixing 64bit and 32bit but from everything I see, all my stuff is 64bit and it should be ok. I can say I have uninstalled and reinstalled the client a few times but I think it's ok as I can connect to the database through sqlplus ok.
Any ideas?
Edited by: user6726317 on Aug 20, 2012 5:27 PMAs has been mentioned, this problem is caused by conflicting 64/32 bit issues where you try to load the wrong type of assembly.
In this case, since the project already was 32 bit I'd recommend you simply install the 32 bit version of ODP.net. This installs alongside the 64 bit one, and will let you run the application in 32 bit mode (which it was designed for). Make sure to change the build settings to x86 in Visual Studio.
edit - For a web project, it'll either debug inside IIS or the Visual Studio development server, depending on how you have it configured in Visual Studio. I believe the development server is 32 bit like VS itself. IIS is 64, but an application pool can be configured to enable 32 bit applications. Either way, I wouldn't try changing the application from 32 bit to 64 bit without a good reason. Just run it as 32 bit with the 32 bit version of ODP.net 11.2.
Edited by: Tridus on Aug 24, 2012 9:41 AM -
Hi All,
While trying to access oracle database from SharePoint facing "Could not load file or assembly 'Oracle.DataAccess, Version=2.121.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified."
How to fix this issue? Thanks in advance!Hi,
According to your post, my understanding is that you get error while access oracle database in SharePoint.
You can set “Enable 32-bit Applications” to true in the application pool for the web application, then check whether it works.
For more information:
https://www.learningpenguin.net/myblog/2014/02/03/could-not-load-file-or-assembly-oracle-dataaccess-or-one-of-its-dependencies-an-attempt-was-made-to-load-a-program-with-an-incorrect-format/
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support -
Could not load file or assembly "Oracle.DataAccess" or one of its dependencies
Hi All,
I am trying to run this web application. I keep getting this error
"Could not load file or assembly "Oracle.DataAccess" or one of its dependencies. An attempt was made to load a program with an incorrect format."
Exception details: System.BadImageFormatException. "Could not load file or assembly "Oracle.DataAccess" or one of its dependencies. An attempt was made to load a program with an incorrect format."
Below are the things that I already tried.
1) replaced all the oracle dll's with 32 bit oracle dll i.e 2.112.3.0
I have 32 bit client installed on 64 bit machine. The operating system is windows 7.
2) compile each individual project individually. Deleted all the oracle dependent files dll and then added the 2.112.3.0 dll's individually and then compiled each project
3) Register the 32 bit dll on GAC using this statement
gacutil /i %ORA_HOME4%\odp.net\bin\4\Oracle.DataAccess.dll
gacutil /i %ORA_HOME4%\asp.net\bin\4\oracle.web.dll
for the above two statements, I copied the gacutil.exe from c:\Program Files(x86)\Microsoft sdk\windows\v7.0A\Bin\NETFX4.0 Tools\X64
to C:\ drive and then
I executed the above two statement:
gacutil /i %ORA_HOME4%\odp.net\bin\4\Oracle.DataAccess.dll
gacutil /i %ORA_HOME4%\asp.net\bin\4\oracle.web.dll
when I excecuted the above two statements, I didn't get any message, I exceuted them in Dos windows under administrator privilege.
4) I also deleted all the Temporary ASP.net files from this location
c:\windows\Microsoft.Net\V4.0.30319\temporary ASP.net files
I also changed the web application build Platform target to X86, Originally, it was at "ANy CPU". out of frustration, I also tried changing the platform target to X64 and then I got the error message saying
" Cold not load file or assemble . webapp" or one of its dependencies. An attempt was made to load a program with an incorrect format.
I don't have IIS installed on my computer, I am running this application in visual studio 2010 so I think it will be using the inbuild IIS that comes with visual studio.
I spend lot of hours resolving this issue, but still getting the same error again and again.
any help or hint will be highly appreciated.You have a 32/64bit mismatch going on.
Possibly the bit where you said you replaced the .dll's with 32 bit Oracle dll's is the source of the problem.
You needs that Oracle.DataAccess managed wrapper to be able to locate the underlying oci client dlls of the appropriate version.
The ODP .net install guide is very very good and thorough and straight forward to read and use and understand and explains how to achieve this.
Also what is the target compile type of your VS project? That'll have to be 32 bit, or any as well. -
Could not load file or assembly DreamweaverCtrls
Hello,
I’ve been researching my issue, but haven’t had
any luck in getting it resolved. So, i’m hoping someone can
please help me!
I’m using DW 8 and am trying to load a simple asp.net
application. The application works perfectly fine on my local
server. The problem is, is that can’t get the application to
even open when it is on the hosting server. When I try to run the
application I receive the following Parser Error message.
Server Error in '/' Application.
Parser Error
Description: An error occurred during the parsing of a
resource required to service this request. Please review the
following specific parse error details and modify your source file
appropriately.
Parser Error Message: Could not load file or assembly
'DreamweaverCtrls, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=836f606ede05d46a' or one of its dependencies. The
system cannot find the file specified.
Source Error:
Line 1: <%@ Page Language="VB" ContentType="text/html"
%>
Line 2: <%@ Register TagPrefix="MM"
Namespace="DreamweaverCtrls"
Assembly="DreamweaverCtrls,version=1.0.0.0,publicKeyToken=836f606ede05d46a,culture=neutra l"
%>
Line 3:
Line 4: <MM:Insert
Source File: /Signup Form.aspx Line: 2
Assembly Load Trace: The following information can be helpful
to determine why the assembly 'DreamweaverCtrls, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=836f606ede05d46a' 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].
Version Information: Microsoft .NET Framework
Version:2.0.50727.42; ASP.NET Version:2.0.50727.210KandSpam Wrote:
> Nevermind I figured it out!
What was your solution? -
I have updraded my pocket pc application from VS 2005 to VS 2008 and had to convert all the sqlce* files to 35 from 30. all upgraded System.Data.SqlServerCe.dll to version 3.5.0.0 and runtime version as v2.0.50727. My Target Framwork is .NET Framework 2.0.
All the other sqlce* files are:
sqlceca35.dll
sqlcecompact35.dll
sqlceer35EN.dll
sqlceme35.dll
sqlceoledb35.dll
sqlceqp35.dll
sqlcese35.dll
The application is compiling without errors with the above dll's and creating its own webservice dll. the webservice dll is the copied to webserver which has the following dll's:
sqlceca30.dll
sqlcecompact30.dll
sqlceer30EN.dll
sqlceme30.dll
sqlceoledb30.dll
sqlceqp30.dll
sqlcese30.dll
and System.Data.SqlServerCe.dll as Assembly version 9.0.242.0 and file version as 3.0.5300.0.
but when i try to run my application using the emulator, i get the following error:
Could not load file or assembly 'System.Data.SqlServerCe, Version=3.5.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from
HRESULT: 0x80131040)
i cannot upgrade the dlls on the webserver as other apps are using the 30 dlls and if i try to use 30 dlls in my application, my application fails to build on System.Data.SqlServerCe.dll with Assembly version 9.0.242.0 and file
version as 3.0.5300.0.
i have spent a few days now trying to resolve this issue and none of the solutions provided on web have helped me so far. the application does not have app.config, but adding the following code to web.config did not help either:
<
runtime>
<
assemblyBinding
xmlns="urn:schemas-microsoft-com:asm.v1">
<
dependentAssembly>
<
assemblyIdentity
name="System.Data.SqlServerCe"
publicKeyToken="89845DCD8080CC91"
culture="neutral"/>
<
bindingRedirect
oldVersion="0.0.0.0-9.0.242.0"
newVersion="3.5.0.0"/>
</
dependentAssembly>
</
assemblyBinding>
</
runtime>
any help will be highly appreciated.The binary 'System.Data.SqlServerCe, Version=3.5.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' is only to be used for windows desktop projects. For devices the PublicKeyToken is different and you should use the device
binary "System.Data.SqlServerCe, Version=3.5.0.0, Culture=neutral, PublicKeyToken=3be235df1c8d2ad3" to compile your device project.
Also in addition to what Erik mentioned, please check if you have
Microsoft SQL Server Compact 3.5 for Windows Mobile installed on your machine.
-Tarun Ramsinghani
Please mark this post as answers if it solves your problem.
Maybe you are looking for
-
80 GB Ipod appears as "Unknown Device"
My 80 GB iPod suddenly appeared as an "Unkown Device" and was no longer recognized by iTunes or windows. My iPod is recognized by my work computer using the same cord I use to plug it into my computer First attempted fix: Uninstall and reinstall iTun
-
"Disc could not be read or written to"
Ok my iPod Mini has been all messed up. It started earlier when I updated it, but nothing I deleted or added was changed. It would update on iTunes but nothing would happen. I restored it and it's at that now. Now, whenever I try to connect it, i get
-
Auto Replace functionality similar to TOAD
I've played with Raptor 804 for a few hours now. Only a couple things keeping me from being able to move (comfortably) to Raptor from Toad at this point. 1) Bind Variables not remembering values if I run queries repetively. Other posts address that i
-
Why is colorspace of new InDesign document other than workingspace?
We have a set of settings that is the same for all programs. When I create a new document in InDesign CC 2014 suddenly CMYK profile is different that that of the workingspace. Can anybody please tell me how to synchronize this so all new documents ha
-
Safari says "i cannot open the page because the server cannot be found" I get this on Safari and Mail does not function. Apps work like a dream. All Windows OS are screaming. Any thoughts?