Type 'IField' is not defined

×

Error: Type 'IField' is not defined

Description:  This error occurs when attempting to use an Interface that is not fully qualified.

For example:
CType(Item.Fields("MyFieldName"),IField).Value 

Resolution:  Fully qualify the Name Space, or Import the Name Space.

Fully Qualified:
CType(Item.Fields("MyFieldName"),BirdDogSoftware.Interfaces.IField).Value

Import Name Space:  This needs to be at the top of the page, before any HTML.
<%@ Import Namespace="BirdDogSoftware.Interfaces" %>