草庐IT

composite-component

全部标签

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# - 使用 Composition 在 C# 中自动生成 Wrapper 类

这应该很简单,但我找不到任何东西。我在一个程序集中有一个类(一个共享库——它是一组Web服务的代理类)我在另一个程序集(Web项目)中有一个类Proxy程序集中有一个名为“Profile”的类。在Web项目中有一组“使用”配置文件的类。当没有用户登录时,使用GenericProfile。遵循“关注点分离”的原则......代理程序集由其他项目使用,只与Web服务有关。web项目里面只有web的东西但是,现在需要“GenericProfile”——将其视为“GuestUser”。合乎逻辑的做法是构建一个名为IProfile的接口(interface),并使两个类都从它派生。但这会在两个程

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

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

c# - UWP Composition Api 是否支持颜色替换?

我一直在寻找与颜色替换相关的示例,这是一个使用Photoshop的示例,例如,可以将蓝色阴影替换为红色阴影:之前:之后:是否可以使用最新版本的CompositionApi中的CompositionEffects?我看过与HueRotations和TemperatureandTint相关的示例:https://xamlbrewer.wordpress.com/2016/04/08/uwp-composition-effects-hue-rotation/https://xamlbrewer.wordpress.com/2016/04/19/uwp-composition-effects-

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# - 错误 :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# - 警告 : The referenced component 'Microsoft.Office.Core' could not be found

在构建我的项目之一时,我收到以下警告:Warning3Cannotfindwrapperassemblyfortypelibrary"Microsoft.Office.Core".Warning4Thereferencedcomponent'Microsoft.Office.Core'couldnotbefound.奇怪的是,构建没有错误地失败了。上面的警告似乎是问题所在。在我从WindowsUpdate安装了一些Office2007更新后,就开始出现这种情况。在此之前,它构建的一切都很好。有人遇到过同样的问题吗?关于如何在不修改项目的情况下解决此问题的任何想法?

c# - Entity Framework : field of composite key cannot be nullable?

我有一个带有复合键的模型-行是键:publicclassItem{[Key,Column(Order=0)]publicintUserId{get;set;}[Key,Column(Order=1)]publicDateTime?Date{get;set;}}运行下面的代码会抛出异常DbEntityValidationException消息:TheDatefieldisrequired.:varit=newItem{Date=null,UserId=2};m_Entities.Items.Add(it);m_Entities.SaveChanges();//throwsexceptio

javascript - Google Geocoding -- 解析可能返回不同的 address_components

我正在使用GoogleMapsV3api。我正在提交地址搜索以返回正确的地理编码结果,包括地址、机构名称和纬度/经度。我的问题是地理编码器的响应可以采用不同的格式。它始终遵循相同的结构,但某些响应对address_components数据结构使用不同的键。例如,某些搜索结果:establishment->locationnamestreet_number->addressstreetnumberroute->thestreetnamelocality->thecityadministrative_area_level_1->thestatepostal_code->zip/postal