小编Ant*_*ton的帖子

应用程序启动时捆绑包中的异常

我有一个ASP.NET MVC应用程序.所有脚本都像往常一样捆绑在一起.这是我的BundleConfig.cs代码

 bundles.Add(new ScriptBundle("~/bundles/public-js").Include(
                    "~/Scripts/angular.min.js",
                    "~/Scripts/angular-route.min.js",
                    "~/Scripts/angular-resource.min.js",
                    "~/Scripts/angular-cookies.min.js",
                    "~/Scripts/angular-sanitize.min.js",
                    "~/Scripts/angular-ui/ui-bootstrap-tpls.min.js",
                    "~/Scripts/bootstrap.min.js",

                    "~/Scripts/string.utilities.js",
                    "~/Scripts/public/google-charts-loader.js",
                    "~/Scripts/biz/core/app-config.js",

                    "~/Scripts/public/core/db-api.js",
                    "~/Scripts/public/core/app.js",
                    "~/Scripts/public/core/directives.js",
                    "~/Scripts/public/core/controller-helpers.js",
                    "~/Scripts/public/core/public-controller-helpers.js",
                    "~/Scripts/public/core/services.js",
                    "~/Scripts/public/core/list-controller.js",
                    "~/Scripts/public/core/item-controller.js",

                    "~/Scripts/n.utilities.biz.js"
                    ));
Run Code Online (Sandbox Code Playgroud)

根据IntelliTrace,我有一个例外,它是由系统处理的.这是异常描述

Exception thrown: 'System.Web.HttpException' in System.Web.dll (": Invalid file name for file monitoring: 'C:\IISTest\SuperMVC\Scripts\public'. Common reasons for failure include: 
- The filename is not a valid Win32 file name.
- The filename is not an absolute path.
- The filename contains wildcard characters.
- The file specified is a directory.
- Access denied.)
Run Code Online (Sandbox Code Playgroud)

应用程序继续正常运行,没有错误.为什么应用程序启动时出现此错误?

c# asp.net-mvc visual-studio-2015

7
推荐指数
1
解决办法
839
查看次数

Web Api / ASP.NET Windows身份验证如何工作?

根据asp.net官方网站

集成的Windows身份验证使用户可以使用Kerberos或NTLM使用其Windows凭据登录。客户端在授权标头中发送凭据

但是这种方法在同一页面上的优势

内置于IIS。不发送请求中的用户凭据

这有点令人困惑。那么Windows身份验证在Web Api / ASP.NET的http请求中如何真正起作用?

c# asp.net asp.net-mvc

5
推荐指数
1
解决办法
746
查看次数

在 IIS 中为网站绑定添加 SSL 证书时出错

当我尝试在 IIS 中为我​​的站点添加 https 绑定时,我选择“绑定”菜单,然后从下拉列表中选择要使用的证书,单击“确定”后出现错误

操作期间出错 - 连接到系统的设备无法正常工作(HRESULT 异常:0x8007001F)

我尝试了不同的证书,还检查了私钥是否可以导出

对于 IIS 主机,我使用 Windows 10 Pro 1803 和 IIS 10.0.17763.1

更新 1

我也试过添加 SSL 证书

netsh http add sslcert 127.0.0.1:8035 certhash=hash appid={guid fo appid}
Run Code Online (Sandbox Code Playgroud)

这种方法也返回了错误

SSL 证书添加失败,错误:31 连接到系统的设备无法正常工作

iis https ssl-certificate

5
推荐指数
1
解决办法
762
查看次数

JS正则表达式替换不起作用

我有一个JS字符串

var str = '<at id="11:12345678">@robot</at> ping'; 
Run Code Online (Sandbox Code Playgroud)

我需要删除字符串的这一部分

<at id="11:12345678">@
Run Code Online (Sandbox Code Playgroud)

所以我想尝试使用

var str = str.replace("<at.+@","");
Run Code Online (Sandbox Code Playgroud)

但是在执行后没有变化.此外,如果我尝试使用匹配它给我

str.match("<at.+@");
//Result from Chrome console Repl
["<at id="11:12345678">@", index: 0, input: "<at id="11:12345678">@robot</at> ping"]
Run Code Online (Sandbox Code Playgroud)

因此,模式实际可行,但无需替换

javascript regex

4
推荐指数
1
解决办法
1189
查看次数

确定分支何时合并到另一个分支

我有一个小的 git 仓库,里面有多个分支

我需要确定何时以及谁将特定分支合并到 master。我使用命令查看合并的分支

git branch --merged
Run Code Online (Sandbox Code Playgroud)

但我还需要确定何时以及谁做了这件事

使用更新 git log --merges

例如我有两个分支

  • 掌握
  • 发布/1

执行git log --merges给了我

commit 430c9e85e527ab1a63693265e220a8c72ed2fd14
Merge: c5ce3bffc 3ce4f8bff
Author: author1
Date:   Thu Feb 23 07:15:55 2017 +0300

    Merge branch 'master'

commit a909cf5d0100ef1621965f1f4275bd05c1495427
Merge: c2a2a4430 bfda36db3
Author: author1
Date:   Thu Feb 23 05:41:32 2017 +0300

    Merge branch 'feature/3'

commit c5ce3bffc4bde8dc60ae264781e9c990e67daaa1
Merge: 4107e0817 b03ef505f
Author: author2
Date:   Tue Feb 21 11:00:56 2017 +0300

    Merge branch 'release/1' of https://tfs.awesomecode.com/EpicSystems/_git/EPC into release/1

commit b03ef505f177eaf82a31164a97daa1d63c4146f8
Merge: 3f9b75bb7 …
Run Code Online (Sandbox Code Playgroud)

git

4
推荐指数
1
解决办法
1918
查看次数