安装库MailKit并调用后,出现new SmtpClient().ConnectAsync(_settings.Server, _settings.Port, _settings.SSL);此错误:
拒绝访问路径“ /var/www/.dotnet/corefx/cryptography/crls”。
顺便说一句,我的项目位于/ media / ProjectName上。我尝试执行此操作:sudo chmod -R 755 /var但是我获得了权限错误。
这是stacktrace:
在System.IO.UnixFileSystem.CreateDirectory(String fullPath)吗?在System.IO.Directory.CreateDirectory(字符串路径)?在Internal.Cryptography.Pal.CrlCache.GetCachedCrlPath(X509Certificate2 cert,布尔mkDir)?在Internal.Cryptography.Pal.CrlCache.DownloadAndAddCrl(X509Certificate2证书,SafeX509StoreHandle存储,TimeSpan和剩余的DownloadTime)中?在Internal.Cryptography.Pal.CrlCache.AddCrlForCertificate(X509Certificate2证书,SafeX509StoreHandle存储,X509RevocationMode撤销模式,DateTime验证时间,TimeSpan和剩余的下载时间)处?在Internal.Cryptography.Pal.OpenSslX509ChainProcessor.BuildChain(X509Certificate2 leaf,HashSet
1 candidates, HashSet1 download,HashSet1 systemTrusted, OidCollection applicationPolicy, OidCollection certificatePolicy, X509RevocationMode revocationMode, X509RevocationFlag revocationFlag, DateTime verificationTime, TimeSpan& remainingDownloadTime)? at Internal.Cryptography.Pal.ChainPal.BuildChain(Boolean useMachineContext, ICertificatePal cert, X509Certificate2Collection extraStore, OidCollection applicationPolicy, OidCollection certificatePolicy, X509RevocationMode revocationMode, X509RevocationFlag revocationFlag, DateTime verificationTime, TimeSpan timeout)? at System.Security.Cryptography.X509Certificates.X509Chain.Build(X509Certificate2 certificate)? at System.Net.Security.CertificateValidation.BuildChainAndVerifyProperties(X509Chain chain, X509Certificate2 remoteCertificate, Boolean checkCertName, String hostName)? at System.Net.Security.SecureChannel.VerifyRemoteCertificate(RemoteCertValidationCallback remoteCertValidationCallback)? …
我<some-input>包装了一个自定义控件组件<ext-some-input>。SomeInput已封装,具有自己的API并支持反应形式。
ExtSomeInput作为高层次的包装上创建SomeInput。
我有以下HTML:
<form [formGroup]="form">
<ext-some-input formControlName="name">
</form>
Run Code Online (Sandbox Code Playgroud)
和ExtSomeInput的html:
<some-input formControlName="_???_"></some-input>
Run Code Online (Sandbox Code Playgroud)
问题是如何将formControlName转发到内部SomeInput组件?我需要将窗体和内部formControl绑起来。这可能吗?
编辑:
我创建了这个问题的stackblitz项目:这里