I encountered an error when I was deploying my WCF restful service based on .Net 3.5
to Windows Server 2012 plus IIS 8 which based on .Net 4.5. actually what happen after many trails of WCF that all my SharePoint sites were down and I can ‘t connect any one of them I checked the windows event log and It was an exception shown in browser whenever I tried to open a web page. The exception said:
I searched for the exception and I found the following solution which worked for me.
http://www.codeproject.com/Articles/613812/Solve-IIS-Error-Could-not-load-type-System-Servi