Main menu:

Search

 
web
kriegermartin.de

Categories

June 2009
M T W T F S S
« May    
1234567
891011121314
15161718192021
22232425262728
2930  

Archives

Error: Cannot import wsdl:portType

Today I tried to access a WorkflowService hosted in IIS on Windows 7, and got this nice little error message:

Error: Cannot import wsdl:portType
Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.DataContractSerializerMessageContractImporterError: Schema with target namespace ‘http://schemas.microsoft.com/2003/10/Serialization/’ could not be found. XPath to Error Source: //wsdl:definitions[@targetNamespace=’http://tempuri.org’]/wsdl:portType[@name=’IService’]
[… lot more stuff ]
Warning: No code was generated.If you were trying to generate a client, this could be because the metadata documents did not contain any valid contracts or services or because all contracts/services were discovered to exist in /reference assemblies. Verify that you passed all the metadata documents to the tool. Warning: If you would like to generate data contracts from schemas make sure to use the /dataContractOnly option.

Of course the message was completely misleading. It turned out that the IIS Application Pool Identity did not have access rights for c:\windows\temp ! Kent Brown had also found this error after setting an own account for the Application Pool. But it seems that sometimes Windows 7 (RC Build 7100) does not set appropriate default rights.

Comments

Comment from Scott J
Time: 16. September 2009, 20:36

Thanks for giving me a heads up to this red herring! Saved my afternoon!