Updated to 1.4 and still cant install Lets Encrypt on anything:
ReflectionTypeLoadException: "Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information."
Has anyone else got this error and found a solution? Been trying to get it working for weeks now 🙁
Hello,
As your issue is present even on the LetsEncrypt win simple client there's no way SolidCP can fix the issue in your case (as we just use their client).
The way to go around to get it working would probably be to contact them (i believe last time i gave you a github bug report link which was reported on this issue by someone else a while ago?)
Once it's fixed in their client it is simply replacing the files in the serverbinLetsEncrypt with their fixed version.
Regards,
Marco
It is a SolidCP error as far as I can tell.
If I unzip the letsencrypt-win-simple into a fresh new directory on the server and run it manually it works fine and can successfully create and bind certificates without error.
If I run the same commands from C:SolidCPServerbinLetsEncrypt I get an error. I run letsencrypt --test --verbose for debugging.
As you can see in the error below I have highlighted the solidcp error.
It references 'SolidCP.Providers.Web.IIs70' , but this is a IIS8.5 server:
[DBUG] Updating registration
[DBUG] Send POST request to https://acme-staging.api.letsencrypt.org/acme/reg/5
487696
[DBUG] Saving registration
[DBUG] Saving signer
[INFO] Authorize identifier: www.xremoved.co.uk
[DBUG] Send POST request to https://acme-staging.api.letsencrypt.org/acme/new-a
uthz
[INFO] Authorizing www.xremoved.co.uk using http-01 validation (SelfHosting)
[EROR] Error authorizing [IISBinding] www.xremoved.co.uk (SiteId 72) [ @ C:Do
mainsxremovedxremoved.co.ukwwwroot]
[DBUG] ReflectionTypeLoadException: ReflectionTypeLoadException {Types=[null],
LoaderExceptions=[FileNotFoundException {Message="Could not load file or assembl
y 'SolidCP.Providers.Web.IIs70, Version=1.1.2.0, Culture=neutral, PublicKeyToken
=null' or one of its dependencies. The system cannot find the file specified.",
FileName="SolidCP.Providers.Web.IIs70, Version=1.1.2.0, Culture=neutral, PublicK
eyToken=null", FusionLog="WRN: Assembly binding logging is turned OFF.rnTo ena
ble assembly bind failure logging, set the registry value [HKLMSoftwareMicro
softFusion!EnableLog] (DWORD) to 1.rnNote: There is some performance penalty
associated with assembly bind failure logging.rnTo turn this feature off, rem
ove the registry value [HKLMSoftwareMicrosoftFusion!EnableLog].rn", Data
=[], InnerException=null, TargetSite=null, StackTrace=null, HelpLink=null, Sourc
e=null, HResult=-2147024894}], Message="Unable to load one or more of the reques
ted types. Retrieve the LoaderExceptions property for more information.", Data=[
], InnerException=null, TargetSite=System.RuntimeType[] GetTypes(System.Reflecti
on.RuntimeModule), StackTrace=" at System.Reflection.RuntimeModule.GetTypes(Ru
ntimeModule module)rn at System.Reflection.Assembly.GetTypes()rn at Syst
em.ComponentModel.Composition.Hosting.AssemblyCatalog.get_InnerCatalog()rn a
t System.ComponentModel.Composition.Hosting.AssemblyCatalog.GetExports(ImportDef
inition definition)rn at System.Linq.Enumerable.<SelectManyIterator>d__17`2.
MoveNext()rn at System.Collections.Generic.List`1..ctor(IEnumerable`1 collec
tion)rn at System.ComponentModel.Composition.Hosting.AggregateCatalog.GetExp
orts(ImportDefinition definition)rn at System.ComponentModel.Composition.Hos
ting.AggregateCatalog.GetExports(ImportDefinition definition)rn at System.Co
mponentModel.Composition.Hosting.CatalogExportProvider.InternalGetExportsCore(Im
portDefinition definition, AtomicComposition atomicComposition)rn at System.
ComponentModel.Composition.Hosting.ExportProvider.TryGetExportsCore(ImportDefini
tion definition, AtomicComposition atomicComposition, IEnumerable`1& exports)r
n at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExports(Im
portDefinition definition, AtomicComposition atomicComposition, IEnumerable`1& e
xports)rn at System.ComponentModel.Composition.Hosting.CatalogExportProvider
.GetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition
)rn at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExport
sCore(ImportDefinition definition, AtomicComposition atomicComposition, IEnumera
ble`1& exports)rn at System.ComponentModel.Composition.Hosting.ExportProvide
r.GetExports(ImportDefinition definition, AtomicComposition atomicComposition)r
n at System.ComponentModel.Composition.Hosting.AggregateExportProvider.GetExp
ortsCore(ImportDefinition definition, AtomicComposition atomicComposition)rn
at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExportsCore(I
mportDefinition definition, AtomicComposition atomicComposition, IEnumerable`1&
exports)rn at System.ComponentModel.Composition.Hosting.CompositionContainer
.GetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition
)rn at System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExport
sCore(ImportDefinition definition, AtomicComposition atomicComposition, IEnumera
ble`1& exports)rn at System.ComponentModel.Composition.Hosting.ExportProvide
r.GetExports(ImportDefinition definition, AtomicComposition atomicComposition)r
n at System.ComponentModel.Composition.Hosting.ImportEngine.TryGetExports(Exp
ortProvider provider, ComposablePart part, ImportDefinition definition, AtomicCo
mposition atomicComposition)rn at System.ComponentModel.Composition.Hosting.
ImportEngine.TrySatisfyImportSubset(PartManager partManager, IEnumerable`1 impor
ts, AtomicComposition atomicComposition)rn at System.ComponentModel.Composit
ion.Hosting.ImportEngine.TrySatisfyImportsStateMachine(PartManager partManager,
ComposablePart part)rn at System.ComponentModel.Composition.Hosting.ImportEn
gine.TrySatisfyImports(PartManager partManager, ComposablePart part, Boolean sho
uldTrackImports)rn at System.ComponentModel.Composition.Hosting.ImportEngine
.SatisfyImports(ComposablePart part)rn at System.ComponentModel.Composition.
Hosting.CompositionServices.TryInvoke(Action action)rn at System.ComponentMo
del.Composition.Hosting.ComposablePartExportProvider.Compose(CompositionBatch ba
tch)rn at ACMESharp.Ext.ExtCommon.InitExtConfig[TExtConfig]()rn at ACMES
harp.ACME.ChallengeDecoderExtManager.InitConfig()rn at ACMESharp.ACME.Challe
ngeDecoderExtManager.AssertInit()rn at ACMESharp.ACME.ChallengeDecoderExtMan
ager.GetProvider(String type, IReadOnlyDictionary`2 reservedLeaveNull)rn at
ACMESharp.AcmeClient.DecodeChallenge(AuthorizationState authzState, String chall
engeType)rn at LetsEncrypt.ACME.Simple.Program.Authorize(ILifetimeScope rene
walScope, Target target)", HelpLink=null, Source="mscorlib", HResult=-2146232830
}
[EROR] ReflectionTypeLoadException: Unable to load one or more of the requested
types. Retrieve the LoaderExceptions property for more information.
[EROR] Create certificate failed
Looking into this some more, it appears to be trying to use the iis7 dll instead of the iis8 one to carry out the domain authentication via the "create temporary application in IIS" method of certificate validation.
Or there is some kind of bad dll version reference somewhere as the correct version of the dll for this build is 1.4.0.0 and not the 1.1.2.0 quoted in the error message.
thought in last post you also tried the client with same result?
anyways if the client you downloaded works you can just replace it with the SolidCP's one. (copy over files).
Regarding the error linked:
FileName=”SolidCP.Providers.Web.IIs70, Version=1.1.2.0, Culture=neutral, PublicK
Indicates an update has not gone succesfull at some point. (version requires to be equal which is 1.4.0.0, 1.1.2.0 is before 1.2 and 1.3.)
Reasons for this can be web.config in server module which doesn't have the iis dir at the bottom, other files that didn't update well etc.
(if web.config is correct you should be able to delete the iis7 from serverbin so it just remains in serverbiniis folders).