有时在使用IISExpress在VS2012中运行我的MVC4站点时,我收到以下错误并且IISExpress停止:
iisexpress.exe: Managed (v4.0.30319)' has exited with code -1073741816 (0xc0000008) 'An invalid handle was specified
Run Code Online (Sandbox Code Playgroud)
事件日志中没有任何内容,我无法在interweb上找到任何内容.
我有一些非常含糊的理论:
哦,我在使用VS Dev Web服务器时也遇到了同样的错误.我还没试过完整的IIS.
别人都有线索?
谢谢
更新:
我修了几个nuget参考文献,似乎有点稳定,然后今天早上又发生了.VS输出窗口显示:
'iisexpress.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Mobile\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'iisexpress.exe' (Managed (v4.0.30319)): Loaded 'C:\Users\peter.jones\AppData\Local\Temp\Temporary ASP.NET Files\root\a4aa93f7\dfa23a50\App_Web_rpzlbjhw.dll', Symbols loaded.
'iisexpress.exe' (Managed (v4.0.30319)): Loaded 'C:\Users\peter.jones\AppData\Local\Temp\Temporary ASP.NET Files\root\a4aa93f7\dfa23a50\App_Web_c1rjct4s.dll', Symbols loaded.
The program '[11072] iisexpress.exe: Managed (v4.0.30319)' has exited with code -1073741816 (0xc0000008) 'An invalid handle was …
Run Code Online (Sandbox Code Playgroud) 我已经在使用材质表单的对话框中创建了一个表单,但我似乎无法获得大于180px的输入,尽管有许多示例,包括https://material.angular.io/components/input/example.
我确定这是一个非常标准的css的东西,但我没有那种大脑,所以我无法弄清楚问题.
有没有人有一个严肃/非平凡的例子?
这是我的:
<h1 mat-dialog-title>{{title}}</h1>
<mat-dialog-content>
<form novalidate #f="ngForm" class="form-full-width">
<mat-form-field class="input-full-width">
<input type="text" [(ngModel)]="data.name" name="name" matInput placeholder="Name">
<mat-hint>Enter a unique name.</mat-hint>
</mat-form-field>
<mat-form-field class="input-full-width">
<textarea [(ngModel)]="data.description" name="description" matInput placeholder="Description"></textarea>
<mat-hint>You should describe the purpose/use of this thing.</mat-hint>
</mat-form-field>
</form>
</mat-dialog-content>
Run Code Online (Sandbox Code Playgroud)
CSS:
.form-full-width {
min-width: 150px;
max-width: 500px;
width:100%;
}
.input-full-width {
width:800px;
}
.mat-form-field.mat-form-field {
width: auto;
}
Run Code Online (Sandbox Code Playgroud)
谢谢
我正在尝试优化我的Visual Studio体验和我的机器.我注意到我有两个SQL Server运行实例,其中一个是LocalDB.这由Visual Studio启动.
我宁愿它根本没有启动本地数据库,但我可以想象它将它用于一些事情.因为我已经运行了一个完整的sql实例,所以如果它使用它会更好.
有谁知道我是否可以阻止它开始或至少不启动它,直到它真的需要它?
我无法弄清楚为什么我的搜索区分大小写.我读过的所有内容都说ES默认情况下不敏感.我有指定标准分析器用于索引和搜索的映射,但似乎有些东西仍然区分大小写 - 即,通配符:
"query": {
"bool": {
"must": [
{
"wildcard": {
"name": {
"value": "Rae*"
}
}
}
]
}
Run Code Online (Sandbox Code Playgroud)
这失败但是"rae*"按预期工作.我需要使用通配符进行'开始'类型搜索(我推测).
我正在使用.Net应用程序中的NEST,并在创建索引时指定分析器:
var settings = new IndexSettings();
settings.NumberOfReplicas = _configuration.Replicas;
settings.NumberOfShards = _configuration.Shards;
settings.Add("index.refresh_interval", "10s");
settings.Analysis.Analyzers.Add(new KeyValuePair<string, AnalyzerBase>("keyword", new KeywordAnalyzer()));
settings.Analysis.Analyzers.Add(new KeyValuePair<string, AnalyzerBase>("simple", new SimpleAnalyzer()));
Run Code Online (Sandbox Code Playgroud)
在这种情况下,它使用简单的分析仪,但标准的分析仪具有相同的结果.
映射看起来像这样:
name: {
type: string
analyzer: simple
store: yes
}
Run Code Online (Sandbox Code Playgroud)
有人在这里有任何想法吗?
谢谢
我们目前有一个使用WiX 3.5 创建的MSI .该应用程序在.NET 3.5中.我们使用MSBuild文件中的boostrapper任务生成一个bootstrapper .它指向6.0a SDK文件.
当用户启用UAC并进行安装时,他们必须右键单击setup.exe
并选择run-as管理员.
我真正想要的是让setup.exe自动提示提升(使用我在其他安装中看到的黄色对话框).
更好的是,我希望MSI能够做到这一点并完全取消它setup.exe
,但我认为这就是WiX 3.6的用途,对吧?
如果我使用ApplicationRequiresElevation="true"
这个需求创建了boostperper 7.0a SDK,对吗?然后引导程序会提示自动提升吗?这是否意味着应用程序必须是.NET 4应用程序?我不这么认为......
ES的新手可能是一个愚蠢的问题,但我试图使用通配符进行搜索,例如: "SOMECODE*"
和"*SOMECODE"
它工作正常,但文档中的值可能有"SOMECODE/FRED"
.
问题是*
与任何东西(包括什么都没有)匹配.
*SOMECODE
会受到打击SOMECODE/FRED
.
我试着寻找,*/SOMECODE
但这没有回报.
我认为该字段的标记化是根本问题.
即,/
使值为2个单词.
我尝试在场上设置地图not_analyzed
,但后来我根本无法搜索它.
我做错了吗?
谢谢
我正在使用SkiaSharp将标签打印到PDF(和其他东西).PDF的每个页面都可以有多个行和列.我需要将每个标签剪裁成正确的尺寸,这样它就不会丢弃相邻的标签.
为了进行测试,每个标签都有一个延伸得太远的矩形加上7行文字和一个靠近垂直中间的圆圈.
我的代码是这样的:
using (var region = new SKRegion())
{
region.SetRect(_labelClipRect);
_currentCanvas.ClipRegion(region, SKClipOperation.Intersect);
_labelView.Draw(_currentCanvas, _printRequest.Device.DPI, xOffsetPX, yOffsetPX);
}
Run Code Online (Sandbox Code Playgroud)
结果是:
每页上的第一个标签看起来都是正确的,但其余的都很时髦.缺少矩形和圆形,文本根本没有剪裁.
有人见过这样的样品吗?
谢谢
我已按照此处的示例进行操作,但是当我尝试更新堆栈时,出现以下错误:
No scalable target registered for service namespace: ecs, resource ID:
service/xxx-prod/xxx-prod-api, scalable dimension: ecs:service:DesiredCount
(Service: AWSApplicationAutoScaling; Status Code: 400; Error Code:
ObjectNotFoundException; Request ID: 1232c749-a7a9-11e9-bd34-dfed08b14539)
Run Code Online (Sandbox Code Playgroud)
我见过的所有示例和文档都显示资源 ID,如下所示:
service/cluster-name-AB678321674/service-AB672345678
Run Code Online (Sandbox Code Playgroud)
我不知道如何或在哪里可以获得这种格式的资源 ID。
CF 看起来像这样:
AutoScalingTarget:
Type: AWS::ApplicationAutoScaling::ScalableTarget
Properties:
MinCapacity: !Ref MinContainers
MaxCapacity: !Ref MaxContainers
ResourceId:
Fn::Join:
- "/"
- - service
- Fn::ImportValue:
!Join [':', [!Ref AppStackName, 'ClusterName']]
- !GetAtt Service.Name
ScalableDimension: ecs:service:DesiredCount
ServiceNamespace: ecs
# "The Amazon Resource Name (ARN) of an AWS Identity and Access Management …
Run Code Online (Sandbox Code Playgroud) 由于灾难,我们无法访问源代码控制,需要从二进制文件中反向设计一些XAML.我环顾四周,发现了一些应该这样做的工具,但他们不工作.
有没有人有工具或知道与.Net 4 WPF一起使用的工具?
谢谢