Category Archives: WCF

HTTP Error 404.3 – Not Found The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map. Error Code 0x80070032. When try to use IIS to host WCF services

When I try to deploy the WCF application which I created in VS2010 to the development machine that is using Win7 64bit and IIS 7.5, I have received the following error message.

HTTP Error 404.3 – Not Found
The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.
Error Code: 0x80070032

As I am a absolute beginner in creating a WCF. I have no idea what have a done wrong.
I used Microsoft Web Platform to set up the IIS Web Server and then I published into a file system, so that I can copy and paste it to the web-server like what I did when I publish a web-application.
Finally I have realise it is something to do with the extension configuration / MIME map. I guess something is missing on the web server.

Here it is the solution.
1)  Click on “Start” Menu -> “Control Panel” -> “Programs and Features
or paste the line below, onto your address bar and press Enter
 “Control PanelAll Control Panel ItemsPrograms and Features

2) Click on “Turn Windows features on or off
3) On the “Windows Features” window,
4) Expands “Microsoft .Net Framework 3.5.1” or “Microsoft .Net Framework 3.0” depends on which version of windows you are using
5) Tick “Windows Communication Foundation HTTP Activation”  and “Windows Communication Foundation Non-HTTP Activation
6) click “OK” and try to refresh the webpage.

If you are using older version of Windows Server E.g. 2003/ WinXP, you can try to use command prompt.
1) Click on “Start” -> “Run” -> Enter “cmd” to launch “Command Prompt
2) Type: “C:” and press “Enter
3) Enter the following command on the command prompt
cd “windowsMicrosoft.NetFrameworkv3.0Windows Communication Foundation”
4) Then you can enter the following command to setup WCF on your computer.
servicemodelref -i

5)Then you should see a similar screen as above.

If everything setup properly on you server, you should be able to view the WCF service you have deployed to the IIS.

However…Once I solved the HTTP Error 404.3 error I have received another error like below.

HTTP Error 500.21 – Internal Server Error
Handler “svc-Integrated” has a bad module “ManagedPipelineHandler” in its module list
Error Code 0x8007000d

I will explain how I solve it in my next post.
HTTP Error 500.21 – Internal Server Error Handler “svc-Integrated” has a bad module “ManagedPipelineHandler” in its module list

Hope you found it useful

The request channel timed out while waiting for a reply after 00:00:57.6118634. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout.

I am working on a application, which need to consume a web-service which is provided by another company. When I try to make a Web-service request/RPC call, I have received a timeout exception from my application.
The request channel timed out while waiting for a reply after 00:00:57.6118634. Increase the timeout value passed to the call to Request or increase the Timeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout.

I guess, it is something to do with their web-service, E.g. the web service did not work properly and it used to work in Visual Studio 2005 [I am using Visual Studio 2008 for this application]. When I check the application config file. I have found something interesting, which is related with timeout. Then I have figured out what is causing the timeout exception. =).


Here it is my solution:
To resolve the timeout exception, you can simply increase the timeout value to a appropriate time, which will not affect the performance of your application. E.g. If you set the timeout value too high, when the web-service do gone down, your application will waste lots of time, because it think the web-service is doing something.

For my application, I have updated the timeout value to 3 minutes which is 00:03:00. [hh:mm:ss].

Hope you find it useful. =)

您的處理程序沒有足夠的存取權可存取此命名空間 HTTP 無法登錄URL http://+:8000/

之前嘗試開發WCF service 來試試給 Silverlight / WPF 取資料
但是當我想測試這個WCF 時
出現了這個 ERROR MESSAGE:
您的處理程序沒有足夠的存取權可存取此命名空間 HTTP 無法登錄URL http://+:8000/

之後便跟著這個 ERROR MESSAGE 的INFORMATION 試試解決問題…

解決方法很簡單:
由於我便用的OPERATING SYSTEM 是 WINDOWS VISTA
只要當你開啓你的VISUAL STUDIO 時 RIGHT CLICK
選擇”RUN AS ADMINISTRATOR” 便可

Happy Coding