C# - Strong Named Assemblies In Winforms

Feb 1, 2010

Ok, I've read every question on here about strong named assemblies and just want to clarify something. First though, from what I've read, GAC aside, strong named assemblies prevent a malicious 3rd party changing and impersonating your code. It'd be great to have some links to some real world examples of this kind of spoofing that happened pre strong named assemblies. If security or the GAC are not a concern, It seems that it's still advisable to strong name assemblies because:

(A) Clients who have strong named assemblies can only reference your assemblies if they are signed.

(B) Clients who do not have strong named assemblies can reference your assembly whether it's signed or not.

Is that a fair analysis?

View 1 Replies


ADVERTISEMENT

C# - What Is Strong Naming And How To Strong Name A Binary

Sep 17, 2009

I heard somewhere that I need to strong name my binaries before I distribute them.

View 4 Replies

DLL - How To Use Strong Name

Dec 8, 2009

I would like that my dlls created in vb.net will not used by others, is the strong name will do it? How to use strong name?

View 12 Replies

Using Com On Dot Net Program That Have Strong Key?

Sep 17, 2009

how to Using Com on Dot Net Program that have strong key ?i get a com dll that need to used to control finger scan hardware.and i already added it in my vb dot net program. it completely work fine.but after i added my strong key to my vb dot net program, i can not compile my program. it seem because of com dll doesnt have strong key.

View 6 Replies

C# - Strong Typing A Property Name In .NET

Dec 31, 2009

Say I have a class with one property

[Code]....

