Monday, December 26, 2016

Delete Windows Service or Remove Windows Service

Some times after installing the windows service we are not able to stop the windows service for that there are two ways they are as follows :- 
  • We can delete or remove the service by using the sc delete command but we must run the command prompt as the administrator 

sc delete <service name>.exe

after deletion you will see the success message but if still the service exist then refresh again and check













  • Other option is that you can remove the service by killing the process id of the service the steps are as follows :-

 sc queryex <service name> 

You will get the service process id [PID] by the above command after that use the below command to kill the PID of the service 

TASKKILL /F /PID <Service PID>   



 

Thursday, December 22, 2016

Error 1 -1014: Cannot rename directory E:\Test\abc\Setup1\Express\SingleImage to E:\Test\abc\Setup1\Express\SingleImage.Bak.


When you have created the windows service and trying to create the setup file using the install shield feature available in the visual studio. And while building the solution if you face the below error 
  
 Error1 -1014: Cannot rename directory E:\Test\abc\Setup1\Express\SingleImage to E:\Test\abc\Setup1\Express\SingleImage.Bak. 

Solution 

 Close the folder if it is open where the setup file is created and then try to build the solution again that will work.

Wednesday, December 21, 2016

Steps to uninstall windows service.

Open the Developer Command Prompt as administrator and locate to the same folder where the service has been created before


ex:-  E:\Test\WindowsService\bin\Release>
 

·         Then type the following command and press enter

  installutil /u <service name> 

Steps to install the windows service.

First build service in the release mode then copy the path where the service has been created inside the bin under the release folder

ex:- E:\Test\WindowsService\bin\Release 

you will find here the <service name>.exe file  that is your windows service if you are not able to see the <service name>.exe file there then you have to clean and rebuild your solution and then check it again.
·         Then open the Developer Command Prompt as the administrator locate the path  

ex:-  E:\Test\WindowsService\bin\Release>

·         Then type the command installutil.exe <service name> and press enter

Thursday, December 8, 2016

Excel giving error (Memory space not available) in the asp.net application



 open the run window by pressing Ctrl + r and type the command dcomcnfg. 













Then follow the below steps : -
1. Expand the component services & select my computer then expand the my computer and select the DCOM Config. 

2. Then in the right side search for the Microsoft Excel Application and then right click select the properties. 

 















3. Under the identity tab. 

 





















4. Which user account do you want to use to run this application ?. Select  the interactive user and click apply
 

Git Commands

Git Version   To check the git version Git -v       Git Clone To clone the repository, use the following command: Git clone [u...