Could not load file or assembly because runtime is newer than currently loaded run time
I have recently upgraded to TestStand 2010 and Visual Studio 2010 from TestStand 4.2.1 and Visual Studio 2008. I am now getting the following error in the sequence analysis for all calls to my .net dlls.
"Module for Step 'My_StepType' not Loadable. Could not load file or assembly or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded."
I do not know what runtime it is referring to. It all worked previously. I have tried to browse to the dll again but that doesn't make any difference.
Any ideas?
Thanks.
Solved!
Go to Solution.
Hi,
By default the TestStand Sequence Editor targets .NET 2.0 and the .NET adapter can call assemblies built in .NET 2.0-3.5. This is because those versions of .NET all share the same CLR version. .NET 4.0 however moved to a new CLR, meaning that if you want to call .NET 4.0 assemblies you will need to make the Sequence Editor target .NET 4.0 as well. You can do this by creating an app config file for SeqEdit.exe.
Without going into too many details, just create a file named "SeqEdit.exe.config" and put the following text in it:
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0"/>
</startup>
</configuration>
Then place this file in the same directory as SeqEdit.exe. I believe we have an article explaining this in more detail. I'll try and find it. Your other option is to target an earlier framework with your .NET assemblies (this is just a project setting in VS 2010).
Similar Messages
-
I am using Adobe Acrobat 9 Standard version in Windows 8.1 and when I try to create a .pdf file, I receive the following error message "Acrobat could not open "file name.log" because it is either not a supported file type or because the file has been damaged. To create a PDF document, go to the source application then print the document to .pdf" I am going to the source application and printing the document to .pdf yet it's saving the file as a .log file. After reinstalling the software, I initially didn't encounter this problem but on my second and third attempts to convert files to .pdf format, this error message reappeared. How do I resolve this problem?
I have a similar problem which i did not have before...and it exists only in some powerpoint files which i want to print as a pdf file...and i get the same message as above.
the log says the bellow details...what's the problem and how can i resolve it? thanks.
%%[ ProductName: Distiller ]%%
%%[Page: 1]%%
%%[Page: 2]%%
Cambria not found, using Courier.
%%[ Error: invalidfont; OffendingCommand: show ]%%
Stack:
%%[ Flushing: rest of job (to end-of-file) will be ignored ]%% -
Have recently updated Adobe Reader and now unable to open downloaded documents - Message received is could not open 'file name.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded). When I check the file it shows Zero KB downloaded but the file appears - any suggestions?
Obviously your download was not successful.
What is your operating system? How exactly do you download such files? -
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 -
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 ...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.2495My 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 Microsoft.ServiceHosting.Tools
I just got a new workstation set up and I installed VS 2013 with Windows Azure SDK 2.3 first. But then I realized that our project was built upon Windows Azure SDK 2.2. So I uninstalled the SDK 2.3 and then installed 2.2. After that, I got the project from
TFS and tried to run it and there was a problem:
Cannot debug the project because some run time file was missing.
So I tried to repair it by uninstalling Windows Azure SDK 2.2 completely and repair my VisualStudio. But now I get this error message:
Could not load file or assembly 'Microsoft.ServiceHosting.Tools, Version=1.0.0.0, Culture =neutral, PublicKeyToken=232wedsfd3f4' or one of its dependencies. The system cannot find the file specified.
I looked through the project and there wasn't any reference of Miscrosoft.ServiceHosting. And the database and cloud are working. No idea what happened in the machine since Azure is a new field for me. Does anybody ever meet the same problem?Hi,
From my experience, there may be some component missing on your computer, I suggest you uninstall again (everything with Azure keyword in control panel, not only the SDK-> Add remove programs."), then open Microsoft web platform installer (http://www.microsoft.com/web/downloads/platform.aspx),
select azure sdk 2.3, then install this product. Hope this helps, if not, please feel free to let me know.
Best Regards
Jambor
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Hello,
I have a BizTalk Server 2009 running on Windows Server 2003 x64. I am installing WCF-SAP adapter and have done the following for the same. However, I am getting an error as mentioned below when I click on the Configure button of WCF-SAP adapter in send
port. I would appreciate if anyone could let me know how to fix this error and make the WCF-SAP adapter working.
TITLE: BizTalk Server 2009 Administration Console
Exception has been thrown by the target of an invocation. (mscorlib)
ADDITIONAL INFORMATION:
Exception has been thrown by the target of an invocation. (mscorlib)
Could not load file or assembly 'Microsoft.Adapters.SAP.SAPGInvoker, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. This application has failed to start because the application configuration is incorrect. Reinstalling
the application may fix this problem. (Exception from HRESULT: 0x800736B1) (Microsoft.Adapters.SAP)
This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)
I have copied the following 32 bit & 64 bit unicode DLLs in SysWOW64 and System32 folders respectively.
icudt30.dll
icuin30.dll
icuuc30.dll
librfc32u.dll
libsapu16vc71.dll
libsapucum.dll
Following r3dllinst DLLs are there in System32 folder.
mfc42.dll
mfc42u.dll
mfc71.dll
mfc71u.dll
msvcp60.dll
msvcp71.dll
msvcp80.dll
msvcr71.dll
msvcr80.dll
Following r3dllinst DLLs are there in SysWOW64 folder.
mfc40.dll
mfc40u.dll
mfc42.dll
mfc42u.dll
mfc71.dll
mfc71u.dll
mfc80.dll
mfc80u.dll
msvcp50.dll
msvcp60.dll
msvcp71.dll
msvcp80.dll
msvcr71.dll
msvcr80.dll
I have the following softwares installed on the server.
Microsoft Visual C++ 2008 Redistributable x64
Microsoft Visual C++ 2008 Redistributable x86
WCF LOB Adapter SDK (64-bit)
BizTalk Adapter Pack 2.0 (64-bit)
BizTalk Adapter Pack 2.0 (32-bit)
The following bindings are also present in the machine.config under Framework\v2.0.50727\CONFIG and Framework64\v2.0.50727\CONFIG
<system.serviceModel>
<extensions>
<bindingElementExtensions>
<add name="sapAdapter" type="Microsoft.Adapters.SAP.SAPAdapterExtensionElement, Microsoft.Adapters.SAP, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</bindingElementExtensions>
</extensions>
<client>
<endpoint binding="sapBinding" contract="IMetadataExchange" name="sap" />
</client>
</system.serviceModel>
Thanks,
TarunHave you tried this?
http://geekswithblogs.net/MoonWalker/archive/2013/07/17/could-not-load-file-or-assembly-microsoft.adapters.sap.sapginvoker.dll.aspx
Morten la Cour -
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. -
I have a C# windows application that started to give me the error when I try to run it:
Could not load file or assembly 'Oracle.DataAccess, Version=2.102.2.20.
I was adding and removing references and re-build when this started. The builds are successful Is there anything I can do to correct it? Other apps that I uses ODT are fine. The full error is below.
Thanks,
Kim
System.IO.FileLoadException was unhandled
Message="Could not load file or assembly 'Oracle.DataAccess, Version=2.102.2.20, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)"
Source="perdiem_snapshot"
FileName="Oracle.DataAccess, Version=2.102.2.20, Culture=neutral, PublicKeyToken=89b483f429c47342"
StackTrace:
at perdiem_snapshot.frmDataGrid..ctor()
at perdiem_snapshot.Program.Main()
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
at System.Runtime.Hosting.ManifestRunner.Run(Boolean checkAptModel)
at System.Runtime.Hosting.ManifestRunner.ExecuteAsAssembly()
at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData)
at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()Hi There,
Were you able to resolve the issue. I am getting the same kind of error , when i am trying to deploy the application on a handheld device (symbol Mc9000g).
Do let me know if you were able to resolve it.
I am getting below message.
Could not load type 'Oracle.DataAccess.Client.OracleConnection' from assembly 'Oracle.DataAccess, Version=10.1.0.400, Culture=neutral, PublicKeyToken=89B483F429C47342'.
Kiran
Message was edited by:
Kpatel -
Hi There..
I'm running the follows:
1. OS : XP SP3
2. VS 2010
3. ODP Net 11.2.0.2.0
When I set the ASP NET target framework to .NET 4 all running normally. However, if the set target to .NET 2 appears error "Could not load file or assembly Oracle.DataAccess, Version=4.112.2.0".
What could be the problem ?
Thanks,
IqbalJust figure it out..
use assembly binding when targetted framework is 2.0
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Oracle.DataAccess" publicKeyToken="89b483f429c47342"/>
<bindingRedirect oldVersion="4.112.2.0" newVersion="2.112.2.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
.. and all running back normally :D -
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. -
Hi,
I'm running TFS2013.4 with a number of build servers and all working fine.
I'm also running Release Management with update 4 (12.0.31101.0) and am running into trouble when trying to run my first dummy release.
I have setup my servers, stages, releases paths, components and release template (all vNext) with out issue.
When I run my Release Template (Deploy Using PS/DSC) I'm getting the following error :-
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.AggregateException: One or more errors occurred. ---> System.IO.FileNotFoundException:
Could not load file or assembly 'System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.
The system cannot find the file specified.
at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.PowershellExecutor.DisposeCurrentSession()
at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.RemoteDeploymentHelper.Dispose()
at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.DeploymentClient.<RunAsync>d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Services.DevTestLabs.Deployment.Deployment.DeploymentClient.<RunPowerShellAsync>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.TeamFoundation.Release.EnvironmentProvider.OnPrem.Implementation.OnPremDeploymentProvider.<CopyBuildsLocally>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.TeamFoundation.Release.EnvironmentProvider.OnPrem.Implementation.OnPremDeploymentProvider.<RunScript>d__0.MoveNext()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at Microsoft.TeamFoundation.Release.MonitorServices.Dsc.OnPrem.OnPremDeploymentActions.InvokePlatform(String activityId, MachineSpecification machineSpecification, StorageSpecification storageSpecification, String scriptPath, String configurationPath,
Dictionary`2 configurationVariables)
at Microsoft.TeamFoundation.Release.MonitorServices.Dsc.OnPrem.OnPremDeploymentActions.RunScript(DscComponent dscComponentParameters, String serverName, String userName, String password, String componentName, String scriptPath, String configurationPath,
String useCredSecuritySupportProvider, String useHttps, String skipCACheck)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.TeamFoundation.Release.DeploymentAgent.Services.Deployer.Dsc.DscComponentInstaller.InvokeMethodByReflection(String methodArguments)
I can't work out if my target machine (2008 R2 SP1) has a problem with WMA 3.0 or if the Release Template can't find the powershell script that I'm trying to call. I figured that the relative path to the script could be wrong and have tried numerous
iterations to no effect. The error clearly points to a problem with WMA right?
The target machine has .Net Framework 4.0, WMA Framework 3.0 and I can run Enter-PSSession to remote to it etc...
Before I trash and rebuild my target machine I hoping someone may have some insight to my problem?
Thanks in Advance
Jason
shroomieDaniel,
The PS Script is taken from an MSDN blog and is fairly standard. I'm sure it will run fine when executed, but I've not run it as it requires environment variables ($applicationPath) that will be present in the Release Management session calling it.
Here's the script :-
configuration InstallModules
param
# Target nodes to apply the configuration
[string[]]$NodeName = 'localhost',
# Source Path for Modules
[String]$SourcePath = "$applicationPath\Deploy\Modules",
# Destination path for Modules
[String]$DestinationPath = "$env:ProgramFiles\WindowsPowershell\Modules"
Node $NodeName
# Copy the Modules
File ModuleContent
Ensure = "Present"
SourcePath = $SourcePath
DestinationPath = $DestinationPath
Recurse = $true
Type = "Directory"
InstallModules
Thanks
Jason
shroomie -
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 -
Error 1172 Could not load file or assembly 'DNEventRegAsm
I am developing an Automation interface for a fairly complex product with remoted objects. When trying to register for an event on one of these objects I get an error of 1172. I have created a simple C# program and VI that duplicates the problem. Through Visual Studio I was able to extract this: (I have highlighted what I believe to be the problem) To this point I have been unable to find any information regarding a file, dll, assembly whatever named "DNEventRegAsm"
Created new AppDomain: LabVIEW Domain for Run
'LabVIEW.exe' (Managed): Loaded 'DNEventRegAsm'
'LabVIEW.exe' (Managed): Loaded 'DNEventRegMod'
DNError: Error registering event GetMakerLib.EventMaker.OnEvent (1172). System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.EventInfo.AddEventHandler(Object target, Delegate handler)
at NationalInstruments.LabVIEW.DNRuntime.RegisterEvent(Boolean isRegister, Type type, ObjectId objectId, Int32 eType, Int32 eFlags, String eventName, IntPtr viCBRef, IntPtr cookie, IntPtr userParam)
Inner Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
Server stack trace:
at System.RuntimeMethodHandle._SerializationInvoke(Object target, SignatureStruct& declaringTypeSig, SerializationInfo info, StreamingContext context)
at System.Reflection.RuntimeConstructorInfo.SerializationInvoke(Object target, SerializationInfo info, StreamingContext context)
at System.Runtime.Serialization.ObjectManager.CompleteISerializableObject(Object obj, SerializationInfo info, StreamingContext context)
at System.Runtime.Serialization.ObjectManager.FixupSpecialObject(ObjectHolder holder)
at System.Runtime.Serialization.ObjectManager.DoFixups()
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Runtime.Remoting.Channels.CoreChannel.DeserializeBinaryRequestMessage(String objectUri, Stream inputStream, Boolean bStrictBinding, TypeFilterLevel securityLevel)
at System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at GetMakerLib.EventMaker.add_OnEvent(theEvent value)
Inner Exception: System.IO.FileNotFoundException: Could not load file or assembly 'DNEventRegAsm, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.Load(String assemblyString)
at System.Reflection.MemberInfoSerializationHolder..ctor(SerializationInfo info, StreamingContext context)I can't see that debugview gave me any more information than VS. Here is the output from debugview:
[320] Created new AppDomain: LabVIEW Domain for Run
[320] DNError: Error registering event GetMakerLib.EventMaker.OnEvent (1172). System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
[320] at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
[320] at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
[320] at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
[320] at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
[320] at System.Reflection.EventInfo.AddEventHandler(Object target, Delegate handler)
[320] at NationalInstruments.LabVIEW.DNRuntime.RegisterEvent(Boolean isRegister, Type type, ObjectId objectId, Int32 eType, Int32 eFlags, String eventName, IntPtr viCBRef, IntPtr cookie, IntPtr userParam)
[320] Inner Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
[320]
[320] Server stack trace:
[320] at System.RuntimeMethodHandle._SerializationInvoke(Object target, SignatureStruct& declaringTypeSig, SerializationInfo info, StreamingContext context)
[320] at System.Reflection.RuntimeConstructorInfo.SerializationInvoke(Object target, SerializationInfo info, StreamingContext context)
[320] at System.Runtime.Serialization.ObjectManager.CompleteISerializableObject(Object obj, SerializationInfo info, StreamingContext context)
[320] at System.Runtime.Serialization.ObjectManager.FixupSpecialObject(ObjectHolder holder)
[320] at System.Runtime.Serialization.ObjectManager.DoFixups()
[320] at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
[320] at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
[320] at System.Runtime.Remoting.Channels.CoreChannel.DeserializeBinaryRequestMessage(String objectUri, Stream inputStream, Boolean bStrictBinding, TypeFilterLevel securityLevel)
[320] at System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream)
[320]
[320] Exception rethrown at [0]:
[320] at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
[320] at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
[320] at GetMakerLib.EventMaker.add_OnEvent(theEvent value)
[320] Inner Exception: System.IO.FileNotFoundException: Could not load file or assembly 'DNEventRegAsm, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
[320] at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
[320] at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
[320] at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
[320] at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
[320] at System.Reflection.Assembly.Load(String assemblyString)
[320] at System.Reflection.MemberInfoSerializationHolder..ctor(Serialization
[320] Info info, StreamingContext context)
Maybe you are looking for
-
Change the .tiff extension to .tif as a default in Acrobat Pro 9?
I work in the legal industry and we use Acrobat all the time to convert PDFs to LZW compressed B&W Tiff for use in trial presentation software. Lately, we've noticed that Acrobat Pro 9 is saving the files with a .tiff extension rather than the .tif e
-
I had a nifty note taking program with a launch line in the Tools Tab of the browser ... I offered six separate pages to take notes ... I cannot remember the name of the program and when I updated the Mozilla Firefox Browser to the latest version abo
-
Different results for table and dimension operator
hi I am new to Oracle and specially Data Warehousing. I created a mapping with a target operator Dimension, it does not give the desired result. Then I changed the target operator to a table, which gives the expected result. All others are the same l
-
Hi Everyone, My client want valuate material at lower price when they want transfer material from X storage location to Y storage location because they are purchasing bulk material and then cutting as per the usage after cutting there will
-
Canon 350D (Rebal XT) using Canon RAW software
Hi, Has anyone with a MacBook used the Canon software for their 350D (Rebal XT) when using RAW images. i.e. : "Digital Photo Professional" "Digital Photo Professional Batch" "EOS Utility" "EOS Capture" "ImageBrowser" "PhotoStitch" I mailed Canon and