assemblies

Is it possible to find out the assembly and file containing a DependencyObject?

Hi girls and guys! I am currently working on a little localization framework for WPF (don't even think about pointing me to locBAML...) and wondered if it was possible to find out the containing assembly of a specified DependencyObject. For example: I have a normal window definition in XAML in the file Window1.xaml. The window contains...

provide assembly with full trust in sharepoint by custom policy level not working

Hello All, I'm building a couple of ucercontrols. These usercontrols will be hosted within the return of the smartpart. The problem i'm facing is that my assembly that goes with them, is not properly provided with sufficient rights. To achive this you've (basically) got three options; 1. set the site to full trust level (do not want t...

How to add debug assemblies to my Silverlight 2 application?

So I know now that the debug assemblies have been intentionally left out of the Silverlight runtime to save space. For that reason I get good detailed error messages on my local machine that has the Silverlight SDK on it, but I don't on a computer with the runtime only. I get the ubiquitous, "Debugging resource strings are unavailable....

SQL Server CLR Memory Allocation

Currently we have MS SQL Server 2005 (32 bit). We have 1 assembly (and only 1 assembly) which we use for encryption and decryption. Only 512 MB of system memory is allocated to CLR. The assembly runs pretty slow, and I'm trying to rule out if its from memory or not. When I run the SQL code in query analyzer (not in an assembly) it runs q...

How to keep ASP.NET assemblies in AppDomain alive?

Scenario: I've an n-Tier enterprise ASP.NET application deployed using Web Deployment Projects. All tiers produce independent assemblies that is consumed by the ASP.NET application. Problem: When I run the app. for the first time after deployment it takes lot of time to load dependent assemblies in memory. But once loaded its lighting f...

Updating an assembly reference to target new version.

I have been doing this by a really long process that I found out and I am sure there is a better way of doing it. I am finally fed up with my process and I am going to try to find out how to do it properly. I have a solution which references and out of date assembly. For example, Castle.Core 1.0.3. I have newer version of Castle.Core, v...

Product management & assembly versions.

We are approaching the initial release of a new product at our company, and I am trying to determine the best method of managing the versions of all of the different components and cross referencng those components with the marketing department version of our software. For various reasons, marketing has determined that the initial relea...

Does .NET MVC work when System.Web.Mvc is loaded in the GAC?

Is it allowed to put System.Web.Mvc in the GAC? Allowed as in: does it work? I have done this and all my projects have problems inheriting from System.Web.Mvc.ViewPage... EDIT Hope this doesn't scare you: C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE> "c:\WINDOWS\Microsoft.NET\Framework\v3.5\vbc.exe" /t:library /utf8output ...

AppDomain assembly load causes Fatal Execution Engine Error (6B3979C6) (80131506)

We have a type caching system in place to avoid searching all plug-in assemblies for all types each time our application starts up, but when moving from .NET 1.1 to 2.0+, the Event Log records a Fatal Execution Engine Error (6B3979C6) (80131506) on the AppDomain.Load() If and only if 1. the AppDomain is NOT AppDomain.CurrentDomain. 2....

Visual Studio Build Time

hi, i am building a solution with approximately 100 assemblies that is taking a considerable amount of time to compile. I would say in the realm of minutes per assembly. This is in contrast to another product also with 100+ assemblies that will take seconds to move through each one. In both cases there are complex dependencies and multi...

Using NHibernate and not referencing its assembly in the client application

Hi, We have a multi-tiered application using CSLA Business Objects and NHibernate ORM. In our Business Objects, we hold our collection data members as ICollection<T>, and in our object mapping files we define them as <set>s. Since NHibernate uses its own concrete types to fetch these collections, we have a problem when these collection...

How to retrieve info on a loaded assembly at runtime? (c# , .NET)

In .NET c# 3.5 I have a console application (A) that references several assemblies(X, Y, Z). How can I get the version information of the loaded assemblies at run time? I can use reflection to get the info on the currently executing assembly like this System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString() b...

Deserialization error in MEF due to missing assemblies

I'm using MEF. I serialize one of the objects which relies on one of the loaded assemblies. Now when I try to deserialize this object it throws "Unable to find assembly" exception. MEF loads the assemblies before this deserialization in another class (I assume that the scope of this is application wide, it loads them into a public prop...

Why can't strongly named assemblies use assemblies that aren't signed?

To sign an assembly A you have to make sure all assemblies B, C, D that are used by A are signed, and then all assemblies that are used by B, C, D, and so on. I don't understand what's the security benefit of this. I think it's supposed to prevent tampering, but assembly A is allowed to open any file, and these can be tampered. The same ...

How do I get the Assembly version from my sln into a continuous integration labeller?

I want to obtain the assembly version from my solution and apply that to a cc.net label. I think I'm doing it backwards since all the info out there have the CI server set the version. But I'm not sure how to integrate different release versions and the development branch into CI. Every time we release we up the revision number. Woul...

Help Required in MEF (Managed Extensibility Framework)

hi there. i am currently working with MEF and facing some problems what i want is to load dlls from the directory. first i scan the directory and save two things in dictionary Name property from respective DLL (as string) and Module Name (as string) here is ScanDirectory() code private void ScanPluginDirectory() { ...

Maven, Proguard and assembly issues

I'm trying to get Maven working with ProGuard. What I want to achieve is the following: Run ProGuard over my source files and produce obfuscated classes Create a manifest file that references the main class so that I can execute it as a jar Unpack all of the associated library jars and create one huge jar containing them all. This fi...

Using AssemblyBuilder, how can I make all or any of the referenced assemblies embedded instead of linked in the saved assembly?

I have an executing assembly, which generates another assembly dynamically using AssemblyBuilder. The generated assembly consists of functions which simply test the construction of certain classes in the executing assembly. Since the functions in the generated assembly reference classes in the executing assembly, I want to have the exe...

Is it possible to write an assembly which dynamically generates a new class and patches itself with the new class?

Is it possible to write an assembly which dynamically generates/emits a new class and patches itself to include the new class? How? ...

Class is not found in SQL assembly

Hello, I am trying to make my first CLR Assembly\stored procedure. I have compiled the code using CSC, and added the assembly to SQL server. The assembly shows up, but the class seems to be missing. C# CODE using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; usin...