草庐IT

principal-components

全部标签

Android Studio 卡在 "Downloading Components"

我已经在安装androidstudio,当我想下载sdkmanager等组件时,我被困在这里像这样: 最佳答案 我遇到了完全相同的问题,在反复看到这些非描述性的下载后,我感到很沮丧。在高速互联网上下载也需要很多时间。请稍等,它会完成。 关于AndroidStudio卡在"DownloadingComponents",我们在StackOverflow上找到一个类似的问题: https://stackoverflow.com/questions/47157989/

windows - OleDbException (0x80004005) : Oracle client and networking components were not found. 我该如何解决这个问题?

我想在我的web应用程序中使用oledb连接(msdaora.dll)连接到oracle。我使用:IIS7.564bitwindowsserver2008r2enterprise.64bitoracle11g32bitoracleclientvisualstudio201032bitmsdaora.dllmyaplicationis.aspx我的错误是什么:ServerErrorin'/PPIGanTT'Application.--------------------------------------------------------------------------------

c# - 系统.UnauthorizedAccessException : Creating an instance of the COM component fails with error 80070005 (C#)

我在使用C#.NET命令行应用程序时遇到问题,其主要思想是使用COM对象从其他程序获取数据。当手动执行或作为Node.js服务器中的子进程运行时,它工作正常,但是当整个项目作为Windows服务安装时,C#应用程序响应以下错误:System.UnauthorizedAccessException:CreatinganinstanceoftheCOMcomponentwithCLSID{D64DB4A9-3B26-4D2B-B556-9DA433C54175}fromtheIClassFactoryfailedduetothefollowingerror:80070005Accessis

c# - Base Controller ASP.NET MVC 3 中的这个 Custom Principal 是不是非常低效?

尽管我已经在这里待了一段时间,但这是我关于SO的第一个问题,所以请多多包涵。我正在使用ASP.NETMVC3并且我想创建一个自定义的Principal这样我就可以存储比标准更多的关于当前用户的信息因此不必经常去数据库。这是我追求的相当标准的东西。我们先说电子邮件地址和用户ID。我决定将对象存储在缓存中,因为我知道不建议将其存储在session中。我也不想一直转换User对象,所以我想覆盖Controller中的User对象。所以我可以直接访问User.UserId并得到一些保证。所以我创建了一个这样的自定义主体:publicclassMyPrincipal:IPrincipal{pub

c# - 可以从 WebClient 继承而我的代码不是 "design time component"吗?

我有一段代码是这样的:publicclassNoFollowWebClient:WebClient{protectedoverrideWebRequestGetWebRequest(Uriaddress){varrequest=(HttpWebRequest)base.GetWebRequest(address);request.AllowAutoRedirect=false;returnrequest;}}不过,每当我将它添加到.cs文件时,VisualStudio2012都会以其无穷的智慧将我的C#源文件转换为“设计时组件”。因此,当我现在双击该文件时,我看到的不是我的C#代码,而

c# - 为什么 Visual Studio IDE 有时会初始化“this.components 对象 : and other times not?

我最近注意到VisualStudioDesigner(C#)的一些我不理解的行为,想知道是否有人可以澄清...在我的一些Windows窗体中,设计器生成的代码的第一行是这样的;this.components=newSystem.ComponentModel.Container();在这种情况下,dispose方法在同一个设计器文件中,dispose方法在case“if”条件下放置两个“Dispose”调用,如下所示;protectedoverridevoidDispose(booldisposing){if(disposing&&(components!=null)){componen

c# - Principal Role App 引用的属性必须与 EntityType 的键完全相同

我首先使用EFDB。我做了一个观点。将其映射到EF。现在我得到以下错误:Error2Error111:PropertiesreferredbythePrincipalRoleAppmustbeexactlyidenticaltothekeyoftheEntityTypeMaMDBModel.AppreferredtobythePrincipalRoleintherelationshipconstraintforRelationshipMaMDBModel.FK_AppsData_App.MakesureallthekeypropertiesarespecifiedinthePrinci

c# - 错误 :An unknown error occurred while invoking the service metadata component. 无法生成服务引用

当尝试使用.netcore2.1rc1为WCF添加服务引用时,我遇到以下错误:Error:Anunknownerroroccurredwhileinvokingtheservicemetadatacomponent.Failedtogenerateservicereference我已经检查过,唯一的安全措施是传输,没有消息安全措施。日志如下:[05/24/201812:28:28],59,Importingwebservicemetadata...[05/24/201812:28:28],27,Numberofserviceendpointsfound:2[05/24/201812:2

c# - 如何使用 Principal Context 连接到 Active Directory?

我在这方面已经有一段时间了,而且我总是得到:System.DirectoryServices.AccountManagement.PrincipalServerDownException我认为这意味着我的连接设置(连接字符串)是错误的。当我在ActiveDirectory所在的计算机上的cmd上写入“dsqueryserver”时,我得到:"CN=DCESTAGIO,CN=SERVERS,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=estagioit,DC=local"我已尝试通过以下方式进行以下连接:1:Princi

c# - System.Security.Principal.WindowsIdentity 的这种使用是否合理安全?

是System.Security.Principal.WindowsIdentity合理地避免被黑客攻击,这样我从Thread.CurrentPrincipal得到的一个实例的Identity或WindowsIdentity.GetCurrent()其中true为IsAuthenticated提供了我的程序集虚假身份信息?当然,没有什么是完全防篡改的,但考虑到Microsoft对.Net的promise和依赖,我预计像这样的关键API将被严格锁定并且难以篡改。这对我来说是一个有效的假设吗?我的目标是在我的程序集中提供合理的最佳实践SSO。如果Windows本身受到损害,那是我无法控制的