windows-server-2003

Switch off DEP from command line in Win 2003

北战南征 提交于 2019-12-11 06:42:43
问题 How can I switch off DEP from command line in Win 2003? Or at least for Win XP. A lot of forums explain how switch it off by editing boot.ini, but I need command line solution. 回答1: On Windows XP and Windows Server 2003 you might want to use BOOTCFG to disable DEP, see /noexecute on MSDN. bootcfg /raw "/noexecute=alwaysoff" 回答2: It's not commandline, but perhaps you can use Win + Break , * A *dvanced, * P *erformance Options, Data Execution Prevention tab where you can even manage DEP

TYPE_E_CANTLOADLIBRARY when using a COM object on a separate thread on Windows 2003 x64 only

℡╲_俬逩灬. 提交于 2019-12-11 04:55:15
问题 I have a Windows Forms app (compiled as x86) accessing a COM object. It gives me the following error, only on Windows 2003 x64, when the code is run on a separate thread: Exception during creation of IDoc:Unable to cast COM object of type 'PTISG.COM.TeklogixQueue.QueueClass' to interface type 'PTISG.COM.TeklogixQueue._Queue'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{3CBD7297-27D8-11D6-B75D-00902761DFA4}' failed due to the

How to use TLS 1.2 in Visual Basic 6 (vb6) - REST

点点圈 提交于 2019-12-11 04:24:35
问题 APIGee is migrating the request to TLS 1.2 OS: Windows Server 2003 !!! I have an old application developed in vb6, but it stopped working because of this new migration Here is my code Public Function GetCustomerName(ByVal pCPFCliente As String) As String Dim xmlhttp As MSXML2.ServerXMLHTTP Set xmlhttp = New MSXML2.ServerXMLHTTP xmlhttp.Open "GET", const_URL & "/customer=" & pCPFCliente & "&identification.type=CPF", False xmlhttp.setRequestHeader "Content-Type", "application/json" xmlhttp

How do I secure a folder used to let users upload files?

雨燕双飞 提交于 2019-12-11 03:55:39
问题 I have a folder in my web server used for the users to upload photos using an ASP page. Is it safe enough to give IUSR write permissions to the folder? Must I secure something else? I am afraid of hackers bypassing the ASP page and uploading content directly to the folder. I'm using ASP classic and IIS6 on Windows 2003 Server. The upload is through HTTP, not FTP. Edit: Changing the question for clarity and changing my answers as comments. 回答1: also, I would recommend not to let the users

MySQL Startup Error - Root element missing

巧了我就是萌 提交于 2019-12-11 00:42:19
问题 I have had MySQL installed for about 2 months on Windows Server 2003 R2. On start up we get presented with an error that says "High Severity Error - root element missing" followed by another high severity error that displays "Log file path must be defined before calling the WriteToLog method". Any help with this would be appreciated! 回答1: Try to delete the file %Appdata%\Oracle\MySQL Notifier\settings.config 回答2: I tried deleting settings.config file and other files yet it did not fix the

CruiseControl.Net on Windows Server 2003 x64

倾然丶 夕夏残阳落幕 提交于 2019-12-10 18:15:49
问题 I'm having an issue with CruiseControl.net where the web dashboard just won't work in IIS. I have tried switching ASP.Net between 64 and 32 bit modes and reinstalling cruise control, but nothing seems to work. Has anyone else had issues with CruiseControl.Net on 64 bit platforms? Cheers, Jamie [Edit] Thought I should clarify, I am getting a 404 error when I try access the website. I am using the correct address because it asks for authentication. The .aspx handler is working because I don't

Installing PHP 5 on Windows Server 2003 - %1 is not a valid Win32 application

▼魔方 西西 提交于 2019-12-10 13:29:29
问题 I am trying to install PHP 5 on a Windows Server 2003 environment with IIS 6 After installing PHP, and making the necessary changes in IIS, I get the following error %1 is not a valid Win32 application. The server is not 64bit, it is 32bit. I have added the FastCGI handler in Web Service Extensions, I have added the PHP handler in Web Service Extensions, I have also gone to "Web Sites Properties" and clicked on Configuration: and set the appropriate mappings, I've installed the reditrubition

Add enabled Computer to Active Directory OU

半城伤御伤魂 提交于 2019-12-10 10:29:57
问题 I am trying to programmatically add a computer to the Active Directory of my company. I was searching the internet for so long now, but i couldn't find a solution. My code: DirectoryEntry dirEntry = new DirectoryEntry("LDAP://OU=ou2example,OU=ou1example,DC=site,DC=company,DC=com"); dirEntry.Username = "username"; dirEntry.Password = "password"; DirectoryEntry newComputer = dirEntry.Children.Add("CN=" + ComputerName, "computer"); newComputer.CommitChanges(); My problem: The computer is added

How to restart program automatically if it crashes in Windows?

懵懂的女人 提交于 2019-12-09 15:53:35
问题 How can I start my program automatically if it crashes on windows 2003 server? Sometimes my program just crashes, is there a way in windows or settings that I can set? 回答1: The usual approach is to run what is known as a guardian process. This is a separate process, often a service, that monitors the state of the main process. When the guardian detects that the main service has died, it re-spawns it. To the very best of my knowledge, there is not built in Windows functionality to do this for

Why is IIS not serving aspx pages?

早过忘川 提交于 2019-12-09 10:08:47
问题 I'm deploying an ASP.NET application to Windows Server 2003 under IIS IIS is serving html pages fine but I get a page not found when I try and serve IIS pages 回答1: You may need to "register" IIS for ASP.NET applications. As an administrator, run the command "%systemroot%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis -i". In addition, you may need to convert your web site to an application through the IIS management console. 回答2: By default, IIS has ASP support disabled in IIS6. A server