Avodah
asked on
Help determining resolution to exception
The following error occurs whenever the website is being built. There are no exceptions / errors when adding or updating the WCF service. Does any have any idea or even how to begin resolving this error.
Error 3 Reference.svcmap: Failed to generate code for the service reference 'DataService'. 'http://www.xxx.com/DataService.svc/mex': The type initializer for 'System.ServiceModel.Diagn osticUtili ty' threw an exception. Cannot import wsdl:portType Detail: The type initializer for 'System.ServiceModel.Diagn osticUtili ty' threw an exception. XPath to Error Source: //wsdl:definitions[@target Namespace= 'http://www. xxx.com/']/wsdl:portType[@ name='IDat aService'] Cannot import wsdl:binding Detail: The type initializer for 'System.ServiceModel.Diagn osticUtili ty' threw an exception. XPath to Error Source: //wsdl:definitions[@target Namespace= 'http://tempuri.org/']/wsdl:bi nding[@nam e='BasicHt tpBinding_ IDataServi ce'] Cannot import wsdl:port Detail: The type initializer for 'System.ServiceModel.Diagn osticUtili ty' threw an exception. XPath to Error Source: //wsdl:definitions[@target Namespace= 'http://tempuri.org/']/wsdl:se rvice[@nam e='DataSer vice']/wsd l:port[@na me='BasicH ttpBinding _IDataServ ice'] App_WebReferences/DataServ ice/
Error 3 Reference.svcmap: Failed to generate code for the service reference 'DataService'. 'http://www.xxx.com/DataService.svc/mex': The type initializer for 'System.ServiceModel.Diagn
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
thanks for sharing how did you fix... this might be helpful for others how to fix the issue... ragi
ASKER
I have a solution where I have a WCF service hosted in IIS in its own project. The DataService concerns itself with accessing data. Then referencing this assembly is another data assembly which is then access by my business layer.
Website --> Business --> Data --> Data.Web (Service)
Initially the application would not work unless i including a reference do Data.Web in my website, despite all the calls going through my business layer. I made quite a few changes and then it stopped working. By removing the service reference from the website its now working - (duplicate types). I spend a good couple of weeks on this problem.
Thanks