windows-server-2008

Turn IIS7 HTTP Error Handling Off?

孤者浪人 提交于 2019-11-27 18:08:49
I just got setup on my first Windows Server 2008 / IIS7.5 server for a contest I am participating in. I can't for the life of me figure out how to turn OFF error handling COMPLETELY . The only options I see are: Custom Detailed Detailed Local, custom for remote I want to turn the feature off completely, and I don't see any way to do that. Am I missing something? My Situation: I have a RESTful PHP framework that catches exceptions and emits an HTTP 500 status if the exception has not already been handled. It then puts the specified exception message in the response body and sends it to the

ActiveX component can't create object

淺唱寂寞╮ 提交于 2019-11-27 17:50:58
I have just installed a third party app on my Windows Server 2008 server and I get the ActiveX Component can't create object message when I try to access using a CreateObject in VBScript. It is definitely installed and exists under "Programs and Features". Does anyone have a list of things that I can check to figure out what is going on? I have now tried to register the DLL using regsvr32.exe /i bob.dll as suggested but I get this error: The Module "Bob.dll" was loaded but the entry-point DllRegisterServer was not found. Make sure that "Bob.dll" is valid DLL or OCX file and then try again. I

Browser is not prompting for a client certificate

﹥>﹥吖頭↗ 提交于 2019-11-27 17:32:15
问题 Background: I am updating an internal application to a two-step authentication process. I want to add a client certificate authentication process (via a smart card) on top of a traditional username/password form. The application is written in C#, hosted on IIS7, and targeting Chrome and IE8. Problem: I am having issues with getting the application to prompt the user for a client certificate. I have been debugging the application with the help of Fiddler. When I have a test client certificate

How do I overcome the “The symbolic link cannot be followed because its type is disabled.” error when getting the target of a symbolic link?

浪尽此生 提交于 2019-11-27 17:10:00
Following on from a previous question , I am creating a symbolic link on a Server 2008 from a Vista machine using UNC paths. I can create the link just fine. I can go to the Server 2008 box and double click on the link in explorer to open the target file. What I cannot do though is use FileCreateW to get a handle to the UNC path link (from the Vista box). When I try it, it fails and GetLastError() returns error code 1463 (0x5B7), which is: The symbolic link cannot be followed because its type is disabled. How to enable its "type" in Server 2008 (assuming the error means what it says)?

Batch runs manually but not in scheduled task

亡梦爱人 提交于 2019-11-27 16:11:23
I don't generally write batches , but I currently have a batch that uses forfiles to copy my FLVs from one folder to another. When I run the batch manually it works every time, but from a scheduled task, it throws a (0x1) error. forfiles -p "C:\Program Files\Adobe\Flash Media Server 4.5\applications\name\streams" -m *.flv -s -d -1 -c "cmd /c copy @file ^0x22C:\Program^ Files\Adobe\Flash^ Media^ Server^ 4.5\applications\name\output\" Not sure what syntax the scheduled task doesn't like. Update Under my scheduled task, Actions I have the following: Program/script: name.bat Start in (optional): \

Scheduling a task in Windows Server 2008 R2

荒凉一梦 提交于 2019-11-27 15:44:34
问题 I have scheduled a task to run a SSIS job using the Task Scheduler (TS). It is configured to run as a User who belongs to the Admin group. The security is "Run whether user is logged on or not" is checked "Dont store password" is checked "Run with highest preveilage" is unchecked The scheduled task run ONLY when the user is logged in but when the user logs out the task doest seem to run. I figured "Run whether user is logged on or not" should run the task when the user isnt logged on. What am

File.GetLastWriteTime seems to be returning 'out of date' value

若如初见. 提交于 2019-11-27 15:38:11
I have written a tool to collect log files within a time window specified by the user of the tool. Up until now I was basing the collection of log files by using the File.GetLastWriteTime method on the log files, comparing this to the times the user entered and collecting based on the outcome of these comparisions. Here is a small code snippet: DateTime logFileEnd = File.GetLastWriteTime(matchingActiveLogFile); However I noticed my tool didnt collect some log files I thought it should have done. It seems the DateTime returned by this method was out of date, (there was more recent logging in

Programmatically add IP to Server 2008 firewall rule

大憨熊 提交于 2019-11-27 15:10:03
问题 Anybody know how to programmatically add an IP address to a Server 2008 Windows Firewall with Advanced Security rule? i.e. I've setup a Block Action firewall rule which has some IP addresses listed under the "Remote IP address" section of the Scope. I want to be able to programmatically add (or perhaps remove) IP addresses from this list. Are there .NET objects available to do this? 回答1: The Windows Firewall with Advanced Security Start Page can be found at: http://msdn.microsoft.com/en-us

What are practical limits on the number of FileSystemWatcher instances a server can handle?

半城伤御伤魂 提交于 2019-11-27 11:35:52
问题 I have a windows service that is currently instantiating about a dozen FileSystemWatcher instances to monitor shared folders across the corporate network for files to be processed. I am looking into adding more instances so I'm wondering if anyone here has experience (with production systems) as to what are practical limits on number of FileSystemWatcher instances a production system can reliably handle? Edit: In my case, the InternalBufferSize property is not modified so the

How to set user environment variables in Windows Server 2008 R2 as a normal user?

放肆的年华 提交于 2019-11-27 11:02:54
问题 In older versions of Windows, it was just open the Control Panel, select the System applet, select the Advanced tab, and then hit the Environment variables button. As a normal user, you could edit the "User variables" but not the "System variables". In Windows Server 2008 R2, if I try to hit the Advanced System settings option in the System applet, it prompts for the Administrator password. 回答1: You can also use this direct command line to open the Advanced System Properties: sysdm.cpl Then