Skip to main content

Posts

delete service in windows server 2008/server 2003/xp/ vista

How to delete a service in windows server 2008/server 2003/xp/ vista. Note: There are some services which are system specific and cannot be stopped, Be careful while deleting a service The command to delete the service is "sc delete " The above command executes in DOS prompt.  An error will will come when you execute this command: "[SC] OpenService FAILED 5:" To remove this error and to execute the command in good manner.  When you open the command prompt , run it as administrator and then type : "sc delete " This is how to delete the service Start/Stop the service  You  can also start the service by Control panel-->administrative tools--> Services Right Click on the selected service and start/stop it Ps Note: Before deleting a service in windows server 2008/server 2003/xp/ vista you should confirm the name of service and research in google the effect after you  delete a service. It is difficult to recall the service back...

Exception Cross-thread

Exception:- Cross-thread operation not valid: Control 'treeView' accessed from a thread other than the thread it was created on. I have kept treeview, You can replace it with control of your choice Solution   if (treeView.InvokeRequired)                     {                         this.Invoke((MethodInvoker)delegate()                         {                                                     ...

XSS- (cross site scripting)

To protect yourself from XSS cross site scripting . There are may techniques you can get from the Google search engine. There is an  another way in which you can block the "<"  in the user input so that no one can run the script. You can also filter add a filter or a escape character for the same"<" This will block the

Configure/Install PHP on IIS windows

Step 1 - Download Php from http://www.php.net/downloads.php In order to configure or install PHP on IIS, copy the php.ini file from the php directory to the windows directory. If there are any changes in the "PHP.ini" file.make sure the  copies of "PHP.ini" in windows and PHP folder are synchronized. Step 2 -  Goto IIS , Right click on the default website, select properties Step-3: Click on configuration Button,Goto Mapping Tab, Click on Add button and add the same as given in screenshot Step 4:-  Click on and then Close the IIS. Step 5:- Right Click on My Computer>>Select properties>>advance Tab>>select Environment variables Step 6:- Select Path from system variable and then add the path  to the PHP directory, Add a semicolon and then paste the path in variable value Step 7:- Add a New variable called PHPRC and give the variable value as path of php directory Step 8: - Create a file at the root of IIS and name it info.php and writ...