While trying to create a client to call a WCF service for this we need to run svcutil file and while executing this command we may recieve the error.
For this When we go to the location of the file. It may show 0 bytes for this exe. So in such case we need to follow below steps to recover the file:
Go to the location where this file is located. As I am working on windows 7 64-bit version. I found svcutil.exe in C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin location.
Right-Click the file -> select restore previous versions. This opens Svcutil properties window which lists all the previous versions of this exe file.
Now select the previous version of this file from this windows -> Then hit the copy button. You can either copy this file in any other directory or the same location. For safe side i copied it in another directory.
Now whenever you want to run this svcutil.exe file. you can navigate to this directory from visual studio command prompt and run it.
For this When we go to the location of the file. It may show 0 bytes for this exe. So in such case we need to follow below steps to recover the file:
Go to the location where this file is located. As I am working on windows 7 64-bit version. I found svcutil.exe in C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin location.
Right-Click the file -> select restore previous versions. This opens Svcutil properties window which lists all the previous versions of this exe file.
Now select the previous version of this file from this windows -> Then hit the copy button. You can either copy this file in any other directory or the same location. For safe side i copied it in another directory.
Now whenever you want to run this svcutil.exe file. you can navigate to this directory from visual studio command prompt and run it.