我在我的机器上安装了Windows 10 Creators Update,并检查了注册表项,发现版本DWORD的值为460798(根据https://msdn.microsoft.com/en-us/library/hh925568(v=vs.110) ).aspx).
然而,当我启动Visual Studio 2015(Update 3)并且项目属性中的Target Framework下拉时,不会显示.NET Framework 4.7.目标.net平台页面(http://getdotnet.azurewebsites.net/target-dotnet-platforms.html#)未在VS 2015下显示 .net framework 4.7.
我甚至可以使用VS 2015定位.net框架4.7吗?如果有可能,我该怎么办?
文章(监视和诊断Azure Service Fabric应用程序)表示以下内容(请注意粗体文本):
ASP.NET核心日志记录
选择如何检测代码可能很困难,如果你选择不好并且必须重新检测,那么你正在重新审视并可能破坏你的代码库的稳定性.为降低风险,开发人员可以选择一个检测库,例如ASP.NET Core提供的Microsoft.Extensions.Logging.这提供了一个ILogger接口,允许使用您选择的提供程序,同时最大限度地减少对现有代码的影响.另一个很好的方面是代码不仅可以在Windows和Linux上的.NET Core中使用,而且可以在完整的.NET框架中使用,从而能够跨.NET和.NET Core标准化您的仪器代码.
这应该如何工作,因为当我尝试添加扩展库(到我的服务结构集群应用程序项目,编译为.net框架4.5.2)时,它是否试图关闭所有与asp.net核心相关的二进制文件?
我该怎么办呢?
在MSDN链接提供了具体的AES类的引用:
但是,AesCryptoServiceProvider适用于较旧的计算机,而AesManaged未通过FIPS认证.所以唯一的选择是AesCng.AesCng有一个名为Mode的属性,它只接受:CBC,ECB,OFB,CFB,CTS但没有GCM.
我最近在客户端升级到VS 2015(更新3),在服务器端升级到TFS 2015(更新3).Git操作工作了一段时间,然后我在尝试克隆git repo时开始出现以下错误:
Error encountered while cloning the remote repository: An error occurred while sending the request.
Inner Exception:
The remote server returned an error: (401) Unauthorized.
Inner Exception:
No credentials are available in the security package
Run Code Online (Sandbox Code Playgroud)
但是我可以在浏览器中导航到repo而没有任何问题.然后,我想这可能是由于我的客户端设置.我尝试删除VS缓存以及TFS缓存.没有任何效果.当我使用Fiddler时,它应该遵循以下信息:
它揭示了以下信息:
Request 1:
GET https://myhost/tfs/transact/Transact/_git/MY-REPO/info/refs?service=git-upload-pack HTTP/1.1
User-Agent: git/1.0 (libgit2) Team Foundation (devenv.exe, 14.102.25521.0, Enterprise, SKU:37)
Host: myhost
Accept-Encoding: gzip
Connection: Keep-Alive
Response 1:
HTTP/1.1 401 Unauthorized
...
Request 2:
GET https://myhost/tfs/transact/Transact/_git/MY-REPO/info/refs?service=git-upload-pack HTTP/1.1
User-Agent: git/1.0 (libgit2) Team Foundation (devenv.exe, 14.102.25521.0, Enterprise, SKU:37) …Run Code Online (Sandbox Code Playgroud) 触发行为
...
PeekLock 行为 - Functions 运行时在 PeekLock 模式下接收消息,如果函数成功完成,则对消息调用 Complete,如果函数失败,则调用 Abandon。如果函数运行时间超过 PeekLock 超时,则锁会自动更新。
我假设当 azure 函数对消息调用 Complete 时,它将从队列中删除。
如果我想让我的函数监视消息但从不删除它,我应该在我的函数中做什么?
我需要使用OaepSHA256和MGF1填充来使用RSA公钥加密普通字节.所以我想我可以编写以下代码(使用.net framework 4.7):
var encryptionCert = new X509Certificate2(certBytes);
using (var rsaPublicKey = encryptionCert.GetRSAPublicKey()) // Get an instance of RSA derived class
{
var encryptedKeyBytes = rsaPublicKey.Encrypt(plainBytes, RSAEncryptionPadding.OaepSHA256);
}
Run Code Online (Sandbox Code Playgroud)
我不知道MGF1填充和最佳非对称加密填充(OAEP)是否相关.
这是我的问题:
下载的bot模拟器和vs模板代码,如https://docs.microsoft.com/en-us/bot-framework/resources-tools-downloads中所述.
在我的Windows 10计算机上启动具有管理员权限的VS 2015 [版本:14 Update 3]以及具有相同最终结果的VS 2017 [版本:15.2]之后创建了一个新的僵尸程序应用程序(版本:1703;操作系统构建:16199.1000) .
更新了所有nuget包.
按F5运行应用程序.我收到以下错误:
'/'应用程序中的服务器错误.
指定的参数超出了有效值的范围.参数名称:site
描述:执行当前Web请求期间发生未处理的异常.请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息.
异常详细信息:System.ArgumentOutOfRangeException:指定的参数超出了有效值的范围.参数名称:site
来源错误:
在执行当前Web请求期间生成了未处理的异常.可以使用下面的异常堆栈跟踪来识别有关异常的起源和位置的信息.
堆栈跟踪:
[ArgumentOutOfRangeException:指定的参数超出了有效值的范围.参数名称:site] System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags,PolicyLevel policyLevel,Exception appDomainCreationException)+280
[HttpException(0x80004005):指定的参数超出了有效值的范围.参数名称:site] System.Web.HttpRuntime.FirstRequestInit(HttpContext context)+10041024 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context)+95 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr,HttpContext context)+254
应用程序事件日志包含以下信息:
事件代码:3005事件消息:发生了未处理的异常.活动时间:5/24/2017 11:36:28 PM活动时间(UTC):5/25/2017 6:36:28 AM活动编号:9914b02cd15f4282b9043b1f70097b3e活动顺序:1活动开始:1活动详情代码:0
应用程序信息:应用程序域:/ LM/W3SVC/2/ROOT-1-131401677887853236信任级别:
应用程序虚拟路径:/应用程序路径:c:\ users \用户A\documents\visual studio 2017\Projects\MyFirstBotApp\MyFirstBotApp\Machine名称:DESKTOP-BQ93HFB
进程信息:进程ID:14320进程名称:iisexpress.exe帐户名:DESKTOP-BQ93HFB\User A
异常信息:异常类型:ArgumentOutOfRangeException异常消息:指定的参数超出了有效值的范围.参数名称:System.Web.Configuration.WebConfigurationHost.InitForConfiguration(String&locationSubPath,String&configPath,String&locationConfigPath,IInternalConfigRoot configRoot,Object [] hostInitConfigurationParams)中的站点,位于System.Configuration.Configuration..ctor(String locationSubPath,Type typeConfigHost,Object [在System.Web.Configuration.WebConfigurationHost.OpenConfiguration的System.Configuration.Internal.InternalConfigConfigurationFactory.System.Configuration.InternalConfigConfigurationFforyConfigurationFactory.Create(Type typeConfigHost,Object [] hostInitConfigurationParams)中的(hostInitConfigurationParams)(WebLevel webLevel,ConfigurationFileMap文件映射,VirtualPath路径, System.Web.Configuration.WebConfigurationManager.OpenWebConfigurationImpl中的String site,String locationSubPath,String server,String userName,String password,IntPtr tokenHandle(WebLevel webLevel,ConfigurationFileMap fileMap,String path,String site,String locationSubPath,String server,String u System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags,PolicyLevel policyLevel,Exception appDomainCreationException)的System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId,IApplicationHost appHost,HostingEnvironmentParameters …
iis-express visual-studio-2015 botframework visual-studio-2017
部署到azure网站时,在package.json中使用了以下代码:
{
"name": "mypackage",
...
"engines": {
"node": "6.11.1",
"npm": "4.2.0"
},
...
}
Run Code Online (Sandbox Code Playgroud)
一切正常,但我也收到以下警告:
npm WARN生命周期用于脚本的节点二进制文件是D:\ Program Files(x86)\ nodejs \ 6.9.1 \ node.exe,但是npm使用的是D:\ Program Files(x86)\ nodejs \ 6.11.1 \ node.exe本身。使用该--scripts-prepend-node-path选项可以包括执行二进制二进制文件npm的路径。成功完成。
部署到Azure网站时如何设置--scripts-prepend-node-path选项?
.net ×4
azure ×3
cryptography ×2
encryption ×2
aes ×1
aes-gcm ×1
asp.net ×1
azure-devops ×1
botframework ×1
c# ×1
git ×1
iis-express ×1
libgit2 ×1
libgit2sharp ×1
node.js ×1
policy ×1
rsa ×1
tfs ×1