A generic error occurred in GDI+

POSTED BY Divergence Hosting on Jun 19 under ASP.NET

While working on a project recently, I was playing around with image resizing and cropping. While I’ve worked with this before, this was the first time I got into it more indepth. I suddenly encountered this error which I found to be horribly bad description for an error. After researching and testing my application, I found that this error typically occurs on two occasions, both having to do with permissions

Read more

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

POSTED BY Divergence Hosting on Feb 11 under Uncategorized

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

POSTED BY Divergence Hosting on Jan 27 under Uncategorized

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 you can send the emails to your hard drive as opposed to some SMTP server. Simply add the following code to your web.config and you should be good to go.

Read more

Adding a check all box to check checkboxes within a row in a Gridview

POSTED BY Divergence Hosting on Jan 14 under ASP.NET, Javascript

When developing a gridview recently, the need to be able to have a check all button within a row on the gridview came up. At first I thought this would be an easy task, but it turned out that my first few ideas/attempts didn’t really work out. The key for this ability is that I did not want to postback when clicking the check all checkbox. I finally came up with a solution that is posted below.

Read more

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

POSTED BY Divergence Hosting on Jul 22 under Uncategorized

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

Create Dynamic XML Files with ASP.NET HTTP Handlers

POSTED BY Divergence Hosting on Jun 1 under ASP.NET, C#

The internet in it’s current state sees XML as a very mature technology to allow data to be transferred between sites. There may be many times when you will want to generate XML files in your web solutions and ASP.NET provides HTTP Handlers to assist in this task. The ASHX files that you create in your ASP.NET solutions will handle a request and allow you to output the file as a different type.

Read more

Porter Stemmer Algorithm Class in C#

POSTED BY Divergence Hosting on May 11 under C#

The Porter Stemmer Algorithm is an algorithmn which was created to by Martin Porter to reduce english words to their root word stems. For example, the word “forms” would reduce to “form” and the word “connections” would reduce to “connect”. The details of the algorithmn can be found here

Read more

Copyright Divergence Hosting Technical Blog | Powered by WordPress | Using the GreenTech Theme

SEO Powered by Platinum SEO from Techblissonline