Last post Dec 21, 2006 06:47 PM by davidebb
Dec 15, 2006 11:00 AM|Dave Hayden|LINK
Whenever I try to add a 3rd party control onto a web form I get the error:
Control cannot be created because Visual Studio cannot find the control's type in the control assembly.
I use the controls all the time in C#, so I assume this is associated with IronPython? Do I have to do something special before dragging and dropping a 3rd party control on a webform?
Dec 16, 2006 08:36 PM|davidebb|LINK
I'm not sure what the problem might be, but we will investigate and get back to you.
Dec 18, 2006 04:25 PM|Dave Hayden|LINK
Just to be complete, I mentioned this to one of my control vendors who duplicated the error on their side and confirmed it had something to do with the IronPython ASP.NET CTP. They didn't elaborate more than that.
Dec 20, 2006 08:43 PM|davidebb|LINK
Sorry for the delay in getting back to you. Couple questions:
Dec 21, 2006 05:03 PM|Dave Hayden|LINK
Not a problem. I found a workaround that will probably help you figure out the issue.
The controls are in the bin directory.
You hit upon what I think is the problem, the designer is not adding the register directive or having a problem doing it.
When I just drag and drop I get the error mentioned earlier.
If I add the Register Directive manually to the page ( my workaround ), like:
and then drag and drop the control, everything appears to work fine.
In a nutshell, I can add drag and drop the control successfully after I manually add the register directive. If I don't manually add the directive, I cannot and get the error mentioned earlier.
Dec 21, 2006 06:47 PM|davidebb|LINK
Thanks Dave, I now understand the issue better. Basically, this is broken for any no-compile page (which is what IronPython uses). That is, any page that uses compilationMode="Never", even if it's marked as language=C# and has nothing to do with IronPython.
Note that this is purely a designer issue, and noy a runtime issue. I'll report this to the right people.