windows-server-2008-r2

PHPMailer loads a while, then gives 500 - Internal server error

浪子不回头ぞ 提交于 2020-02-21 10:57:30
问题 I am trying to setup a php page to automatically send a verification email. I would like to use the gmail smtp servers, and everywhere I've looked suggests to use PHPMailer. I installed it and used the following example code: ini_set('display_errors', 1); error_reporting(E_ALL); require_once ("incl\PHPMailer\PHPMailerAutoload.php"); $mail = new PHPMailer(); $mail->IsSMTP(); $mail->SMTPAuth = true; $mail->SMTPSecure = "tls"; $mail->Host = "smtp.gmail.com"; $mail->Port = 587; $mail->Username =

PHPMailer loads a while, then gives 500 - Internal server error

妖精的绣舞 提交于 2020-02-21 10:57:29
问题 I am trying to setup a php page to automatically send a verification email. I would like to use the gmail smtp servers, and everywhere I've looked suggests to use PHPMailer. I installed it and used the following example code: ini_set('display_errors', 1); error_reporting(E_ALL); require_once ("incl\PHPMailer\PHPMailerAutoload.php"); $mail = new PHPMailer(); $mail->IsSMTP(); $mail->SMTPAuth = true; $mail->SMTPSecure = "tls"; $mail->Host = "smtp.gmail.com"; $mail->Port = 587; $mail->Username =

Windows could not start service on Win Server 2008 R2 SP1 (Error 1053)

折月煮酒 提交于 2020-02-20 06:49:41
问题 This issue seems to be widely discussed, but I have problems with finding the solution in my particular case. My service is set up to be running under Local System account. On my first machine with Windows 7 SP1 (64-bit) installed, everything works as expected. But, just after I try to start the service on my second machine with Windows Server 2008 R2 SP1 (64-bit) , not even a second passes, and I'm facing this annoying error: Windows could not start the ProService service on Local Computer

Calling dism.exe from System.Diagnostics.Process Fails

爷,独闯天下 提交于 2020-02-11 13:25:46
问题 For enabling Microsoft-Hyper-V and Microsoft-Hyper-V-Management in Windows 2008 R2 Server(64bit), I'm calling dism.exe as a process. The command I've used is Dism.exe /online /Get-FeatureInfo /FeatureName:Microsoft-Hyper-V Dism.exe /online /Get-FeatureInfo /FeatureName:Microsoft-Hyper-V-Management-Clients This works fine when I execute this from the command line but it fails when I try to execute it through my code. I've tried the 64bit version of Dism.exe under the C:\Windows\SysWoW64 folder

Calling dism.exe from System.Diagnostics.Process Fails

佐手、 提交于 2020-02-11 13:21:38
问题 For enabling Microsoft-Hyper-V and Microsoft-Hyper-V-Management in Windows 2008 R2 Server(64bit), I'm calling dism.exe as a process. The command I've used is Dism.exe /online /Get-FeatureInfo /FeatureName:Microsoft-Hyper-V Dism.exe /online /Get-FeatureInfo /FeatureName:Microsoft-Hyper-V-Management-Clients This works fine when I execute this from the command line but it fails when I try to execute it through my code. I've tried the 64bit version of Dism.exe under the C:\Windows\SysWoW64 folder

Calling dism.exe from System.Diagnostics.Process Fails

你说的曾经没有我的故事 提交于 2020-02-11 13:19:43
问题 For enabling Microsoft-Hyper-V and Microsoft-Hyper-V-Management in Windows 2008 R2 Server(64bit), I'm calling dism.exe as a process. The command I've used is Dism.exe /online /Get-FeatureInfo /FeatureName:Microsoft-Hyper-V Dism.exe /online /Get-FeatureInfo /FeatureName:Microsoft-Hyper-V-Management-Clients This works fine when I execute this from the command line but it fails when I try to execute it through my code. I've tried the 64bit version of Dism.exe under the C:\Windows\SysWoW64 folder

Programmatically attaching a VHD to a remote Hyper-V VM

大兔子大兔子 提交于 2020-01-21 08:10:42
问题 Using Hyper-V Manager, I can connect to a remote VM host, go to the settings of a VM, and add an existing .VHD file as a new hard disk. If the VM host is running Server 2008 R2, and the disk is being attached to a SCSI controller, I can even do this while the VM is running (see What's new in Hyper-V R2). Doing this manually, everything works great. The trouble is, now I want to automate it so I can attach different VHDs on-the-fly during some automated tests. I already have C# code that

Azure Hosted Service Bus : “The X.509 certificate CN=servicebus.windows.net is not in the trusted people store.”

家住魔仙堡 提交于 2020-01-19 06:16:25
问题 Using Azure SDK 2.3 on my vs2013 development VM I can consume Service Bus queues hosted in Azure painlessly. However, on Windows Server 2008 R2 Standard SP1, it looks like Windows can not trust the involved certificates and an exception is thrown. The line that throws : // Send the message await queueclient.SendAsync(message); Exception message : The X.509 certificate CN=servicebus.windows.net is not in the trusted people store. The X.509 certificate CN=servicebus.windows.net chain building

Bamboo SCP plug-in: how to find directory

南笙酒味 提交于 2020-01-14 07:50:10
问题 I am trying to upload a file to a remote server using the SCP task. I have OpenSSH configured on the remote server in question, and I am using an Amazon EC2 instance running Windows Server 2008 R2 with Cygwin to run the Bamboo build server. My question is regarding finding the directory I wish to use. I want to upload the entire contents of C:\doc using SCP. The documentation notes that I must use the local path relative to the Bamboo working directory rather than an absolute directory name.

Stop sync windows 2008 r2 clock

不羁岁月 提交于 2020-01-13 06:22:08
问题 I need to stop the sync from a windows server 2008 r2 from sync. Already stop the windows time service, but it sync in 2 seconds. how can i delay 1 day in the clock and dont sync ? 回答1: TO do it, i have to stop this two services Hyper-V Time Synchronization Service Windows Time 回答2: temporarely stopping the service: net stop w32time unregistering the service: W32tm /unregister 回答3: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1318 If running a