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)

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


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 563 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEW

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