Bug 563 - Reference.cs file generated when referencing WCF service does not build
Summary: Reference.cs file generated when referencing WCF service does not build
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: WCF assemblies (show other bugs)
Version: unspecified
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2011-08-31 07:31 UTC by René Ruppert
Modified: 2013-09-03 05:14 UTC (History)
5 users (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Incorrect Reference.cs demonstration (18.24 KB, application/x-zip-compressed)
2011-08-31 07:31 UTC, René Ruppert
Details

Description René Ruppert 2011-08-31 07:31:05 UTC
Created attachment 221 [details]
Incorrect Reference.cs demonstration

Create a Mono Console project and reference our test webservice.
If you try to build you get errors:

/Users/Rene/Documents/Develop/WcfTestMonoGenerated/WcfTest/Service References/NonBuildingReference/Reference.cs(9,9): Error CS0246: The type or namespace name `GetUsersResponse' could not be found. Are you missing a using directive or an assembly reference? (CS0246) (WcfTest)

/Users/Rene/Documents/Develop/WcfTestMonoGenerated/WcfTest/Service References/NonBuildingReference/Reference.cs(9,9): Error CS0246: The type or namespace name `GetUserDataResponse' could not be found. Are you missing a using directive or an assembly reference? (CS0246) (WcfTest)

When replacing the content of Reference.cs with the code that gets generated by Visual Studio 2008 when referencing the same service, the project builds and the web service can be used.

Attached find a Monodevelop 2.6 demo project that does not build because of the issue described above.
The project also contains the Reference.cs code as it gets genereated by Visual Studio.

Thanks!
Comment 1 Sebastien Pouliot 2011-08-31 14:56:21 UTC
Have you tried to use the Silverlight 2/3/4 svcutil.exe tool (since MonoTouch is close to what Moonlight supports) ? see comments of http://stackoverflow.com/questions/5266204/monotouch-wcf-rest-error-creating-channel

Note You need to log in before you can comment on or make changes to this bug.