I need to get a qualified assembly name without using AssemblyName, because I get a System.IO.FileLoadException (assemblies are not available).
I manage strings, not assemblies. If I have a string, I want to get the strings as the following for the string variables asm1 and asm2.
FullName = "CalidadCodigo.ParserSQL.Reglas.AnalisisSintactico"
Assembly = "CalidadCodigo.ParserSQL.AnalisisSintactico"
Version = "Version = 1.0.0.0"
Culture = "Culture = Neutral"
Public token = "PublicKeyToken = 9744987c0853bf9e"
any suggestions, sample code?
var asm1 = "CalidadCodigo.ParserSQL.Reglas.AnalisisSintactico,CalidadCodigo.ParserSQL.AnalisisSintactico, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9744987c0853bf9e"; var asm2 = "CalidadCodigo.ParserSQL.Reglas.AnalisisSintactico, CalidadCodigo.ParserSQL.AnalisisSintactico , Version=1.0.0.0 , Culture=neutral, PublicKeyToken=9744987c0853bf9e ";
an exception was thrown: System.IO.FileLoadException: El nombre de ensamblado o el cรณdigo base dado no in Valido. (Excepciรณn de HRESULT: 0x80131047).
System.Reflection.AssemblyName.nInit (Assembly & Assembly, Boolean forIntrospection, Boolean raiseResolveEvent) System.Reflection.AssemblyName.nInit () System.Reflection.AssemblyName..ctor (String AssemblyName)