Archive for the 'bugsniper' Category

Webservice Error: Could not create type ‘AWebService’

Thursday, August 2nd, 2007

Description:
This one had me seriously stumped for over an hour.
I had created my webservice code file (.cs) and after creating the .asmx file I got an exception reading, ‘Could not create type ….’ .
My .asmx file contained the following directive :
<%@WebServiceLanguage="C#"CodeBehind="~/App_Code/aWebService.cs" Class="aWebService" %>
See solution below ads

Solution
This error occurs when the code specified by the CodeBehind […]

DataGridView Columns Reordering Themselves After Build.

Friday, July 20th, 2007

DESCRIPTION
This problem arises when you build and run an application that includes the DataGridView Control. Columns reorder themselves spontaneously during runtime This occurs despite having defined the order of columns using either the Column Edit dialog or Smart tag and rebuilding the project.
This problem stumped me for quite a long time. The first attempt […]