CAUTION!!! I would caution against ever messing with framework files manually like the above poster suggested...that's just asking for trouble.
I had a similar issue which I have now solved without touching with any framework files.
Background: I was trying to get my IIS hosted WCF service running with a net.tcp endpoint on Windows 7. I had installed IIS after installing VS2010 beta2. Although my service was working over HTTP, when my client tried to connect over net.tcp it would get the completely ridiculous error: "FatalExecutionEngineError was detected" No help at all!!!
I think the error was being thrown because my WCF client was unable to connect to the server. Normally a connection-related exception should be thrown, but I suspect that I got the fatal error because my service request consisted of a custom Message with a Stream.
Anyways, I finally got it working and I believe the key was to re-install the WCF HTTP activation along with aspnet.
- Go to the Control Panel
- Click on Programs and Features
- Click on Turn Windows Features on/off
- Uncheck Microsoft.Net Framework 3.5.1 (and the two options beneath)
- Click OK to restart
- Follow steps 1-3 then check all 3 options and restart
I then registered IIS by running the following (as admin):
%windir%\Microsoft.NET\Framework\v4.0.21006\aspnet_regiis.exe -iru
Sorry for the long story, but I wanted all the "key words" in there for google to help other folks that might run into the same or similar problem.