Roomie wrote:Have you removed or changed the event: OnLoadExternalResourceByFullPath
Because now I get an error in my design view and it seems this event is gone.
Am I missing something?
Events cannot be set on the object passed to the event binding service because a site associated with the object could not be located.
at System.ComponentModel.Design.EventBindingService.EventPropertyDescriptor.SetValue(Object component, Object value)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeAttachEventStatement(IDesignerSerializationManager manager, CodeAttachEventStatement statement)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager manager, CodeStatement statement)
Roomie wrote:Well, building my project works for me too but it's in the design view where it doesn't work. Right now there's OnLoadExternalResourceByRelativePath, but no OnLoadExternalResourceByFullPath, in the properties event listing.
Code: Select all
class ContentProvider
{
private String Path;
private f_in_box__lib.AxCode AxCode;
private f_in_box__lib.AxCode.OnLoadExternalResourceByFullPathEventHandler Handler;
public ContentProvider(f_in_box__lib.AxCode AxCode, String Path)
{
this.Path = Path;
this.AxCode = AxCode;
Handler = new f_in_box__lib.AxCode.OnLoadExternalResourceByFullPathEventHandler(OnLoadExternalResourceByFullPath);
AxCode.OnLoadExternalResourceByFullPath += Handler;
}
private void OnLoadExternalResourceByFullPath(object sender, String URL, System.IO.Stream Stream, ref bool Handled)
{
if (URL == "http://FLV/FlashVideo.flv")
{
System.IO.Stream FromStream = System.IO.File.OpenRead(Path);
FromStreamToStreamWriter writer =
new FromStreamToStreamWriter(
FromStream,
Stream
);
Handled = true;
AxCode.OnLoadExternalResourceByFullPath -= Handler;
}
}
}
Roomie wrote:Tried the old version (3.0) and it didn't work there either.
Code: Select all
this.FlashControl.AxCode.OnLoadExternalResourceByFullPath += new f_in_box__lib.AxCode.OnLoadExternalResourceByFullPathEventHandler(OnLoadExternalResourceByFullPath);
Roomie wrote:OK, got it, my bad. But the problem still exist, any pointers?
Not sure what I'm missing here.
Any help appreciated.
BTW, not sure this is helpfull but this is the line that the error refers to:Code: Select all
this.FlashControl.AxCode.OnLoadExternalResourceByFullPath += new f_in_box__lib.AxCode.OnLoadExternalResourceByFullPathEventHandler(OnLoadExternalResourceByFullPath);
Users browsing this forum: No registered users and 14 guests