I have to pass the name of the property to a function call. (Please don't ask why it should be done this way, its a third party framework). For example SomeFunc("MyItem") But what I would like to do is, change the string into a strongly typed parameter. Meaning, if the property name is renamed or changed, it should be reflected here too. So something of this type :

[Code]....

View 4 Replies

COM Access To Dll Without Strong Name Signing?

Jan 27, 2012

I'm converting a VB6 dll to VB.Net using Visual Studio 2008 Express. I want to use the same .dll to integrate with Excel via Excel-DNA, but also to be available via COM (I need to be able to call it from VBScript and VBA).

If I leave the assembly unsigned, I have access to all of the ExcelDNA functionality but no COM access.

If I sign the assembly with a strong name, then when I try to build the .dll I get the following error:

Unable to emit assembly: Referenced assembly 'ExcelDna.Integration' does not have a strong name.What are my options?

View 2 Replies

How To Assembly Strong-name Dll File.

Jun 12, 2010

I'm trying to change the "load path" of all DLL-files that i have refereed to with this code

Function MyResolveEventHandler(ByVal sender As Object, _
ByVal args As ResolveEventArgs) As [Assembly]
'This handler is called only when the common language runtime tries to bind to the assembly

[code]......

View 3 Replies

Making Strong Interface?

Dec 7, 2010

I Finish my program but my interface is not good (its just a picture & its almost 0) but a good program like vb 2010, bitdefender & ... have very beauty a and strong interface how i can make a good interface

View 1 Replies

Deployment :: Allow Dot Net Program To Run From Network Without Strong Key?

Nov 1, 2009

how to allow dot net program to run from network without strong key ? since i have program put on network, ussually i put strong key on that assembly, and it can work and run from network this program.. but there is some component com object that make me to cannot compile if i put my stong key, so i compile it without stong key, but it came i cannot run this program from my network..

View 5 Replies

Error: When Assign The Strong Name In Assemble

Dec 26, 2009

error: when assign the strong name in assemble

Use command-line option '/keyfile' or appropriate project settings instead of System.Reflection.AssemblyKeyFileAttribute'.

View 1 Replies

How Is A Strong Authentication System Created

Mar 6, 2012

I am trying to make a strong (or even medium-security) based authentication. How this would work is simply by storing a username/code on web (using dropbox perhaps) then using those codes to pass on to friends to use. This way if you remove that code online,that person will no longer be able to access that program. As far as I know, it is quite simple to save the number of uses, or username and pass on a text file to save on their file or registry things can be done but that is only 1 computer based. That is a very easily crackable security and is not worth it.As far as I have know you need to create a new main form where the code/ id/ username/password/onetimelogin will be asked. If it is correct, form2.show if not then "exit". The codes are stores on a text file on dropbox.com like websites, then the link to the textfile is obtained.

View 3 Replies

C# - Event Signature In .NET -- Using A Strong Typed 'Sender'?

Jun 25, 2009

I fully realize that what I am proposing does not follow the .NET guidelines, and, therefore, is probably a poor idea for this reason alone. However, I would like to consider this from two possible perspectives:

(1) Should I consider using this for my own development work, which is 100% for internal purposes.

(2) Is this a concept that the framework designers could consider changing or updating?

I am thinking about using an event signature that utilizes a strong typed 'sender', instead of typing it as 'object', which is the current .NET design pattern. That is, instead of using a standard event signature that looks like this:

[Code]...

View 11 Replies

FreeImageNET.dll Producing A Strong Naming Violation?

Apr 12, 2011

I am getting a strong naming violation for the dll file and really new to signing applications. How would I proceed in resolving this so that I can build the application I will be supporting? Also, as the FreeImage reference gets updated will I need to re-sign it?

View 9 Replies

Spotted A With MVC 1.0 Handles Strong Types When Using IDataErrorInfo?

May 13, 2010

I wanted to ask this question here rather then at the asp.net site (it takes too long to get an answer) because I think I have found a problem with how MVC 1.0 handles custom classes that implement IDataErrorInfo when using view binding. Not sure if this is a problem in v2.0 but I have never heard it mentioned.

Here's a little background, in MVC if I want to have strongly typed view, I create a class that basically holds the post information for me. MVC binds the form fields in the POST to the class properties of the same name for me automatically when I do this rather then implementing the ViewData dictionary.

[Code]...

View 2 Replies

.net - Strong Naming An Assembly Using Command Line Compile

May 18, 2010

I am trying to use NAnt in order to compile and sign an assembly using the vbc compiler. I have a project set up and am able to successfully sign the assembly compiling with VS2010. When I try to sign it using the command line I get this error:

vbc : error BC30140: Error creating assembly manifest: Error signing assembly -- The parameter is incorrect.

I even created a trivially simple app (just an assemblyinfo.vb file) that will not compile and sign using vbc.exe What am I doing wrong?

here is my assemblyinfo.vb:

Option Strict Off
Option Explicit On
Imports System
Imports System.Reflection

[Code]....

I have found that MSBuild also does not like having the AssemblyKeyFile attribute as I have defined it in the AssemblyInfo.vb, it gives the same failure message. So the only way I can currently get this to build correctly is to set properties on the project to tell it which key file to use and to sign the assembly.

The reason this appears to work building the project from within VS2010 is that msbuild is passing /keycontainer to vbc.exe on the command line instead of using /keyfile. Still don't know how to use the /keyfile command line parameter.

View 1 Replies

C# - Enterprise Library Strong Naming Guidance Package

Mar 18, 2009

For the life of me I can not find the Enterprise Library Strong Naming Guidance Package download for Enterprise Library 4.1

I need this to sign the assemblies to add them to the GAC.

Does anybody know where I can find it?

View 2 Replies

Strong The Password Is But The Panel Is Changing To DarkRed No Matter?

Apr 1, 2012

I'm using this code to try and show how strong the password is but the panel is changing to DarkRed no matter what is in the TextBox1.What am I doing wrong?

Wrapped it in PHP tags because I think it makes it easier to read >.>

[Code]...

View 2 Replies

How To Assemble Assemblies

Jun 13, 2011

In my .aspx file I have:

<%@ assembly src="extensions.vb" %>
<%@ assembly src="debug.vb" %>

[code].....

View 2 Replies

.net - Stop Asp.net Looking For Assemblies In GAC?

Sep 20, 2011

I have started working on a legacy project (ASP.NET 1.1) which was done in an old machine (which I dont have access to). And I am unaware of the development environment settings used for building this project.

Nonetheless, I am able to build the project and deploy it all well from my machine (I created the full development enviroment locally). In my machine everything works great.But some screens where one of the assembly dlls (third party dlls) are used do crash on any machine other than mine! They probably do net get the proper assembly (with matching version or something), even though when I have put all the assemblies in bin (and used the same files while adding references to the project). .NET runtime probably tries to find them in the GAC of the other computers? Or probably in my system itself it loads from GAC and not from the bin? How could I know all this? The question is it runs perfectly fine on my machine, where the assemblies are at both places - in bin and in GAC.

I am lost what I should do to so that no matter which machine I deploy the project, it should always look in bin only! Also, I dont want to change the code in any way because its a legacy code and has been working all right since ages! Just some settings e.g. maching.config or soemthing?

View 1 Replies

C# - Get Assemblies Without Instantiating Them?

Mar 30, 2012

I am trying to get all assemblies in CurrentDomain using AppDomain.CurrentDomain.GetAssemblies() to write their FullName into a DropDownList, however if I don't instantiate them, they are not seen in returned array from GetAssemblies() in CurrentDomain.They are all added as Reference and in Reference folder of the solution. Only time I can get them from the GetAssemblies() is when I first instantiate them.How to overcome this problem with an easy and more generic way instead of instantiate them everytime when I add new Assembly, etc.Due to company policy, I have to obfuscate some parts of the images: All the assembilies are referenced in Reference folder:

View 3 Replies

Assemblies Not Being Loaded Properly?

Sep 19, 2009

I have a windows forms Application using DCOM to connect to another server in order to retrieve data from a database. The program works perfectly fine on my develeopment box both inside of and outside of the idea.However it throws an exception on my test box: System.Exception.... TYPE_E_CANTLOADLIBRARY. The error happens when accessing a property of on the the public DCOM classes. The property holds an instance of one of the private classes for the DCOM. I've compared the registries and all the relevant entries seem to be the same. When I compared the dumps I noticed that System.Config and System.XML werent loaded on the test machine, even though they are installed and appear to be in the GAC.

[Code]...

View 6 Replies

C# - Compare Compiled .NET Assemblies?

Mar 16, 2009

compare to compile .NET assemblies?

For example I have HelloWorld.dll (1.0.0.0) and HelloWorld.dll (2.0.0.0), and I want to compare differences how can I do this?

I know I can use .NET Reflector and use the Assembly Diff plugin. Are there any other good tools out there to do this?

View 5 Replies

C# - Dynamically Loading .NET Assemblies?

May 25, 2009

I am writing a program and I want the program to support plugins. I created an interface that the program must implement. I am using the following code from my main program to call the plugin:

Dim asm As Assembly = Assembly.LoadFrom(ff.FullName)
' Get the type
Dim myType As System.Type = asm.GetType(asm.GetName.Name + "." + asm.GetName.Name)
' If the type is null then we try again without the root namespace name

[code]....

I set this property from my main program and everything works. Except, after a while, m_PanelObject gets set to Nothing for some odd reason. I'm not setting it to Nothing anywhere in my program and there is no place in the plugin code that sets it to Nothing.

View 1 Replies

C# - Dynamically Loading Assemblies In .NET?

May 24, 2010

We've built a small component which takes an Id, looks up an entry in the database for an assembly/namespace/class, and dynamically loads an instance of the class that we're after. It has been working fine up until now, but when running this code in VS 2010, it's failing.

Private Function AssemblyLoaded(ByVal assemblyFile As String) As Assembly
Dim assemblies() As Assembly = AppDomain.CurrentDomain.GetAssemblies
For Each asmb As Assembly In assemblies

[Code]....

But it feels dirty. Is there a better way of checking if an assembly is already loaded, and handing that back to the caller? Are the issues above specific to .NET 4.0 or Visual Studio 2010? I haven't tried this outside the IDE as it requires fairly significant configuration.

View 2 Replies

Dynamic Assemblies Loading?

Dec 22, 2009

Do you know any other alternative for dynamic assemblies loading? Other than the method below:

[Code]...

View 4 Replies

Install Assemblies In The Gac Without The Gacutil?

Jul 18, 2010

I'm deploying a vb 2005 application that references crystal report XI release 2 components. How do i install these components to the gac? The client machine does not have gacutil and i don't know how to use msi to do the job. I have researched the web for answers without success.

View 6 Replies

.net - Extension Methods In Referenced Assemblies?

Sep 16, 2010

If I try to call my extension method which is defined like this:

Module LinqExtensions
<System.Runtime.CompilerServices.Extension()> _
Public Function ToSortableBindingList(Of TSource)(ByVal source As IEnumerable(Of TSource))

[code].....

View 1 Replies

Assemblies - Building An Object Browser ?

Dec 18, 2011

I thought I would practice using reflection by building an Object Browser similar to what's in VS2010.

The reflection part is easy enough, but I'm can't find any means of determining where all of the assemblies are installed. On my machine (Win 7) the GAC would seem to be located at C:Windowsassembly.

However, 4.0 assemblies look to be located at C:WindowsMicrosoft.NETassembly in either GAC_32 or GAC_MSIL.

VS Object Browser obviously knows where to look, you can even filter on "All Components" or select a framework version.

But when I look at the Object Browser in VS, I find that it lists assemblies from several different locations: For example...

CODE:

How does VS know to list these assemblies? Is there some registry key I'm missing that defines all of these locations?

View 2 Replies

Dynamically Referenced Assemblies And VBCodeProvider?

Mar 17, 2010

We have a large application that implements "scripting" (i.e, dynamically compiled user code that can include user-defined .dll references).

View 5 Replies

Passing Connection Strings Between Assemblies?

Sep 2, 2010

I have two executables that access a DLL containing Data Access Layer objects Each exe can have a different config containing info on server and database name, connection string etc.How do I pass the config info to the DAL objects?

Obviously I can pass the config strings to the DAL objects every time I instanciate one, but that seems messy and repetitive as every class in the DAL will require Properties for the Config strings..if there is a way for the instanciated DAL objects to read some properties from the calling object without me having to pass them explicitly?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved