Problem adding a WebService in VS2010

So, I was using Visual Studio 2010 the other day to create a new web-service, when I was presented with the following error message…

Could not find file ‘c:\Program Files (x86)\ Microsoft Visual Studio 10.0\ Common7\ IDE\ ItemTemplatesCache\ CSharp\ Web\ 1033\\ WebService.asmx’.

Could not find file c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplatesCache\CSharp\Web\1033\\WebService.asmx

I tried adding the web-service a couple of times but every time I pressed the ‘Add’ button it would present the above error.

Add Web Service presents could not find file error

So, I looked at the location stated in the error message and sure enough, there was no WebService.asmx at that location…

Missing webservice.asmx

What I found interesting was that the path contained the word ‘cache’, which to me implied the master/install location containing the missing file would be somewhere else on the computer.

So, I had a quick search and found a WebService.Zip in the folder shown below.

I opened up the zip file – it contained the illusive WebService.asmx – so I copied it into the folder mentioned in the error message and hey-presto, it solved the problem!


So, if you ever get this error message then try copying the file from the master/install zip file and see if it fixes your problem.  If it does then let me know!


One thought on “Problem adding a WebService in VS2010

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s