Dll Tool 2.0 License Key
DLL Files Fixer Crack is a software that can be used to correct all Dynamic Link Library. The tool permits access to a wide range of DLL file.
I need to recreate a provider in my web.config file that looks something like this: Free ken park download dvd.
However, I get a runtime error saying this assembly cannot be loaded, and I think it is because I have the wrong PublicKeyToken. How do I look up the PublicKeyToken for my assembly?
Alternatively, am I going entirely the wrong way with this?
10 Answers
Using PowerShell, you can execute this statement:
The output will provide the Version, Culture and PublicKeyToken as shown below:
Using sn.exe utility:
or loading the assembly in Reflector.
If you have the DLL added to your project, you can open the csproj file and see the Reference tag.
Example:
sn -T <assembly>
in Visual Studio command line.If an assembly is installed in the global assembly cache, it's easier to go to C:Windowsassembly
and find it in the list of GAC assemblies.
On your specific case, you might be mixing type full name with assembly reference, you might want to take a look at MSDN.
Answer is very simple use the .NET Framework tools sn.exe
. So open the Visual Studio 2008 Command Prompt and then point to the dll’s folder you want to get the public key,
Use the following command,
This will give you the public key token. Remember one thing this only works if the assembly has to be strongly signed.
Example
I use Windows Explorer, navigate to C:Windowsassembly , find the one I need. From the Properties you can copy the PublicKeyToken.
This doesn't rely on Visual Studio or any other utilities being installed.
Just adding more info, I wasn't able to find sn.exe utility in the mentioned locations, in my case it was in C:Program Files (x86)Microsoft SDKsWindowsv7.0Abin
Assembly.LoadFile(@'C:WindowsMicrosoft.NETFrameworkv4.0.30319system.data.dll').FullName
Will result in
Dll Tool Key
System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
You can also check by following method.
Go to Run : type the path of DLL for which you need public key.You will find 2 files :1. __AssemblyInfo_.ini2. DLL file
Open this __AssemblyInfo_.ini file in notepad , here you can see Public Key Token.
As @CRice said you can use the below method to get a list of dependent assembly with publicKeyToken
i generally use it as a LinqPad script you can call it as
DependencyInfo('@c:MyAssembly.dll');
from the code