Skip to main content

svcutil.exe is not a valid win32 application

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.

Popular posts from this blog

Creating package in Oracle Database using Toad For Oracle

What are Packages in Oracle Database A package is  a group   of procedures, functions,  variables   and  SQL statements   created as a single unit. It is used to store together related objects. A package has two parts, Package  Specification  and Package Body.

Resolving 'Setup Account Privileges' error while installing SQL Server

A new installation of Microsoft SQL Server 2012 or Microsoft SQL Server 2008 R2 fails You see the following error message when you try to install a new instance of SQL Server 2012 or SQL Server 2008 R2: Rule "Setup account privileges" failed.

Creating Oracle stored Procedures using TOAD for Oracle

In a database management system, a  stored procedure  is a set of Structured Query Language (SQL) statements with an assigned name that's stored in the database in compiled form so that it can be shared by a number of programs. The use of  stored procedures  can be helpful in controlling  access to data, preserving  data integrity  and  improving  productivity.