Bug 1181 - svcutil Unhandled Exception: System.InvalidOperationException. import type first
Summary: svcutil Unhandled Exception: System.InvalidOperationException. import type first
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: WCF assemblies ()
Version: unspecified
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2011-10-03 04:42 UTC by Arjan Vermunt
Modified: 2011-10-20 11:58 UTC (History)
4 users (show)

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

Command and stack trace of Exception (7.07 KB, text/rtf)
2011-10-03 04:42 UTC, Arjan Vermunt

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 1181 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:

Description Arjan Vermunt 2011-10-03 04:42:59 UTC
Created attachment 554 [details]
Command and stack trace of Exception

When I try to generate the proxy for a wcf service with SvcUtil I get an unhanded exception.

Unhandled Exception: System.InvalidOperationException: schema type 'http://schemas.datacontract.org/2004/07/Piramide.Declaraties.LLBL.EntityClasses:ArrayOfGebruikerEntity' has not been imported yet. Import it first.

The command and the stack trace of the exception is attached. The wcf service wraps a SoapXmlEndpointFactory of a wcf ria service.

When I generate the proxy with SlSvcUtil the code is generated correctly, but only the async methods are generated.
Comment 2 Joseph Hill 2011-10-20 11:58:44 UTC
From an email exchange with Arjan, I did confirm that this proxy was generated with 
svcutil -- monotouch