Is there a way to load a .NET Assembly into a Sandbox environment that is also restricted in custom ways? I know you can run an Assembly in a different AppDomain, but can you limit it from being able to do certain things that you want to restrict?
For example: I want to be able to load up a Plugin (simple, just defined via a specific in...
I have two projects in a Visual Studio solution. I need an application setting in one of them to be the version number of the other project's assembly.
I thought of adding to my project1's app.config something like:
<setting name="currentVersion" serializeAs="String">
<value>
!(bind.project2.Assembly.FileVersion)
</value>
</set...
Does anyone know about any articles/examples of using System.AddIn with ASP.NET and/or ASP.NET MVC applications?
I'm looking to use System.AddIn to make an ASP.NET MVC application extensible.
...
I'm building a set of assemblies that need to work on both Silverlight and WPF. Up till now, I've been using log4net to handle logging. It's not compatible with Silverlight though, so now I'm facing the prospect of ripping it out, which I don't want to do.
My question is this. Assuming I recreate the assemblies as Silverlight assem...
I have a library project that has some content files (e.g., XML and schema files, image files, etc.) all with Build Action set to Content (copy always).
This library project lives in a Visual Studio solution that also has a test application (WPF) that references the library.
When I build the solution, all the content files from the dep...
I've got a Maven assembly that I want to use in multiple projects. How do I reuse it without hardcoding the path?
...
Ok, I must be dumb cause I've already read this:
http://www.csharp411.com/net-assembly-faq-part-3-strong-names-and-signing/
And I still don't get it...
Let's say I open my project's properties and go to the "Signing" tab, then I check "Sign the assembly" and generate a new assembly with a password. A strong name key file with the .pfx ...
Hello.
I built a web application that uses the J# libraries which works fine in my cpu, however, when I deploy it to my shared server. I get an error message: Parser Error Message: Could not load file or assembly 'vjslib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot fi...
I am getting a "Method not found: 'Boolean MyCompany.LibraryAssembly.SomeFunction(System.String)'" exception/error when running a VB.NET console application.
The method is part of an external assembly and it is definitely in the assembly. The error only occurs at runtime when I go to enter the function that calls the method.
I have t...
Does anyone know of a Reflector add-in that allows you to distribute assembly lists? That is, the lists that can be maintained when using the File, Open List menu option?
I have a list of assemblies for development that needs to be updated between several machines used by different developers at the moment. Something less painful would ...
What is the proper way to load a .NET assembly into a seperate AppDomain so you can have access to its Types/Classes but still be able to unload it (and reload it).
This is a tangent of this previous discussion:
http://stackoverflow.com/questions/1137781/c-correct-way-to-load-assembly-find-class-and-call-run-method
...
Hello.
At work we have an (reasonable) agreement, that every time a project is updated, no matter how small change is, that is reflected in the Revision value of Assembly Information. This way we always know if a client is missing a patch or a feature, etc.
Since this requires manually changing the version, and since this is a tedious ...
I have an assembly Foo, which has reference to assembly Bar(Version X.X.X.2000).
In the properties, specific version is set to False.
I have both Bar(x.x.x.2000) and Bar(x.x.x.1000) in my local GAC.
Everything is fine.
On another machine, where no version of Bar is in the GAC, but Bar(x.x.x.1000) is located in the same directory as Foo,...
I have a WPF application and I notice that when I run it there's a line in Visual Studio's output window which says
'SomeApp.exe' (Managed): Loaded 'lwrpft7j'
The name is different every time. It is listed when I call AppDomain.CurrentDomain.GetAssemblies() as well.
What is this random assembly?
...
Should we be able to just reference the Telerik DLLs within our project, set the Output Local to TRUE and be done with it? Things work perfectly on our development machines where we installed the entire Telerik Control Suite but when we deploy, we have a problem in which Telerik controls within UpdatePanels don't seem to be firing event...
I recent noticed, that when I start our rather big application, there are allways two assembly loaded nobody knows what they are.
Each time I start debuging the application, the two assemblies are named diffrently.
For example, last time I got this output (it's in German, but you will get it):
...
"start.vshost.exe" (Verwaltet): "C:\Wi...
The title pretty much says it all.
Given a web site project in VS2008 named FooDLL, I would like to be able to specify the name of the assembly that VS2008 spits out when I click "Publish Web Site". I am using the "use fixed naming and single page assemblies" option, so the resulting DLL is consistently named.
However, I would much rat...
I am currently required to open and use a .NET assembly in delphi. The Assembly that i am trying to use also has an assembly of objects it is using. With the object assembly i was able to use regasm to create a type library. I was also able to assign a SN and register it with the GAC.
Now with the main assembly i am tyring to use i...
I'm not really a C#/.Net developer, but I've been asked to solve an issue we are having. We have a small command line app in C# that has been working and recently ran into trouble. On my machine I can build and run it, but when I try to run it on some of our servers it fails. I looks like it fails on the ones that have .Net 2.0 with serv...
I have an app which is opening a series of DLLs on the filesystem and in the GAC, and which is holding a lock on those files. How can I release these handles explicitly so I can rebuild them in Visual Studio without closing my app?
Code follows:
private void BuildTabPage_AssemblyTree(string filename, string foldername)
{
Assembly a...