草庐IT

yii-components

全部标签

c# - 修复 MSI 卸载失败导致错误 2908 和 "UNKNOWN\Components"oprhaned 注册表项的答案

MSI软件包卸载失败导致进一步安装尝试在MSI日志中返回错误2908(msiexec返回1603)的问题出现在很多不同的论坛中,所以我只想给出我的解决方案,因为我们已经出现了多年来,我时不时地看到它的程序化解决方案。一般原因是MSI卸载程序在SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components下的LOCALMACHINE配置单元的注册表中创建了“孤立键”典型的MSIEXEC日志错误如下所示:MSI(s)(2C:0C)[14:52:21:490]:注意:1:14012:UNKNOW

windows - Yii2 REST API IIS 对象移动

我正在使用Yii2REST和ActiveController创建一个newPessoa(),在Apache上工作正常,但在IIS8上发生错误。有人知道IIS中的任何配置吗?REQUESTRequestURL:http://10.192.1.145/api/pessoaRequestMethod:POSTStatusCode:201CreatedRemoteAddress:10.192.1.145ReferrerPolicy:no-referrer-when-downgradeRESPONSEDocumentMovedObjectMovedThisdocumentmaybefoundhe

php - 使用 phar 打包和部署 Yii2 Advance 应用程序

通过引用this这个链接我已经成功打包了我的简单PHP应用程序。现在我想打包(创建.phar文件)我的整个Yii2Advance应用程序以将其部署到服务器上。我已按照上述链接中给出的所有步骤进行操作,但是当我运行它时出现此错误:Warning:require(phar://D:/www/myphartest.phar/../../vendor/autoload.php):failedtoopenstream:pharerror:"vendor/autoload.php"isnotafileinphar"D:/www/myphartest.phar"inphar://D:/www/myp

php - 在 Window XAMPP 中的本地系统中设置 Yii2 项目出现错误

我正在XAMPP窗口中的本地系统中设置Yii2项目,但出现错误:Declarationofcommon\components\Request::validateCsrfToken()shouldbecompatiblewithyii\web\Request::validateCsrfToken($clientSuppliedToken=NULL)但是代码在Ubuntu服务器上运行良好。这是我的validateCsrfToken()方法:publicfunctionvalidateCsrfToken(){if($this->enableCsrfValidation&&in_array(Y

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# - 可以从 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# - 错误 :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