assemblies

VisualStudio: translating a build version to a calendar date

I know that the version string generated by Visual Studio is based on the date/time of when the build was run. Given the partial version string "3856.24352" generated by Visual Studio, how can I translate that to the calendar day on which that build took place? ...

how to use ICLRStrongName in .NET 4?

Related to my previous posts I'm moving to .NET 4. I've found that using the previous StrongName.h to get my assembly signing key in unmanaged code is now deprecated, and I need to use MetaHost.h and ICLRStrongName::StrongNameTokenFromAssembly. The previous StrongNameTokenFromAssembly(..) was very straight forward, now this new one has ...

CS-Script "Could not load file or assembly"

I'm using CS-Script (link: http://www.csscript.net/) to compile a script file. According to their documentation, I'm doing it right. new AsmHelper(CSScript.Compile("test.cs"), null, true); However at runtime, I get: Could not load file or assembly 'file:///C:\Users...\CSScriptLibrary.dll' or one of its dependencies. Operation...

Loading wrong assemblies on non-dev machines?

I think I'm falling into a common category of, "It works perfectly in my dev environment, but anywhere else I get strange results," and for all my efforts I'm only more confused. I have 2 applications. One of them is .NET 4 C# app, and the other is (I think) .NET 3.5 VB. The C# app creates a DLL, that for the time being, I have a versi...

C# Run From Bytes

I am working on making my client open another program by downloading the bytes and using reflection to open it. I have currently got this working on a C# Console Application, but when I try and do it on a Windows Form Application I get this error. "Exception has been thrown by the target of an invocation." Here is the code using Syste...

Type.GetType fails to create type from already loaded assembly

I have program which loads an assembly using Asssembly.LoadFrom method. Some time later I attempt to use Type.GetType to create a type from that assembly (using AssemblyQualifiedName), but the method returns null. If I set it to throw exception, it tells Could not load file or assembly '...' or one of its dependencies. The system ...

ASP.NET loads all assemblies in bin to find a user control

Part of a web application we have uses an in-house web control assembly. This assembly contains several web user controls where several of these are used by other web controls within the same assembly. The assembly is built as a website with a web deployment project. The main web application's pages are dynamically compiled through a s...

How do you launch a WPF front end as a DLL from another assembly?

How does one create a WPF front-end that has an Application object from within another application (an existing MFC / CLR application, but that's another story)? The existence of the Application as the entry point of the assembly seems to prevent such a use. Certainly, you can use a WPF application as an assembly. Can't you? ...

How do I 'embed' a manifest in an assembly using VS2005?

Using VS2005, how do I 'embed' a manifest in an assembly? ...

Assembly reference not getting updated in the silverlight 4.0 application project

Point 1): In one solution called CustomBehaviorsSolution, I have two projects - one is class library and another is silverlight class library project. The silverlight class library project has the class files which are 'linked' to the files of the first project. The solution compiles successfully. Point 2): I have another solution whi...

WPF/C# can't find valid assembly reference

I've downloaded an open source third-party assembly for use in my WPF/.NET 4/VS2010 project. I've added a reference to the project's DLL and verified that VS2010 can see it by walking through the exposed classes in the object browser. When I add a "using" directive to the appropriate class in my project, Intellisense offers the new ass...

Embedding Mono Confusion

I'm trying to use the following instructions to embed the Mono runtime in a C++ program. http://www.mono-project.com/Embedding_Mono To initialize the runtime, you have to call mono_jit_init with an input parameter called file_name. They say that file_name is the name of the main assembly file. - What do they mean by "main assembly file...

C# Run VB.net Assembly from Bytes

I am using this code, I got it to work fine with any C# assembly that allows it to be ran from memory. Is there anyway I could get it to work with VB.net? private static void RunFromMemory() { try { byte[] bytes; using (WebClient client = new WebClient()) { byte...

Loading an Assembly fails because of incorrect format

Hi, I develop on a pretty big windows forms .net (C#) application with several assemblys. Originally each assembly was build for the Target Platfom "Any CPU". Due to a problem with Crystal Reports on x64 machines we had to build the whole project for x86 target platform. I startet rebuilding some of our Projects for x86 and it worked j...

Load assembly doesn't worked correctly

I try to load a assembly into my source code in C#. So i first compile the source file: private bool testAssemblies(String sourceName) { FileInfo sourceFile = new FileInfo(sourceName); CodeDomProvider provider = null; bool compileOk = false; // Select the code provider based on t...