Although, I still believe that a Web Service doesn't differ much to a Web Application (web service just do the XML parsing and header checking for you), Microsoft really did add awesome features in webservices/wcf framework. I liked doing the classic way, but most of the time utilizing the ready made framework is easier.
Let's start with WCF package deployment.
1. First, you have to build a deployment package. (Right click the solution to
choose it).
2. Once the build is successful, locate the project folder and look for the deployment package on the Debug folder. There are zipped version and the Files and Folder version, which you can simply take to the server.
3. Once you have placed the files on your server, you have to add necessary permissions that will allow IIS to serve your WCF solution. (Network Service, Machinename/IIS_IUSRS)
5. Add an application , referencing the directory of your WCF solution.
If you followed this steps, your WCF should be displaying the instruction to get the proxy code (svcutil.exe etc.).
Otherwise, you might bump on this problems.
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Module
|
IIS Web Core
|
Notification
|
BeginRequest
|
Handler
|
Not yet determined
|
Error Code
|
0x80070005
|
Config Error
|
Cannot read configuration file due to insufficient permissions
|
Or this one
Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.
Solution to the Cannot read configuration file due to insufficient permissions
- Just convert the WCF directory to an Application.
Solution to the Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive
-Check the application and see if it is running .NET Framework 4.0. When I checked mine, it was default to .NET 2.0
0 comments:
Post a Comment