Ambiguous error message from NetCFSvcUtil.exe

While I was trying to generate a WCF proxy client code for a windows mobile application that uses WS-I Basic Profile (basicHttpBinding), I was continuously receiving the following ambiguous error message from NetCFSvcUtil.exe

Error: An error occurred in the tool.

Error: Error in the application

NetCFSvcUtil error

 

 

 

 

 

 

 

 

After googling for hours and reading many blog posts from the WCF team blogs, I got nothing. Then I went to the final approach "Trial and Error".

After many trials I found that the problem is that the I've some operations that shares the same message contract as an input parameter, you will have the same error also if you have more than one operation that returns the same message contract.


The strange about this issue is that the service model utility for the desktop clients "SvcUtil.exe" generate the client code without any problems and after doing a lot of search I couldn't find any document or article from Microsoft  that points to this issue, or state that difference between the service modeling utilities of desktop clients and mobile clients

Then I decided to write this post hoping it can save some time for anyone who had the same problem

Bye

Published Saturday, June 21, 2008 5:31 PM by sameh_samir

Comments

# re: Ambiguous error message from NetCFSvcUtil.exe

Wednesday, March 04, 2009 7:53 PM by Matt Davis

I had the exact same problem- you just saved me ton of troubleshooting. Thanks!

# re: Ambiguous error message from NetCFSvcUtil.exe

Wednesday, May 06, 2009 3:59 AM by me

same error :'(

# re: Ambiguous error message from NetCFSvcUtil.exe

Saturday, May 09, 2009 9:09 AM by sameh_samir

@Matt Davis: u r welcome

# re: Ambiguous error message from NetCFSvcUtil.exe

Tuesday, May 12, 2009 12:10 PM by Roygar

Hi, Hope you can help me.. I'm getting the same error message, but its happening with services that worked perfectly with the tool last week... I haven't change anything... the tool doesnt have a log or something??

# re: Ambiguous error message from NetCFSvcUtil.exe

Tuesday, May 12, 2009 3:41 PM by sameh_samir

@Roygar: u can check the windows application log, right click "My Computer", then choose "Manage...", then expand "Event Viewer" --> "Windows Log" --> "Application".

try to do another check about the shared service contracts, then if u got nothing try to generate the proxy using the desktop utility and tells me what u got

I hope this helps

# re: Ambiguous error message from NetCFSvcUtil.exe

Tuesday, June 09, 2009 8:54 AM by Tasos

I have the same problem and I have to admit that I didn't really understand the solution.

Could you please , if it's possible to describe step by step what did you do to solve this problem?

# re: Ambiguous error message from NetCFSvcUtil.exe

Tuesday, June 09, 2009 9:58 AM by Albert
I am not understanding how to solve it, Could you please explain in more detail. Thank you

# re: Ambiguous error message from NetCFSvcUtil.exe

Wednesday, June 17, 2009 8:27 PM by Nelson Morais
Same problem. It was working fine a few weeks ago, but now I'm having the problem reported on this post. I've recently installed Windows Vista SP2 and VS2010 Beta, can this be the cause? Meanwhile, has anyone been able to fix the problem ?

# re: Ambiguous error message from NetCFSvcUtil.exe

Thursday, June 18, 2009 3:18 AM by sameh_samir

@Tasos, Albert, and Nelson Morais:

I'll prepare a detailed post with Before / After example for this problem today or maybe tomorrow at most

# re: Ambiguous error message from NetCFSvcUtil.exe

Thursday, June 18, 2009 5:19 AM by Craig Tadlock
Im having this same error and can not figure it out. I created a new wcf service web application, ran the tool and got this error. Ive tried removing almost all the code, including changing the service method to void F(). I event tried to decompile netcfsvcutil, but he decompiler fails. If I had the source to the tool I could figure this out myself. It works fine with svcutil. For reference Im using IIS7. Thoughts anyone? CT

# re: Ambiguous error message from NetCFSvcUtil.exe

Thursday, June 18, 2009 5:27 AM by Craig Tadlock
Here is the service web application code Im using; it's the default from the "add new wcf web application" project wizard. http://www.tadlockenterprises.com/WcfService1.rar CT

# re: Ambiguous error message from NetCFSvcUtil.exe

Thursday, June 18, 2009 6:17 AM by sameh_samir

@Craig Tadlock: I've downloaded the service and I'll investigate it when arrive home, I'm having a really crowded day.

# re: Ambiguous error message from NetCFSvcUtil.exe

Thursday, June 18, 2009 3:15 PM by Craig Tadlock
Well I got mine working! Im convinced there is a bug in the tool. Here's what I did... (1) Generate the metadata files using svcutil... svcutil.exe c:\temp\service.dll This will generate two files; xxx.wsdl and xxx.xsd (2) Generate the cs files using netcfsvcutil... netcfsvcuril xxx.wsdl xxx.xsd This should generate the cs files you need. CT

# // do something here » Blog Archive » NetCFSvcUtil and Windows 7

Pingback from  // do something here  » Blog Archive   » NetCFSvcUtil and Windows 7

# re: Ambiguous error message from NetCFSvcUtil.exe

Monday, July 13, 2009 7:59 PM by Adam
I tried the suggested workaround from Craig but it did not work for me. Does any one know when Microsoft might issue a fix for this?

# re: Ambiguous error message from NetCFSvcUtil.exe

Sunday, August 16, 2009 8:05 AM by Michel

look here

blogs.msdn.com/.../just-released-patch-to-make-netcfsvcutil-exe-work-on-windows-7-and-other-operating-systems.aspx

# re: Ambiguous error message from NetCFSvcUtil.exe

Thursday, September 10, 2009 9:07 AM by Jan

It's a bug in the tool that occurs under Vista sp2, Win 2008 and Windows 7. A fix is available at:

download.microsoft.com/.../NetCFSvcUtil.exe

# re: Ambiguous error message from NetCFSvcUtil.exe

Wednesday, August 11, 2010 2:25 AM by shivani

getting same error.. why there is no fix from microsoft ??

why they have not checked compatebility with previous release means compatatebility of power toy with new window 7 and vista???

# re: Ambiguous error message from NetCFSvcUtil.exe

Thursday, August 19, 2010 7:44 AM by Jon E

shivani there is a fix - read the post one up from yours!

Nice one for the fix Jan and for the post Sameh

# re: Ambiguous error message from NetCFSvcUtil.exe

Sunday, March 27, 2011 3:44 AM by blogs.windowsclient.net

Ambiguous error message from netcfsvcutil exe.. Keen :)

Leave a Comment

(required) 
(required) 
(optional)
(required) 
Page view counter