Archive for the ‘Uncategorized’ Category

WCF published services returned “Service attribute value in the ServiceHost directive could not be found.”

As I’ve finally gotten around to using Windows Communication Foundation (WCF) in recent projects, i got a test project setup fairly quickly which seemed to compile and run properly. I published the service to a test server and I encountered the following error

Read More

Testing email from localhost with ASP.NET without SMTP server

Alot of the time when developing web apps, you need to send emails from your application. Developers need a way to test this and sometimes you can’t be bothered to setup a local SMTP server just for this purpose. Thankfully, the ASP.NET framework has a built in way for you to set this up so…

Read More

Webservices: “The request failed with HTTP status 401: Access Denied.”

I received this error recently when trying to setup web service authentication. This error shows up when anonymous authentication is not setup on IIS. To fix this error, follow the steps below.

Read More

Encrypt data with MD5 in ASP.NET

Once you start storing sensitive data in your database, you’ll inevitably find that you want to encrypt some of the things you are storing, typically user passwords. The most secure sites will generally work with one way encryption meaning that there is no way for you to decrypt the data. The MD5 algotrithm is a…

Read More