windows-server-2008-r2

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

别等时光非礼了梦想. 提交于 2019-11-27 05:18:43
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? You can try this: public static class WinApi { /// <summary>TimeBeginPeriod(). See the Windows API documentation for details.</summary> [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft

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

烂漫一生 提交于 2019-11-27 02:56:24
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? Mikhail 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\*" play.core.server.NettyServer Save it and launch start.bat. Your play app must start and work as

How do I get a HTML5 Video to work using IE10

青春壹個敷衍的年華 提交于 2019-11-27 02:08:57
I am hoping someone has an idea on what I can do to help me play HTML5 videos on my local intranet. My Web server= Windows Server 2008 R2 Standard 64bit IIS version= IIS7 Test User environment = Windows 7 Enterprise Video plays perfectly using 'Google Chrome' Video fails to play using 'IE10' My html code is as follows: <!DOCTYPE html> <html> <body> <video src="AccReadings.mp4" width="400" height="300" preload controls> </video> </body> </html> My test machine using IE10 does play HTML5Rocks video ' http://craftymind.com/factory/html5video/CanvasVideo.html ' Regards, Chris Adamy Make sure you

WCF .NET 4.5 on Windows Server 2008 R2

女生的网名这么多〃 提交于 2019-11-27 01:57:26
问题 In Windows Server 2008 R2, I cannot activate WCF Http/Tcp Activation windows features for .net 4.5 from Server Manager Server manager in Windows Server 2008 R2 does not support .net 4.5, even though .net 4.5 can be installed and used in IIS in Windows Server 2008 R2. I can activate in my local Windows 8, using Turn Windows feature on/off window. The same Turn Windows feature on/off window link in Windows Server 2008 takes you to Server Manager Powershell also does not list it on Server 2008.

ASP.net Getting the error “Access to the path is denied.” while trying to upload files to my Windows Server 2008 R2 Web server

妖精的绣舞 提交于 2019-11-27 00:19:20
I have an asp.net webapplication that uploads files to a specific folder on the Web server. locally everything works fine, but when I deploy the application to the Webserver, I begin getting the error "Access to the path "D:\Attachments\myfile.doc" is denied". I gave the "IIS AppPool" user that the application is running under full permission on the folder. I even gave "Everyone" full permissions, but with the same error. I added the folder to the Exceptions list of the Antivirus, but with the same result. I am begining to suspect that maybe Windows Server 2008 R2 needs a trick for my upload

Impersonate Domain User with Integrated Pipeline

浪尽此生 提交于 2019-11-26 22:34:36
问题 In an local Intranet environment, are we doomed to use "Classic" pipeline mode in our App Pool if we want to use Impersonate our Windows domain users, or is there a new way to declaratively "run as" them (so-to-speak)? My goal is to use Windows Authentication for local web applications on my Intranet so users can authenticate and run apps under their active directory account (principle). Every time I try this (Using the NetworkService identity of course), I get this error: 回答1: I wrote a

TLS 1.2 in .NET Framework 4.0

ⅰ亾dé卋堺 提交于 2019-11-26 21:28:32
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. Mike The only way I have found to change this is directly on the code : at the very beginning of your app you set ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12

IIS7 Accessing Network Share

大城市里の小女人 提交于 2019-11-26 19:29:51
问题 I am running IIS 7 on Windows Server 2008 R2 with PHP 5.4. One of my PHP scripts is trying to access a file on a protected network share using a UNC path. How can I change the IIS service account to an account that has permission to access the share? This is really easy to do on Apache HTTP server (you just change it), but it's not clear how to do with IIS. What can I do? Update: I was able to get things working using the "Connect As" option in the "Basic Settings" of my website and then

iFrame parser error after upgrading to .NET 4.5

孤街醉人 提交于 2019-11-26 15:50:46
问题 We have recently upgraded all of our WebForms projects to .NET 4.5, and encountered a parser issue when loading pages with an iFrame element. We have corrected this by converting of the iFrame from HtmlGenericControl to HtmlIframe . This has corrected all of the parser errors when we run our code locally. When we deploy the app, we get the following error message: Parser Error Message: The base class includes the field 'frame', but its type (System.Web.UI.HtmlControls.HtmlIframe) is not

ASP.net Getting the error “Access to the path is denied.” while trying to upload files to my Windows Server 2008 R2 Web server

巧了我就是萌 提交于 2019-11-26 12:22:39
问题 I have an asp.net webapplication that uploads files to a specific folder on the Web server. locally everything works fine, but when I deploy the application to the Webserver, I begin getting the error \"Access to the path \"D:\\Attachments\\myfile.doc\" is denied\". I gave the \"IIS AppPool\" user that the application is running under full permission on the folder. I even gave \"Everyone\" full permissions, but with the same error. I added the folder to the Exceptions list of the Antivirus,