小编Baa*_*ali的帖子

加载此程序集将从其他实例生成不同的授权集.(HRESULT异常:0x80131401)

我们使用Windows更新修补了SharePoint 2013服务器,从那时起我们收到以下错误.我们已重新启动服务器,手动删除了Windows更新,然后重新启动服务器,在Windows更新之前恢复到Windows服务器的副本,但错误仍然存​​在.我们还从Windows目录中删除了临时文件,没有任何帮助.

我附上了一夜之间应用于我们服务器的Windows更新截图在此输入图像描述

 Loading this assembly would produce a different grant set from other     instances. (Exception from HRESULT: 0x80131401) 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.IO.FileLoadException: Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401)

Source Error: 

An unhandled exception was generated during the execution of …
Run Code Online (Sandbox Code Playgroud)

sharepoint sharepoint-2013 windows-server-2012-r2

18
推荐指数
2
解决办法
2万
查看次数

密码学.NET,避免时间攻击

我正在浏览crackstation.net网站并遇到了这段代码,其评论如下:

在长度 - 恒定时间内比较两个字节数组.使用此比较方法,以便无法使用定时攻击从在线系统中提取密码哈希值,然后离线攻击.

 private static bool SlowEquals(byte[] a, byte[] b)
    {
        uint diff = (uint)a.Length ^ (uint)b.Length;
        for (int i = 0; i < a.Length && i < b.Length; i++)
            diff |= (uint)(a[i] ^ b[i]);
        return diff == 0;
    }
Run Code Online (Sandbox Code Playgroud)

任何人都可以解释一下这个函数实际是如何工作的,为什么我们需要将长度转换为无符号整数以及这种方法如何避免定时攻击?这条线diff |= (uint)(a[i] ^ b[i]);做什么?

c# cryptography

16
推荐指数
1
解决办法
2175
查看次数

.NET应用程序使用的SQL View超时

我们有一个使用LINQ to SQL(ORM)的.NET应用程序来调用一个视图,该视图包含来自不同数据库中多个对象的连接..NET应用程序超时调用此视图,但是我们的DBA运行以下语句:

sp_refreshview on the view and the subsequennt sql views
Run Code Online (Sandbox Code Playgroud)

应用程序再次开始运行.

该应用程序在接近20分钟后再次在同一视图上开始超时.因此,我们的DBA安排了一项工作,每30分钟运行一次上述声明.该视图没有结构上的变化,我们正试图弄清楚为什么要sp_refreshview修复这个问题以及我们可以解决的潜在问题是什么?

.net sql sql-server linq-to-sql sql-server-2008-r2

10
推荐指数
1
解决办法
237
查看次数

在npm安装期间无法读取"es6-shim"的输入

我正在关注deborah kurata的angular2入门课程并安装了node.js,然后运行了npm install(安装cntlm之后,因为我在公司代理防火墙后面).但是我收到以下错误

> product-management@1.0.0 postinstall c:\ Users\test\Documents\Visual Studio 2015\Projects\Angular2
> typings install

打字ERR!消息无法读取"es6-shim"的输入.您应该检查"es6-shim.d.ts"中的输入路径是最新的类型ERR!由无法连接到
" https://raw.githubusercontent.com/D efinitelyTyped/DefinitelyTyped/7de6c3dd94feaeb21f20054b9f30d5dabc5efabd/es6-shim/es6-shim.d.ts"打印错误!连接引起的ECONNREFUSED 103.245.222.133:443

打字ERR!cwd c:\ Users\test\Documents\Visual Studio 2015\Projects\Angular2

打字ERR!系统Windows_NT 6.1.7601类型ERR!命令"C:\ Program Files \nodejs \node.exe""c:\ Users\vivekba\Documents\Visual Studio 2015\Projects\Angular2 \node_modules\typings\dist\bin.js""install"typings ERR!node -v v5.10.1 typings ERR!打字-v 0.7.12

打字ERR!如果您需要帮助,可以在以下位置报告此错误:typings ERR! https://github.com/typings/typings/issues

npm WARN可选跳过失败可选依赖项/ chokidar/fsevents:npm WARN notsup与您的操作系统或体系结构不兼容:fseve nts@1.0.11 npm ERR!Windows_NT 6.1.7601 npm ERR!argv"C:\ Program Files \nodejs \node.exe""C:\ Program Files \nodejs \node_modules \npm\bin \npm-cli.js""install"npm ERR!节点v5.10.1 npm ERR!npm v3.8.3 npm ERR!代码ELIFECYCLE npm ERR!product-management@1.0.0 postinstall:typings installnpm ERR!退出状态1 npm ERR!错误的ERR!product-management@1.0.0 postinstall脚本'typings install'失败.错误的ERR!确保安装了最新版本的node.js和npm.错误的ERR!如果这样做,这很可能是产品管理包的问题,​​npm …

