Last post Sep 25, 2012 09:28 AM by shenchen1987
Sep 24, 2012 10:05 AM|shenchen1987|LINK
It worked all fine several days ago,but today,when I browse the wcf hosted in iis,it gets the error:
The value for the 'compilerVersion' attribute in the provider options must be 'v4.0' or later if you are compiling for version 4.0 or later of the .NET Framework. To compile this Web application for version 3.5 or earlier of the .NET Framework, remove the
'targetFramework' attribute from the element of the Web.config file.
Our os is window server 2008 ,and iis 7.0 .We don't have a "compilerVersion" anywhere in the web.config, and the targetFramework is set to "4.0".
i dont know anything is changed by mistake，but it did work fine several days ago.
I try to put the wcf in the default web site,it works fine.But put it to a new web site,it gets the error.
Sep 24, 2012 01:21 PMemail@example.com|LINK
Is Framework 4.0 or above installed? Is it being used by the application pool?
Post the full error and look at the log files.
Sep 25, 2012 09:28 AM|shenchen1987|LINK
thank you for your reply,and I have found the reason.the wcf service's parent node refrence a dll which is 3.5,I remove the refrence from the web.config and i it works fine!