Click here to Skip to main content
15,911,890 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: .wav files Pin
Corinna John31-Jan-05 21:04
Corinna John31-Jan-05 21:04 
GeneralTesting Tool for .Net Pin
Vishwanathkk27-Jan-05 2:34
Vishwanathkk27-Jan-05 2:34 
Generalstring to long Pin
zagzagzag27-Jan-05 0:46
zagzagzag27-Jan-05 0:46 
GeneralRe: string to long Pin
wyoung7631-Jan-05 23:18
wyoung7631-Jan-05 23:18 
GeneralRemoving an assembly from the GAC Pin
shayw26-Jan-05 8:24
shayw26-Jan-05 8:24 
GeneralRe: Removing an assembly from the GAC Pin
Mike Dimmick27-Jan-05 4:25
Mike Dimmick27-Jan-05 4:25 
GeneralRe: Removing an assembly from the GAC Pin
shayw27-Jan-05 19:25
shayw27-Jan-05 19:25 
GeneralRe: Removing an assembly from the GAC Pin
GuruPandian29-Jan-05 3:34
GuruPandian29-Jan-05 3:34 
Hi,

1.I have Listed a sample How to Install and UnInstall as Assembly into/from GAC.

2.On Console Application is an easy way to Creating as Assembly.

'Creating Assembly with Public Key Reference:
'--------------------------------------------

A) Creating 'PublicKey'

'Step into Command Prompt and do the followings...

D:\Pandian> SN -k Pair.dat

-k Generates a new KeyPair and stores it into Pair.dat file.

The file Pair.dat contains binary code.

D:\Pandian> SN -p Pair.dat Public.dat

-p Extracts the public key from the key pair in

Pair.dat and stores it in Public.dat.
The file Public.dat contains the only Unique ID.


D:\Pandian> SN -tp Public.dat > out.txt
-tp Extract Token Public Key from Public.dat file and writes into out.txt file.

'Now Public Token Key created.


'--- Code Starts

Imports System
Imports System.Reflection
Imports System.Security.Permissions

Namespace Testing
<strongnameidentitypermission(securityaction.demand, publickey:="0024000004800000940000000602000000240000525341310004000001000100cb049b6b06c49d940214a5c96919da4c5760938045f281351d8d3f99dfad9b03202848b8952447efce8a812b96ec92b9654a732cfaff55afacb379cf54a4a16221065d5d04a7f3bae600434b110d087a15ea410e4d4e3eccec7f339f967cf4c8f9a86799e2e1c23748664c81e4149b6071f005179c3fe059f6432053959344af" )="">Public Class TestingClass
Public Function TestingFunction() as string
return "Welcome to Pandian Shell"
End function
End Class
End Namespace

' The Public Key has been copied and pasted from 'out.txt' Textfile.

' Compile the Code as an Assembly as following way..

D:\Pandian> Vbc Testing.vb /t:Library /r:System.Security.dll

' Now an Assembly Created named 'Testing.dll'

'Installing the Assembly on GAC
' ------------------------------

D:\Pandian> GACUTIL -i Testing.dll

' Now our Assembly Installed on GAC.

'Uninstalling the Assembly from GAC :
'------------------------------------

' It should not deleted from GAC directly.
' Do the following proper way...

D:\Pandian> GACUTIL -u Testing

'The following result prints our DOS screen.

Number of Items Uninstalled = 1
Number of Failures = 0

'-- If feel, Now I reached your requirement.

With Regards,

PANDIAN S

Smile | :)
GeneralAccessing "Native" DLL from a .NET App Pin
bneacetp26-Jan-05 4:04
bneacetp26-Jan-05 4:04 
GeneralRe: Accessing "Native" DLL from a .NET App Pin
zagzagzag27-Jan-05 0:41
zagzagzag27-Jan-05 0:41 
GeneralRe: Accessing &quot;Native&quot; DLL from a .NET App Pin
bneacetp28-Jan-05 16:41
bneacetp28-Jan-05 16:41 
GeneralMenuItems and Tooltips Pin
TheDen26-Jan-05 2:10
TheDen26-Jan-05 2:10 
GeneralRe: MenuItems and Tooltips Pin
wyoung761-Feb-05 4:06
wyoung761-Feb-05 4:06 
Generalwhy interop.xxx.dll generate by .net dev Pin
williamchou25-Jan-05 15:18
williamchou25-Jan-05 15:18 
GeneralRe: why interop.xxx.dll generate by .net dev Pin
Charlie Williams26-Jan-05 11:47
Charlie Williams26-Jan-05 11:47 
GeneralRe: why interop.xxx.dll generate by .net dev Pin
williamchou26-Jan-05 14:43
williamchou26-Jan-05 14:43 
GeneralGDI+ Video Acceleration Pin
david@mindplay.com25-Jan-05 7:36
david@mindplay.com25-Jan-05 7:36 
GeneralA printing problem Pin
Vinsent25-Jan-05 7:00
Vinsent25-Jan-05 7:00 
General.NET remoting first call duration Pin
OliveP25-Jan-05 3:58
OliveP25-Jan-05 3:58 
Generalassigning another imagelist to listview Pin
serkanyilmaz25-Jan-05 3:25
serkanyilmaz25-Jan-05 3:25 
GeneralGoliath.NET Obfuscator Pin
Marcello Cantelmo24-Jan-05 11:08
Marcello Cantelmo24-Jan-05 11:08 
GeneralRe: Goliath.NET Obfuscator Pin
Robert Rohde28-Jan-05 19:53
Robert Rohde28-Jan-05 19:53 
GeneralRe: Goliath.NET Obfuscator Pin
Marcello Cantelmo28-Jan-05 22:40
Marcello Cantelmo28-Jan-05 22:40 
GeneralRe: Goliath.NET Obfuscator Pin
Robert Rohde29-Jan-05 1:14
Robert Rohde29-Jan-05 1:14 
GeneralRe: Goliath.NET Obfuscator Pin
Marcello Cantelmo29-Jan-05 2:07
Marcello Cantelmo29-Jan-05 2:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.