Skip to main content

All Questions

Tagged with
0 votes
0 answers
71 views

System.TypeLoadException: Could not load type 'System.Web.PreApplicationStartMethodAttribute' from assembly 'System.Web

I am upgrading a multi-project solution in visual studio from .net 4.8 framework at .net 8. I am running into this issue with a test: System.TypeLoadException Could not load type 'System.Web....
Maya's user avatar
  • 85
0 votes
0 answers
90 views

Assembly Cannot be installed because of Existing Policy CLR [duplicate]

I have written a CLR Assembly that I wish to deploy to SQL Server 2017 (14.0.3048.4). The assembly uses C# and Targets .NET Framework 4.8, which is installed on the server (Release 528049, Version 4.8....
High Plains Grifter's user avatar
0 votes
1 answer
36 views

AssemblyLoaderHelper not resolving

My program has the ability to download new DLLs and restart itself as a self-updater. I'm trying to add some checks, like "before replacing this DLL, make sure it has class X and method Y". ...
mike's user avatar
  • 561
0 votes
0 answers
118 views

Problem Visual Studio with Parallels Desktop on MacBook m1

I have a problem with Visual Studio. I have to type an application with one has client with graphic UI in c# and site calculation in assembly (with is connected to c# with dll file). I use MacBook ...
Kromczetto's user avatar
1 vote
0 answers
95 views

Reload AssemblyInfo.cs after RunTime modification in c# Web app

I am working on a c# project, where after runtime, I add dependencys into AssemblyInfo.cs using File, based on elements I retrieve from a database. When i work on local, after the file is modified, ...
Gauthier Adrien's user avatar
0 votes
0 answers
52 views

How to avoid .dlls being replaced? (dotnet core assembly signing)

We have an interface (IPayment) that abstracts away different provider implementations (Paypal, CreditCard, Wire, Cash, Mock). We want to ship these providers in one .dll, because this allows us to ...
Florian Boehmak's user avatar
0 votes
0 answers
85 views

Unable to access classes in my .dll in C#

I created Library with some public fields: namespace ClassLibrary1 { public class Class1 { public int i = 10; public void PrintName() { Console.WriteLine(&...
Ilya_M87's user avatar
1 vote
1 answer
471 views

C# Unload managed assembly dll library

Based on this Microsoft example, how can i Unload a loaded assembly by implementing it in the AssemblyLoadContext class? (Considering they are in a global List<Assembly>. I have tried some ways, ...
Tyler's user avatar
  • 426
0 votes
1 answer
43 views

how to define List<Foo> as a property of Type by using AssemblyBuilder and TypeBuilder in dotnet Core 7?

I'm trying to crate Dymamic Dll by using dotnet 7 Reflection.Emit . I would like to create an Assembly which has a list of string (or Class Type) propery like below ; private List<string> ...
ilhan's user avatar
  • 71
1 vote
0 answers
280 views

how can i encrypt dll files for hide?

For security, I want to do the encrypt and decrypt methods using the methods in another dll file. But since this dll file will work on the user side, I don't want it to see the algorithm and unique ...
Sabri bey's user avatar
0 votes
1 answer
624 views

Load assembly and its dependencies all in memory

I need load an assembly and its dependecies dynamically. It's because I need that the assemblies are not locked for any process. For example, I've created a solution with three projects. First project ...
Eric Boeing's user avatar
0 votes
0 answers
224 views

Use DotNetZip Dll as assembly creates error when reading zip

So, I want to use a DotNetZip DLL from resource I already loaded it and specified type I created an instance of it , then I used the instance to read the password locked zip file and extract it using ...
Wampro's user avatar
  • 1
0 votes
0 answers
71 views

Can I make it so that a third-party application can use several of my DLLs with the same name but different versions?

I developed a DLL library (let's call it comp.dll) used by a third-party application (let's call it app.exe) as an additional plugin. No intervention in app.exe on my part is possible. At this stage, ...
Peter Kolos's user avatar
0 votes
1 answer
716 views

Running a .Net reference code in the Server in Dynamics AX 2009

We have an integration scenario, where we have done the following activities in mentioned sequence: Created a custom C# DLL (built using .NET Framework 3.5) Signed/strong-named using VS signing ...
Bilal Saeed's user avatar
1 vote
0 answers
31 views

Avoid having to copy referenced assemblies into application directory

When deploying new builds of applications, I find that applications built by another dev would have the structure: ApplicationName.exe ProprietaryClassLibrary.dll associated config files. However, ...
eddvrs's user avatar
  • 11

15 30 50 per page
1
2 3 4 5
24