windows-server-2008-r2

how to set timer resolution from C# to 1 ms?

戏子无情 提交于 2019-11-26 11:32:49
问题 I\'ve used this tool and noticed that my Windows Server 2008 R2 Standard has a 15 ms resolution while Windows 8 has a 1 ms resolution timer. I would prefer to set the Timer Resolution to 1 ms on Windows Server 2008 R2 because I\'m running low-latency software on it. I\'ve found this msdn article, but it doesn\'t explain how to change the Timer resolution from a C# program. How do I do that? 回答1: You can try this: public static class WinApi { /// <summary>TimeBeginPeriod(). See the Windows API

How do I run a Play Framework 2.0 application as a Windows service?

梦想的初衷 提交于 2019-11-26 10:17:49
问题 I have a Play Framework 2.0 application that I want to deploy (production) on Windows Server 2008 R2. How do I get it to run as a service? 回答1: This worked for me on Windows 7: Create folder C:\my_app Go to your Play! app folder in command line and type play dist Copy generated "something-SNAPSHOT" folder to C:\my_app Download YAJSW and extract to C:\my_app In C:\my_app\something-SNAPSHOT\ make a new file start.bat and fill it with command like this: java -cp "C:\my_app\something-SNAPSHOT\lib

TLS 1.2 in .NET Framework 4.0

混江龙づ霸主 提交于 2019-11-26 08:58:11
问题 I have a Windows server 2008 R2 server running a dozen .NET Framework 4.0 WebForms applications, and I need to disable TLS 1.0 and lower. When I do that, all secure connections fail and I was forced to re-enable TLS 1.0. Is there any way to use TLS 1.2 in a framework 4.0 environment? Perhaps I am missing something? Also, due to limitations of the version CMS we are using, we cannot upgrade the Framework at this time. 回答1: The only way I have found to change this is directly on the code : at

Running PowerShell in Task Scheduler

随声附和 提交于 2019-11-26 02:38:55
问题 I am using PowerShell for downloading data from email. I want to run this process by PowerShell. When I run script like this: D:\\script.ps1 in powershell.exe it works fine. When I schedule it in Task Scheduler nothing happens. I tried it to Set it like Program/script: powershell Powershell.exe powershell.exe Add arguments: -executionpolicy bypass -file D:\\script.ps1 -file D:\\script.ps1 -file \"D:\\script.ps1\" And nothing works. I\'m using Windows 2008 R2. 回答1: Troubleshooting scheduled

IIS AppPoolIdentity and file system write access permissions

帅比萌擦擦* 提交于 2019-11-25 23:47:49
问题 Here\'s an issue with IIS 7.5 and ASP.NET that I\'ve been researching and getting nowhere with. Any help would be greatly appreciated. My question is: using ASP.NET in IIS 7.5, how does IIS and/or the operating system allow the web application to write to a folder like C:\\dump when running under full trust? How is it that I don\'t have to explicitly add write access for the application pool user (in this case ApplicationPoolIdentity )? This much I know: In IIS 7.5, the default Identity for

PowerShell says “execution of scripts is disabled on this system.”

自作多情 提交于 2019-11-25 22:45:42
问题 I am trying to run a cmd file that calls a powershell script from cmd.exe , and I am getting the below error: Management_Install.ps1 cannot be loaded because the execution of scripts is disabled on this system. I have run Set-ExecutionPolicy -ExecutionPolicy Unrestricted and when I run Get-ExecutionPolicy from powershell, I get Unrestricted back. PS C:\\Users\\Administrator\\> Get-ExecutionPolicy Unrestricted C:\\Projects\\Microsoft.Practices.ESB\\Source\\Samples\\Management Portal\\Install\