As a web interface, it used to be Web service, but after. Net 3.5, the Web service became WCF. The code is written, the WebMethod feature is changed to OperationContract, then the method is split into the contract interface and the implementation method. Then, on deployment, it is no longer dependent on IIS, but if you use IIS, deployment is a hassle.
Copy the WCF application code to the IIS directory, and then open IIS Manager and convert it to application. An error occurred while accessing. There is a problem with the Protocolmapping configuration section.
The reason for this is that WCF is. Net3.5, the WCF app I created is. Net4.5, and the application, which is converted to, uses the default application pool, which uses the. NET Framework of 2.0. Therefore 2.0 cannot parse the protocolmapping configuration section.
For this scenario, create a new 4.0 application pool (pipeline mode to use integration, not Classic mode) because the server is 2008r2, so IIS is 7.5, so the. NET Framework is 4.0, so change the WCF application to 4.0, then recompile, and then modify the application pool.
The following error is then reported to the access. Find answers online and have a similar problem with deploying Silverlight. However, after configuring directory permissions (adding FullControl permissions to Iisuser or even anonymous users), there is still no effect.
This error can being caused by a virtual directory is being configured as an application in IIS.
Then wide eyes, finally saw this sentence, ah, in fact, people reminded plainly, why they are so confused. The problem is that the virtual directory (which can be understood as the directory in which the application resides) is not configured as an application.
I created a solution that contained several class libraries and WCF services, then converted the solution directory into an application, then browsed, then found the service, clicked the error, and the problem was that the directory of the WCF Service project was not converted, the correct translation of the WCF service.
Server Error in '/xxx ' application. --------------------------------------------------------------------------------
Configuration error Description:an error occurred during the processing of a configuration file required to service this Request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message:it is an error to use a section registered as allowdefinition= ' MachineToApplication ' beyond Applicat Ion level. This error can being caused by a virtual directory is being configured as an application in IIS.
Source Error:
Line £ <add binding= "basichttpsbinding" scheme= "https"/> line £ º </protocolMapping> line 22: <servicehostingenvironment aspnetcompatibilityenabled= "true" multiplesitebindingsenabled= "true"/> Line 23: </system.serviceModel> Line: <system.webServer>
Source File:c:\inetpub\wwwroot\xxx\billion.wcf\web.config line:22
--------------------------------------------------------------------------------Version Information:microsoft. NET Framework version:4.0.30319; ASP. version:4.0.30319.17929
WCF IIS Deployment Error Handling