I migrated my WCF services to Prod windows 2003 box and started getting the following error.
Error: Cannot import wsdl:portTypeDetail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.DataContractSerializerMessageContractImporterError: Schema with target namespace 'http://www.odh.ohio.gov/ELR2/contract' could not be found
After initially being perplexed at what could have gone wrong and frantically searching for resolution on google found this blog post.
Resolution to the bug, provide write access on C:\Windows\Temp to the App-Pool user.