views:

40

answers:

2

I have a bizarre vb.net problem.

I'm working with a 3rd party library with a namespace called Telerik.Webcontrols. The library is in a web site project that I am in the process of converting to a web application project.

Telerik.WebControls contains a class called RadAjaxControl.

In the original web site project, I have code that looks like this:

public sub page_load(...)
    dim foo as Telerik.Webcontrols.RadAjaxControl

Once I convert to a web application project, it says that Telerik.Webcontrols doesn't exist.

However, the truly bizarre thing is that the following code does compile:

imports Telerik.WebControls

public sub page_load(...)
    dim foo as RadAjaxControl

What could possibly be going on here?

+2  A: 

Watch your casing: Telerik.Webcontrols != Telerik.WebControls

Jørn Schou-Rode
I'm a c# dev so I could be wrong, but isn't VB.NET case insensitive?
KP
VB.NET itself is indeed case insensitive, but I am not sure what would happen if the third party library (possibly written i C#) mixes up the casing of the namespace between classes. Maybe some VB.NET shark can help us here?
Jørn Schou-Rode
+1  A: 

I would remove and re-add the reference to Telerik. Or drop a new Telerik control on to your page. This should clear up the missing namespace.

nbushnell