安装最新的Visual Studio 2015 Update 2后,EF电动工具反向代码工程师选项失败,并显示以下错误消息.
One or more errors occurred while processing template 'Entity.tt'.
error : An exception was thrown while trying to compile the transformation code. The following Exception was thrown:
System.ArgumentException: Empty path name is not legal.
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.IO.File.OpenRead(String path)
at Roslyn.Utilities.FileUtilities.OpenFileStream(String …
Run Code Online (Sandbox Code Playgroud) 我有一个由4个项目组成的解决方案,我很高兴在运行VS 2012的Windows 7计算机上编辑它,将我的代码存储在云中的TFS + Git中.
但是,在家里解决了解决方案后,我无法在家用电脑上获取Visual Studio 2012来打开项目文件.
我在4个项目中的3个中获得了"解决方案加载..."消息和(加载失败).
现在差异正在发挥作用我运行Windows 7 64位,在家里Windows 8.在工作中我运行64位版本的VS2012,在家里32位.
也许这足以搞砸了,也许我已经在我的家用电脑没有的64位实例上引用了一些内容,但除此之外,这些机器都使用VS 2012的Update 3进行修补.
我能做些什么来发现VS在做什么?我可以打开任何跟踪选项吗?我删除了所有内容,将解决方案拉下来无济于事.
有一个尝试获取 OpenId 配置的 Asp.Net Core 2.2.1 Web Api,以便它可以对请求进行身份验证。权威网站恰好是 IdentityServer4。
/.well-known/openid-configuration 看起来正确,api 站点正在运行,不安全的 api 方法工作正常。
在 Kudu 中查看日志,我看到以下错误。似乎是由套接字问题引起的,但我不知道这里出了什么问题。
在我的开发机器上本地一切正常,那么我缺少什么/Azure 需要什么?
System.IO.IOException: IDX20804: Unable to retrieve document from: '[PII is hidden]'. --->
System.Net.Http.HttpRequestException: An attempt was made to access a socket
in a way forbidden by its access permissions --->
Run Code Online (Sandbox Code Playgroud)
完整的错误细节;
2019-01-11 11:07:43.096 +00:00 [Error] Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler: Exception occurred while processing message.
System.InvalidOperationException: IDX20803: Unable to obtain configuration from: '[PII is hidden]'. ---> System.IO.IOException: IDX20804: Unable to retrieve document from: '[PII is hidden]'. …
Run Code Online (Sandbox Code Playgroud)