First, write WCF
Problem:
1. Specific formats
2. Data binding
3. Encrypt and decrypt
Second, publish to IIS
Problem:
1. Access rights issue, add everyone permission
When visiting the website: http://localhost/WebbUploadSample/ZipUpload.aspx
Server error in the "/webbuploadsample" application.
--------------------------------------------------------------------------------
Access is denied.
Description: An error occurred while accessing the resources required to service this request. You may not have permission to view the requested resource.
Error message 401.3: You do not have permission to view this directory or page with the credentials you provide (access is denied due to access control lists). Please let the administrator of the Web server grant you access rights.
Workaround: Add the Everyone permission
2. Firewall off, or add port
3. To open Directory browsing when no master item is available
4.
Server error in Application "WCF"
Internet Information Services 7.5
Workaround: IIS re-enroll. netframework4.0
%windir%\microsoft.net\framework\v4.0.30319\aspnet_regiis.exe-i
Cmd.exe Run as Administrator
Third, call the interface
Problem: no return value
Problem: Local can test interface, remote No
Add the following configuration section content in the <system.web></system.web> center of Web. config
<webservices>
<protocols>
<add name= "HttpSoap"/>
<add name= "HttpPost"/>
<add name= "HttpGet"/>
<add name= "Documentation"/>
</protocols>
</webservices>