background preloader

Useful pages i came across that helped me fix various bugs

Facebook Twitter

Macros for Build Commands and Properties. Create and Consume RESTFul Service in .NET Framework 4.0. Download demo - 15.43 KB About This I am writing this article to explain creating & consuming RESTFul service using .NET Framework 4.0. What is Web Services, WCF? Web Service Web Service is like components on a Web Server , client application uses this service by calling Hypertext Transfer Protocol (HTTP) requests across the Web. Using ASP.NET, we can create custom Web Services, and call these services from any client applications. Web Services are platform, programming language independent; they send as well as receive data using Simple Object Access Protocol (SOAP) messages. Windows Communication Foundation (WCF) is Microsoft’s combined programming model for building service-oriented architecture (SOA).

WCF supports concentrated computing where services have isolated consumers. For creating basic application in WCF, please refer to the article “ Introduction of Window Communication Foundation ”. What is REST & RESTful? What is the REST Starter Kit? Creating basic RESTFul Service Step 1 Step 2. Visual studio 2010 - How to stop WCF Test Client from randomly start when debugging. AddressAccessDeniedException – Cause and Solution - Amit Lale's blog. While working with WCF service on Windows Vista, I came across the following error, which I am sure everybody who have created the services on previous versions (Windows XP and likes) and trying to migrate their services to Windows Vista would have encountered. HTTP could not register URL Your process does not have access rights to this namespace (see for details). The error occurs due to the new security settings in Windows Vista. Most people are no longer going to be running with Administrator privileges by default like they were doing on earlier platforms.

This impacts your ability to run HTTP web services because listening at a particular HTTP address is a restricted operation. To fix this problem, the owner of the HTTP namespace (built-in administrator) needs to delegate this ownership to the user account under which you are running your application (most of the times, it's the logged on user). Could not load file or assembly ‘System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e’ or one of its dependencies. | dwmkerr.com. Are you getting the error below when working with Silverlight projects?

Could not load file or assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. It’s a bit of an odd one. The solution that works for me is to re-register System.Core and System.Windows in the GAC. Use the commands below. 32 Bit System “C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\gacutil” /i “C:\Program Files\Microsoft Silverlight\4.1.10111.0\System.Core.dll”“C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\gacutil” /i “C:\Program Files\Microsoft Silverlight\4.1.10111.0\System.Windows.dll” 64 Bit System “C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\gacutil” /i “C:\Program Files\Microsoft Silverlight\4.1.10111.0\System.Core.dll”“C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\gacutil” /i “C:\Program Files\Microsoft Silverlight\4.1.10111.0\System.Windows.dll”