由于灾难,我们无法访问源代码控制,需要从二进制文件中反向设计一些XAML.我环顾四周,发现了一些应该这样做的工具,但他们不工作.
有没有人有工具或知道与.Net 4 WPF一起使用的工具?
谢谢
我在Visual Studio 2012中有一个相当一致但随机发生的猝死.这通常发生在我按F6构建时 - VS将在没有任何消息或警告的情况下消失.
事件日志包含:
Error Handler Exception: System.ServiceModel.CommunicationException: There was an error reading
from the pipe: Unrecognized error 109 (0x6d). ---> System.IO.IOException: The read operation
failed, see inner exception. ---> System.ServiceModel.CommunicationException: There was an error
reading from the pipe: Unrecognized error 109 (0x6d). ---> System.IO.PipeException: There was an
error reading from the pipe: Unrecognized error 109 (0x6d).
at System.ServiceModel.Channels.PipeConnection.OnAsyncReadComplete(Boolean haveResult, Int32 error, Int32 numBytes)
--- End of inner exception stack trace ---
at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)
at System.ServiceModel.Channels.ConnectionStream.EndRead(IAsyncResult asyncResult) …
Run Code Online (Sandbox Code Playgroud) 我为我的任务设置了具有以下权限的 IAM 角色,但尝试访问存储桶时 却被拒绝。
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "",
"Effect": "Allow",
"Action": "s3:*",
"Resource": [
"arn:aws:s3:::bucket/Templates/*",
"arn:aws:s3:::bucket/*",
"arn:aws:s3:::anotherBucket/*"
]
}
]
}
Run Code Online (Sandbox Code Playgroud)
容器实例具有标准策略的角色 AmazonEC2ContainerServiceforEC2Role
。
我似乎能够从存储桶/下读取和写入文件夹,如存储桶/00001,但我无法从存储桶/模板中读取。
我已经反复重新部署权限和任务(使用 terraform),但没有任何变化。我已向应用程序添加了日志记录,以确保它使用正确的存储桶和路径/密钥。
我很困惑。有人知道我在这里可能错过了什么吗?
谢谢
PS:我刚刚想到,我无法访问的存储桶中的文件我使用脚本复制到那里。这是使用任务正在使用的凭据以外的凭据来完成的。
aws s3 cp ..\Api\somefiles\000000000001\ s3://bucket/000000000001 --recursive --profile p
aws s3 cp ..\Api\somefiles\Templates\000000000001\ s3://bucket/Templates/000000000001 --recursive --profile p
我在 cp 命令上使用 -acl bucket-owner-full-control 但我删除了它以查看是否有帮助 - 它没有。也许我还需要别的东西?
即使我可以看到它被调用,我的插件也没有出现在tinymce中.有谁看到我错过了什么?
(function () {
tinymce.PluginManager.requireLangPack('prettifier');
tinymce.create('tinymce.plugins.PrettifierPlugin', {
init: function (ed, url) {
debugger;
// ed.addCommand('mcePrettifier', function () {
// ed.windowManager.open({
// file: url + '/dialog.htm',
// width: 320 + ed.getLang('prettifier.delta_width', 0),
// height: 120 + ed.getLang('prettifier.delta_height', 0),
// inline: 1
// });
// });
// ed.addButton('prettifier', {
// title: 'prettifier.desc',
// cmd: 'mcePrettifier',
// image: url + '/img/prettifier.gif'
// });
ed.addButton('prettifier', {
title: 'prettifier.desc',
cmd: 'mcePrettifier',
image: url + '/img/prettifier.gif',
onclick: function () {
ed.focus(),
ed.selection.setContent('<pre class="prettifier">' + ed.selection.getContent() + …
Run Code Online (Sandbox Code Playgroud) 在推送我的容器的新图像后,我使用Terraform apply来更新任务定义.这似乎工作正常,但在ECS服务任务列表中,我可以看到任务处于非活动状态,我有一个事件:
service blahblah was unable to place a task because no container instance met all of its requirements. The closest matching container-instance [guid here] is already using a port required by your task.
问题是,该网站仍然活跃和工作.
我正在尝试使用System.DirectoryServices.AccountManagement内容将系统与Active Directory集成.我们的IT人员设置了一个AD框,我的开发框不属于此(或任何)域.
到目前为止,我有3行代码作为测试:
var pc = new PrincipalContext(ContextType.Domain, "machine", "CN=Administrator,CN=Users,DC=domain,DC=com", "Password");
var user = UserPrincipal.FindByIdentity(pc, IdentityType.SamAccountName, "Administrator");
var gp = GroupPrincipal.FindByIdentity(pc, IdentityType.SamAccountName, "Admins");
Run Code Online (Sandbox Code Playgroud)
创建PrincipalContext的工作原理如上所示,但如果我尝试使用域名而不是服务器名称,那么我会收到错误:无法联系服务器.所以,我把它留在机器名称上.
获取用户或组时,出现错误:发生了本地错误.
对于用户,我也尝试了相同的结果:
var user = UserPrincipal.FindByIdentity(pc, IdentityType.DistinguishedName, "cn=Administrator,ou=users,dc=domain,dc=com");
Run Code Online (Sandbox Code Playgroud)
所以,总的来说,我很困惑:(
有没有人有什么建议?
作为旁注,我想踢那些认为"发生本地错误"的程序员将是一个有用的错误消息!
干杯
PS:我可以在我的机器上使用SysInternals AD Explorer,我可以看到我正在尝试使用的dn.
PPS:如果我在创建PrincipalContext时使用machine.domain.com作为名称,它也无法连接.
我很熟悉这个错误,但我在更新到Angular Material 6.4.7之后才开始看到这个.
我的所有模块都引用了我自己的MaterialModule,它导出了MatDialogModule.我没有MatDialogRef的任何提供程序设置 - 以前不需要.
和[MatDialogTitle - > MatDialogRef]的交易是什么?那是什么意思?
在dev和prod版本中,一切似乎都运行良好.我无法弄清楚造成这种情况的原因.
有没有办法追溯到某事?
谢谢
core.js:1673 ERROR Error: Uncaught (in promise): Error: StaticInjectorError(AppModule)[MatDialogTitle -> MatDialogRef]:
StaticInjectorError(Platform: core)[MatDialogTitle -> MatDialogRef]:
NullInjectorError: No provider for MatDialogRef!
Error: StaticInjectorError(AppModule)[MatDialogTitle -> MatDialogRef]:
StaticInjectorError(Platform: core)[MatDialogTitle -> MatDialogRef]:
NullInjectorError: No provider for MatDialogRef!
at NullInjector.push../node_modules/@angular/core/fesm5/core.js.NullInjector.get (core.js:1062)
at resolveToken (core.js:1300)
at tryResolveToken (core.js:1244)
at StaticInjector.push../node_modules/@angular/core/fesm5/core.js.StaticInjector.get (core.js:1141)
at resolveToken (core.js:1300)
at tryResolveToken (core.js:1244)
at StaticInjector.push../node_modules/@angular/core/fesm5/core.js.StaticInjector.get (core.js:1141)
at resolveNgModuleDep (core.js:8369)
at NgModuleRef_.push../node_modules/@angular/core/fesm5/core.js.NgModuleRef_.get (core.js:9057)
at resolveDep (core.js:9422)
at NullInjector.push../node_modules/@angular/core/fesm5/core.js.NullInjector.get (core.js:1062)
at resolveToken …
Run Code Online (Sandbox Code Playgroud)