npm npm-install angular

9
推荐指数
2
解决办法
4884
查看次数

tfs构建服务器 - 字符串插值$字符无效

$在我的代码中使用字符串插值.它编译得很好但是当我签入我的代码时,构建服务器会抛出错误BC30037: Character is not valid.以下是我如何使用字符串插值的示例:

dim r = New RadNode($"{acq.FormNo} -  ${CInt(acq.TotalAmount)}", icon:=RadTreeIcons.RedTriangle)
Run Code Online (Sandbox Code Playgroud)

构建服务器安装了Visual Studio 2015 Entreprise版本.

如果我从命令提示符运行:

C:\Program Files (x86)\MSBuild\14.0\Bin>MSBuild /tv:14.0 "Proj.sln",代码编译文件.但是,如果我将上述参数更改为

C:\Program Files (x86)\MSBuild\14.0\Bin>MSBuild /tv:12.0 "Proj.sln", 我犯了同样的错误

我也做了这些改变:

我已将MSBuildArguments属性设置为/p:VisualStudioVersion=14.0并且还更改了TFSBuild.proj文件并将此行更改为<Project DefaultTargets="DesktopBuild" xmlns="schemas.microsoft.com/developer/msbuild/2003"; ToolsVersion="14.0">"但同样的问题正在发生.

更改了(web vbproj)文件,并将ToolSet版本从12.0更改为14.0.其他vb项目部分解决方案仍然以12.0为目标,但作为web vb项目的一部分在dll中编译.

tfsbuild string-interpolation

9
推荐指数
1
解决办法
723
查看次数

使用Automapper返回IQueryable

我试图在我的一个函数中返回一个IQueryable对象并使用映射(Automapper).它设法返回一个IEnumerable对象,但是当我尝试返回一个IQueryable对象时,它会抛出一个错误:

这是错误:

缺少类型映射配置或不支持的映射.

映射类型:LLBLGenProQuery 1 -> CostCentre SD.LLBLGen.Pro.LinqSupportClasses.LLBLGenProQuery1 [[Mail.DAL.EntityClasses.TblCostCentreEntity,Mail.DAL,Version = 1.0.4638.16064,Culture = neutral,PublicKeyToken = null]] - > Mail.Model.CostCentre

目标路径:CostCentre

