[script removed]
I have the 2.0 SDK and am trying to get sample web browser going. I can compile but get an error at
///
/// Checks to see if there is at least one object in and returns
/// the first one, otherwise an exception is thrown.
///
/// Thrown if is empty.
protected object AtLeastOne(object[] objs, Type extensionPointType)
{
if (objs.Length > 0)
{
return objs[0];
}
else
{
throw new NotSupportedException(
string.Format(SR.ExceptionNoExtensionsCreated, extensionPointType.FullName));
}
}
when I press the icon. I can see that my objs is of zero length, so the error makes sense. It isn't clear to me that what I'm doing makes sense. I compiled it in WebBrowser\bin\Debug and then copied over the dll into the plugins directory. I tried making a shortcut inside the plugins directory, but that didn't work.
It isn't at all clear that if I put a break point on my code it will affect the copy in the plugins directory - it would seem to me to be on the copy in the Debug directory. In any case, it never got the module itself as it isn't being launched correctly.
Another thing which looks strange is in the ImageViewer properties the target framework is set to NET 2.0 and it says in the documentation that 3.0 is necessary. Should I change that to 3.0 or 3.5? (I have VS 2008).
Thanks,
Ilan