windows-server-2012-r2

How to fix Uncaught exception 'ReflectionException' with message 'Class log does not exist'?

亡梦爱人 提交于 2020-01-04 05:17:12
问题 I am facing an issue with composer on Windows Server 20012 R2 . I am trying to deploy a website and every time I run composer install or composer update I get the following: $ composer install Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Nothing to install or update Generating autoload files > Illuminate\Foundation\ComposerScripts::postInstall > php artisan optimize Script php artisan optimize handling the post-install

Inno Setup CreateOleObject('IISNamespace') throws exception on Windows Server 2012

怎甘沉沦 提交于 2019-12-30 10:38:13
问题 I am trying to create IISSetup in the Windows Server 2012 (IIS version 8.5) through the below install script but throws error "Invalid class string". code: var IIS, WebSite, WebServer, WebRoot, VDir: Variant; ErrorCode: Integer; begin { Create the main IIS COM Automation object } try IIS := CreateOleObject('IISNamespace'); except RaiseException( 'Please install Microsoft IIS first.'#13#13'(Error ''' + GetExceptionMessage + ''' occurred)'); end; end; 回答1: I had the same issue on a Windows

Inno Setup CreateOleObject('IISNamespace') throws exception on Windows Server 2012

我是研究僧i 提交于 2019-12-30 10:37:35
问题 I am trying to create IISSetup in the Windows Server 2012 (IIS version 8.5) through the below install script but throws error "Invalid class string". code: var IIS, WebSite, WebServer, WebRoot, VDir: Variant; ErrorCode: Integer; begin { Create the main IIS COM Automation object } try IIS := CreateOleObject('IISNamespace'); except RaiseException( 'Please install Microsoft IIS first.'#13#13'(Error ''' + GetExceptionMessage + ''' occurred)'); end; end; 回答1: I had the same issue on a Windows

Generate Self-signed certificate with Root CA Signer

最后都变了- 提交于 2019-12-30 00:21:13
问题 Scenario: I am using PowerShell on Windows Server 2012r2 to generate a Root certificate and want to use that to sign a newly created Intermediate and Web certificate in dynamic generated (and destroyed) dev/test environments. The scripts are deployed remotely, and the intent is to keep it pure PowerShell if possible. In Windows 10/2016 this is relatively easy, after generating the Root certificate: $Cert = New-SelfSignedCertificate -Signer $Root -Subject "CN=$Subject" I've generated the Root

PowerShell internet explorer automation error server 2012

泪湿孤枕 提交于 2019-12-24 22:55:29
问题 I have a PowerShell script that logs into one of our sites, clicks some links then closes. Basically just to monitor and make sure everything works ok! below is a snippet from the top of the script. $ie = new-object -com "InternetExplorer.Application" $ie.visible = $true $ie.navigate($url) while( $ie.busy){Start-Sleep 1} $doc = $ie.document $continue = $doc.getElementByID("overridelink") $continue.click() while( $ie.busy){Start-Sleep 1} Basically this section opens IE and clicks continue

Does PowerShell have a limit that causes the error Not enough quota is available to process this command?

孤人 提交于 2019-12-24 17:04:22
问题 We have a deployment script that is failing with the error message: Not enough quota is available to process this command. At the point where it fails it is attempting to start an executable asynchronously after having already started the same executable 10 times. So number 11 fails. A total of 17 need to be started. This script is not written in PowerShell but we use a remote PowerShell session to launch it and this error only happens when we run the script via PowerShell remoting. If we run

Does PowerShell have a limit that causes the error Not enough quota is available to process this command?

喜夏-厌秋 提交于 2019-12-24 17:03:06
问题 We have a deployment script that is failing with the error message: Not enough quota is available to process this command. At the point where it fails it is attempting to start an executable asynchronously after having already started the same executable 10 times. So number 11 fails. A total of 17 need to be started. This script is not written in PowerShell but we use a remote PowerShell session to launch it and this error only happens when we run the script via PowerShell remoting. If we run

VS2015 build error: Cannot add the specified assembly to the global assembly cache

情到浓时终转凉″ 提交于 2019-12-24 15:30:55
问题 I'm trying to deploy GAC into the sharepoint. Deployment fails with this error message: Error occured in deployment step 'Add Solution': Error: Cannot add the specified assembly to the global assembly cache: Microsoft.Practices.Sharepoint.Common.dll The problem is that mentioned .dll inside C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.Practices.SharePoint.Common\v4.0_2.0.0.0__ef4330804b3c4129\ folder is somehow locked by another .dll called Microsoft.Alm.Shared.Remoting

SMTP: cannot send email from windows server 2012

风格不统一 提交于 2019-12-24 09:39:40
问题 I have strictly followed this tutorial in order to configure SMTP server on Windows Server 2012 R2 by usng IIS 6. In fact, if I create a correct formatted file email.txt inside C:\inetpub\mailroot\Pickup with From, To and Subject fields, it is dispatched immediately to the destination email address with the correct sender. Then, I have a framework generating my ASP NET C# web application ad when it tried to send an email with: IDMailer v_M1 = null; v_M1 = (IDMailer)new IDMailer(); v_M1

Apache on Windows cant find php extensions

那年仲夏 提交于 2019-12-24 07:58:57
问题 I have Apache 2.4 and php installed on Windows Server 2012. Im trying to load the php_ldap.dll extension. Here's what Ive done: In php.ini I set the following: extension_dir = "C:\php\ext" extension=php_ldap.dll Then, I made sure the dll was available at that path, yep, it's there: phpinfo shows that I am editing the correct php.ini and the extension_dir is updated. However, when I start Apache, php_ldap.dll is not loaded. The Apache logs show this warning: PHP Warning: PHP Startup: Unable to