来源价值:SD.LLBLGen.Pro.LinqSupportClasses.LLBLGenProQuery`1 [Mail.DAL.EntityClasses.TblCostCentreEntity]

这是代码:

Dim metaData As New LinqMetaData Dim q = from p in metaData.TblCostCentre _ Select p Mapper.CreateMap(Of TblCostCentreEntity,CostCentre)()

    Dim t As IEnumerable(Of CostCentre) = Mapper.Map(Of CostCentre)(q)
    'Select New CostCentre With {.Active = p.Active, .CostCentre = p.CostCentre, .CreatedBy = p.CreatedBy, .DateCreated = p.DateCreated, .DateLastModified = p.DateLastModified, .ModifiedBy = p.ModifiedBy, .CostCentreID = p.CostCentreId}

    Return t
Run Code Online (Sandbox Code Playgroud)

vb.net asp.net-mvc llblgenpro automapper

8
推荐指数
2
解决办法
6906
查看次数

JSON Post调用错误函数

我有这个jquery post调用,它以某种方式调用错误函数,即使它将数据完全输入到数据库中.

<script type="text/javascript">
    $(document).ready(function () {
        $("#ExtMailCreate").click(function () {
            var url = '@Url.Action("Create")';
            var data = JSON.stringify(SaveExternalMail());
            $.ajax({
                type: "POST",
                url: url,
                data: data,
                dataType: "json",
                contentType: "application/json; charset=utf-8",
                success: function (data) {
                    $("#result").append("pass");
                },
                error: function (data) {
                    $("#result").append("error");
                }
            });
        });
    });

    function SaveExternalMail() {
        var costcentrecode = $("#CostCentreCode").val();
        var day = $("#ExtMailDatePicker").val();
        var externalMailItemID = $("#ExternalMailItemID").val();
        var externalMailLocationID = $("#ExternalMailLocationID").val();
        var quantity = $("#Quantity").val();
        return {
            CostCentreCode: costcentrecode,
            Day: day,
            ExternalMailItemID: externalMailItemID,
            ExternalMailLocationID: externalMailLocationID,
            Quantity: quantity …
Run Code Online (Sandbox Code Playgroud)

asp.net-mvc jquery json

8
推荐指数
1
解决办法
1932
查看次数

使用ReportViewer打印 - SSRS

我们在ASP.NET Web应用程序中使用ReportViewer 2015并将其与IE 11一起使用.当用户(没有管理员权限)尝试打印报告时,会出现以下错误: 在此输入图像描述

如果我单击,取消此错误:然后出现以下弹出窗口:

在此输入图像描述

然后无论我们点击是或否,我们都会收到以下消息:

在此输入图像描述

以前我们使用的是Report Viewer 9,这一切都运行良好,但是这个版本的Report Viewer在IE 11中无法很好地呈现.

我们还在将RSClientPrint-x86.inf部署到所有用户的计算机上.

我们还为他们的机器临时分配了用户管理员权限,当他们的机器上发生设置时,我们复制了RSClientPrint程序集然后分发它们但它不起作用.

甚至一旦部署了程序集,只要管理员权限被用户取消,他们的打印就会再次停止工作.

有人可以帮忙吗?

reportviewer reporting-services

8
推荐指数
1
解决办法
419
查看次数

ng serve throws node_modules出现空错误

我刚开始学习Angular 4,作为学习过程的一部分,我做了以下工作:

安装Node.js (version 8).

跑这个命令 npm install -g @angular/cli

通过CLI创建了一个新项目: ng new my-first-app

一旦我运行此命令:ng serve,我得到一个错误node_module显示为空,您可能需要运行'npm install'.一旦我运行npm install,它就安装了一些库,现在ng serve构建并运行该项目.我想知道为什么我需要npm install和它安装了什么?不应该使用此命令安装所有先决条件npm install -g @angular/cli

angular

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

当多个用户创建用户时,会修改automapper错误集合

我收到以下错误,只有当多个用户点击同一个按钮时才会出现此错误.任何帮助/想法将非常感激:

System.InvalidOperationException:集合已被修改; 枚举操作可能无法执行.生成:2015年6月10日星期三07:29:06 GMT

AutoMapper.AutoMapperMappingException:

映射类型:User - > User ApplicationSecurityManager.Service.User - > ApplicationSecurityManager.Models.User

目标路径:用户

源值:ApplicationSecurityManager.Service.User ---> System.InvalidOperationException:集合被修改; 枚举操作可能无法执行.在1.Enumerator.MoveNextRare() at AutoMapper.TypeMap.<get_AfterMap>b__1(Object src, Object dest) at AutoMapper.Mappers.TypeMapObjectMapperRegistry.PropertyMapMappingStrategy.Map(ResolutionContext context, IMappingEngineRunner mapper) at AutoMapper.Mappers.TypeMapMapper.Map(ResolutionContext context, IMappingEngineRunner mapper) at AutoMapper.MappingEngine.AutoMapper.IMappingEngineRunner.Map(ResolutionContext context) --- End of inner exception stack trace --- at AutoMapper.MappingEngine.AutoMapper.IMappingEngineRunner.Map(ResolutionContext context) at AutoMapper.MappingEngine.Map[TDestination](Object source, ActionSystemSecurityManager.Infrastructure.ApplicationSecurityAttribute.OnAuthorization(AuthorizationContext filterContext)的ApplicationSecurityManager.UserManager.IsAuthenticated()的ApplicationSecurityManager.UserManager.get_AuthenticatedUser()处的ApplicationSecurityManager.UserManager.LoadUser(String username)处的System.Collections.Generic.List 1 opts) System.Web.Mvc.ControllerActionInvoker.InvokeAuthorizationFilters(ControllerContext controllerContext,IList 1 filters, ActionDescriptor actionDescriptor) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<BeginInvokeAction>b__1e(AsyncCallback asyncCallback, Object asyncState) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult1.Begin(AsyncCallback回调,对象状态,Int32超时),位于System.Web.Mvc.Async.AsyncResultWrapper.Begin [TResult](AsyncCallback回调,对象状态,BeginInvokeDelegate) System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult 1 endDelegate, Object tag, Int32 timeout) at …

vb.net asp.net-mvc dependency-injection automapper-3

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