windows-server-2008-r2

Getting the `The application failed to initialize properly`/3221225794 error executing a batch file

馋奶兔 提交于 2019-12-11 12:42:04
问题 There is a scheduled task that is attached to a custom event in the EventLog , it executes the lines below: reconnect.cmd c:\windows\system32\rasphone -f "phone_book.pbk" -d "vpn_connection" net stop my_windows_service net start my_windows_service The task ususally runs normally without errors. But sometimes it returns error The application failed to initialize properly (3221225794) . The task is configured to run under system account so it is supposed to have all required permissions to run

WCF Service Issue on Windows Server 2008 R2

半腔热情 提交于 2019-12-11 11:12:34
问题 I had a WCF Service running without issue on Windows Server 2008 and just moved that service over to a Windows Server 2008 R2 instance. The domain name for the site and service were pointed to the new service and the ASP.NET site works just fine. That stated, the WCF Service keeps throwing Endpoint not found responses when trying to run the wsdl=wsdl10 command. I tried installing the ServiceModelReg in the v3.0/Windows Communication Foundation directory; editing the applicationHost.config

WebRequest fails over TLS 1.2 for Windows Server 2008 R2

人盡茶涼 提交于 2019-12-11 10:17:58
问题 I know similar questions have been asked, but my problem seems to be different, as I have tried many of the solutions I have found on the web. My problem is as following. I'm running a .net 4.5.1 MVC application installed on IIS 7, which makes secure outbound requests to an external server supporting only TLS 1.2. All goes fine when i run the application from Windows 7 host, but on Windows Server 2008 R2 is fils with: "The request was aborted: Could not create SSL/TLS secure channel." In the

error of downloading an application published by VS2010

◇◆丶佛笑我妖孽 提交于 2019-12-11 08:57:57
问题 This question is related to my previous question. I need to publish an application built by C# on VS 2010 (.NET 4.0) to a Windows server 2008 R2. I just followed the instructions ("publish to a file share or path") here: https://msdn.microsoft.com/en-us/library/31kztyey.aspx Now, the UNC path specified in the publish profile can be accessed. It is a location of a remote server. But, in the browser, I can open the link: \\serverName\e$\myPath\publish.htm There is an install button on the

Delete the disabled accounts since 90 days based on custom attribute value

隐身守侯 提交于 2019-12-11 06:23:31
问题 I move automatically all ad disabled accounts in OU adding the date of deactivation in extensionattribute4 with this the script : import-module activedirectory $timer = (Get-Date) $TargetOU = "OU=Disabled Accounts,DC=domain,DC=lan" $DisabledAccounts = get-aduser -filter { enabled -eq $false } -SearchBase "OU=Test,OU=EMEA,DC=domain,DC=lan" ForEach ($account in $DisabledAccounts) { set-aduser -Identity $account.distinguishedName -add @{extensionAttribute4="$timer"} } ForEach ($account in

Debugging an app launched through scheduled tasks

痴心易碎 提交于 2019-12-11 02:32:04
问题 How do I debug an application which is launched via scheduled tasks? I have a simple application which works fine when double clicked to launch, but it doesn't work when launched through scheduled tasks. I know how to debug projects on a local computer, but this application has no issues running on a local computer or on a different computer if launched manually by the user by double clicking the executable file. I need a way to debug the application when it's being launched by scheduled

SMTP client fails to send message on local host, succeeds on remote host

懵懂的女人 提交于 2019-12-10 22:14:01
问题 I have a small tcp server that is used, among other things, to send mails through a SMTP server. The problem is, it works correctly when I run it on my development machine (a remote connection to the smtp server), however when I run the application on the same machine as the SMTP server (Windows Server 2008 R2) I get the following exception: System.Net.Mail.SmtpException: Failure sending mail. ---> System.IO.IOException: Unable to read data from the transport connection: net_io

Boot EBS volume from Bamboo instance

本小妞迷上赌 提交于 2019-12-10 21:16:17
问题 I have an elastic instance that I have configured from within Bamboo to start on Amazon AWS EC2. I have created a volume from a snapshot which contains the OS (Windows Server 2008 R2) with various programs installed. I am able to configure Bamboo to make the volume available as an extra drive using these instructions, but I would like to actually boot this volume. I think this is similar to making a root EBS volume from within AWS, but I am not sure how to do this from within Bamboo. How do I

C# How to maximize chance that particular section of code will have no context switch?

China☆狼群 提交于 2019-12-10 19:37:43
问题 I have time-critical piece of code in my app. I made the thread which runs it Highest priority - that's the most I could do. Is there any suggestions on how to make part of the code run in this thread to be interrupted as few times as possible (less context switch occurred) ? The code is not complicated. I replaced all the method calls with inlined code and I don't use anything of high level (like no LINQ). The most of operations are arithmetic. There is only one comparison of strings (I am

How to call PowerShell in NSIS

半世苍凉 提交于 2019-12-10 16:38:57
问题 I am trying to run PowerShell in NSIS. when I run the NSIS script: !include "x64.nsh" Name "nsExec Test" OutFile "nsExecTest.exe" ShowInstDetails show Section "Output to variable" nsExec::ExecToStack 'powershell -Command "& {Import-Module }" ServerManager' Pop $0 # return value/error/timeout Pop $1 # printed text, up to ${NSIS_MAX_STRLEN} DetailPrint '"ImportModules" printed: $1' DetailPrint " Return value: $0" nsExec::ExecToStack 'powershell -Command "& {Get-WindowsFeature}" Desktop