Our development machine is 64 bit hardware running Windows 7 Professional N (64 bit), 64 bit Office Professional 2010 and Visual Studio Professional 2010. We created a Word 2010 (Application Level Add-In) using .NET Framework 4, Ribbons and Windows installer targeting Office 2010. We followed everything from the official MSDN [...] read more
I have this problem when I deploy, I really don't know how to solve it. Any idea? Server Error in '/' Application. Could not load file or assembly 'AutoMapper' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be [...] read more
Which would be the proper way to install one publisher policy in to the GAC using WIX 3.5? I tried to do this: <File Id="LIBGAC" Assembly=".net" KeyPath="yes" Vital="yes" Name="ClassLibrary1.dll" ProcessorArchitecture="msil" DiskId="1" Source="..\ClassLibrary1\bin\Release\ClassLibrary1.dll" > </File> </Component> <Component Id="Config" Guid="F089B1AA-B593-4662-9DF4-F47EB9FBA1F4" > <File Id="LIBGACPolicy" Assembly=".net" KeyPath="yes" Vital="yes" Name="Policy.1.0.ClassLibrary1.dll" DiskId="1" Source="..\ClassLibrary1\policy.1.0.ClassLibrary1.dll" > </File> <File [...] read more
I am trying to host CLR in my native Win32 C++ application. CLR loading works okay, but when i try to execute a method in the assembly, then ExecuteInDefaultAppDomain returns 0x8013101B, and bails out. Here is the code snippet: // Managed Code namespace ManagedLibrary { public class LibraryBootstrapper { static [...] read more
I am seeing this strange issue. I would like to inform that there are many posts on this error but none of them solved the issue that I am facing. Below is my setup. 1. I have an exe file and in csproj of this file, target framework version is [...] read more
I am trying to install .NET Framework 4.7.2 developed COM+ component using WiX 3.11.2. And it fails doing this with the following error in the log: > Action 14:38:48: RegisterComPlusAssemblies. Registering COM+ components > > RegisterComPlusAssemblies: DLL: C:\Program Files > (x86)\WiXTestingComPlusApplication\NET472ServicedComponent.dll > > ComPlusInstallExecute: ExceptionInfo: Code='0', > Source='System.EnterpriseServices', Description='Failed to [...] read more
I tried loading PresentationFramework.dll from .NET 4.0 beta2 in PowerShell v2.0. But it fails with the following error. > PS C:\Windows\system32> > [Reflection.Assembly]::LoadFile("C:\Windows\Microsoft.NET\Framework\v4.0.21006\WPF\PresentationF > ramework.dll") > > Exception calling "LoadFile" with "1" argument(s): "This assembly is built by > a runtime newer than the currently loaded runtime and cannot be [...] read more
I'm new to PowerShell. I'm trying to call a method of my custom C# dll. I failed due to multiple reasons. Here is my code: [System.Reflection.assembly]::LoadFile("E:\Mulukutla\Migration.dll") $MyClass = New-Object DataMigration $MyClass.MigrateData("$from\$name","$to\$name") C# CLASS LIBRARY I USED IS BUILD IN 4.0 AND POWERSHELL V2.0 Exception calling "LoadFile" with "1" argument(s): "This [...] read more
I have a dll file compiled with Microsoft .NET Framework 4.0 When I am using MakeSfxCA.exe file and passing the dll as one of the parameter to command line it gives me following error message: D:\SetupManager\test>D:\SetupManager\SetupBuilding\Wix\bin\sdk\makesfxca.exe Fil e2.dll D:\SetupManager\SetupBuilding\Wix\bin\sdk\x86\sfxCA.dll File1.dll CustomA ction.config Searching for custom action entry points in File1.dll [...] read more
i'm trying to create a C# COM Server which is used by a Delphi App without a COM-Registration. The process is descried on a ms blog - Registration-Free Activation of .NET-Based Components: A Walkthrough I created the necessarily manifest files and i linked them to the assemblies. The App Manifest: [...] read more
I am getting this error when I try to run unit tests via teamcity MyTeamCity version is 9.1 and I am using Visual Studio 2015. If I change the name of MSTest.exe or vstest.console.exe it throws another error about finding the files. Also I think the problem is not about [...] read more
How can i remove the ajax toolkit from my website? i developed my website in .net 4.0 when i compile it in 2.0 and run it, it gets this error on page load. Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. This assembly is built by [...] read more
I'm building a Wix installer that is adding json.net to the GAC (I know... GAC bad, but orders are orders). During the build I get this error: > error LGHT0132: The assembly file 'path\Newtonsoft.Json.dll' appears to be > invalid. Please ensure this is a valid assembly file and that the [...] read more
I have an executable (Foo.exe) and a library Bar.dll. Both binaries are NOT strong name signed. The Bar.dll library depends on the executable file and has it specified in its manifest in such manner: <dependency> <dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="Foo.exe" size="334336"> <assemblyIdentity name="Foo" version="1.2.3.4" language="neutral" processorArchitecture="msil" /> </dependentAssembly> </dependency> I do [...] read more
I'm using a pair of unsigned 3rd party assembly libraries that contain windows controls and base types from which I create derived classes. The dlls reside in a subfolder where my application gets installed. Beyond my control, a newer version of the libraries with the same names but built against [...] read more
I need to create a registration free COM object in .Net Framework c#. I've followed the msdn walkthrough https://msdn.microsoft.com/en-us/library/ms973915.aspx. I've to work on it because, or it is not enough clear to me, or it is not correct, however this is an old post and I use Visual Studio 2015 [...] read more
I have no longer any references to this assembly anywhere that I can find. Any ideas on why I would be getting this error. The project builds fine, however when I run in debug or release mode I get the runtime exception. I am running visual studio 2013. Description: An [...] read more
I'm currently working on getting .NET Assemblies (with COM classes) to work registration free. It works well, however i have one issue which i can't seem to pin-point the exact cause. My issue is, assembly binding isn't done on the correct .NET Framework version. I currently have 2 assembles (let's [...] read more
I have a .NET 3.5 Windows service which is installed using a VS2008 Setup & Deployment project. It has a custom install action. The installation of this service worked great until I recently upgraded to VS2010/.NET 4. Now, when I upgrade to the new version, I get the install error: [...] read more
I have tried several of your suggestions. I assume that SQL Compact Framework 4 will work with VS 2008 Version 3.5 SP1. Thank you for your help. Felice Server Error in '/' Application. Could not load file or assembly 'System.Data.SqlServerCe.Entity' or one of its dependencies. This assembly is built by [...] read more
I'm running into an issue that it says pdf lib doesn't match the .netversion I'm using. The problem is I'm using the same version on both Microsoft .NET Framework Version:2.0.50727.9031; ASP.NET Version:2.0.50727.9031; PDF Lib: v2.0.50727; LOG: Attempting download of new URL file:///C:/Projects/bin/PDFLibNet.DLL. ERR: Failed to complete setup of assembly (hr [...] read more
I need to work on a VSTO for Outlook 2007, hence I'm using VS2008 with .Net 3.5.1. The add-in will read from a PostgreSQL database, so I'm going to use Npgsql. When I compile o run the debug, I get this error: > Problem generating manifest: This assembly is built [...] read more
I was trying to get a library that required System.Threading.Dll to work with my .NET 3.5 web application project. Since 3.5 doesn't have System.Threading.Dll, I followed a tip to install the Reactive extensions because it has a backported version of System.Threading for 3.5. The attempt still failed and after enough [...] read more
When I upgrade my add-in project from .net 3.5 to 4.0 I get this error in FusLog when it wants to load my add-in assembly: > Error extracting manifest import from file (hr = 0x8013101b). I also add this to office exe config file (visio.exe.config in my case) but nothing [...] read more
I have an Excel addin. It depends on an Assmbly which I register in the GAC. addinSpy gives this warning (sorry it does not format well) Add-in DLL path is not found. System.BadImageFormatException: Could not load file or assembly 'file:///C:\Program Files (x86)\Poly\PolyAddins\PolyExcel\DBExcelAddin.dll' or one of its dependencies. This assembly is [...] read more
I have a COM object that is referenced in my project. When I build the project with target framework 4.5 everything works. However if I change the target framework to 3.5 (or 2.0), the code throws an exception when trying to instantiate the class using DLLName.exe (I presume it is [...] read more
I have a Excel Document level customization project that was build using VSTO 2005 that uses Excel 2003 template (xlt). Now I have migrated to VS2010 (.NET4) and Excel 2007 environment. My application is a reporting tool that users can create Excel reports using the customization. So currently they have [...] read more