Here's the code for my TaskNotCompletedException class:
[Serializable]
public class TaskNotCompletedException : Exception
{
#region Constructors
public TaskNotCompletedException()
: base()
{
}
public TaskNotCompletedException(string taskName)
: base()
{
this.TaskName = taskName;
}
public TaskNotCompletedException(string taskName, string message)
: base(message)
{
this.TaskName = taskName;
}
public TaskNotCompletedException(string taskName, string message, Exception innerException)
: base(message, innerException)
{
this.TaskName = taskName;
}
public TaskNotCompletedException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
this.TaskName = info.GetString("TaskName");
}
#endregion
#region Property - TaskName
private string m_TaskName = "";
public string TaskName
{
get
{
return this.m_TaskName;
}
set
{
this.m_TaskName = value;
}
}
#endregion
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
base.GetObjectData(info, context);
info.AddValue("TaskName", this.TaskName);
}
public override string Message
{
get
{
String s = base.Message;
s += Environment.NewLine;
s += "TaskName: " + this.TaskName;
return s;
}
}
}
Am I still doing something wrong?
Thanks for your help,
-Matt
On 11/7/06,
Jonathan Mitchem <[EMAIL PROTECTED]> wrote:
>From what it looks like to me, the exception is being thrown in the Executor whenever the thread is Start()ed.
You didn't mention it, but do you implement ISerializable?
JonathanOn 11/4/06, Matt Valerio <[EMAIL PROTECTED]> wrote:Has anyone else run into a problem like this?-------------------------------------------------------------------------
System.Runtime.Serialization.SerializationException: Type is not resolved for member ' Fsda.Tasks.TaskNotCompletedException,FSDA_Driver, Version=0.3.0.1, Culture=neutral, PublicKeyToken=null'.
at Alchemi.Executor.AppDomainExecutor.ExecuteThread(Byte[] thread)
at Alchemi.Executor.GExecutor.ExecuteThreadInAppDomain ()
Apparently there is an exception (TaskNotCompletedException, a custom exception that I wrote) that gets thrown from within my (class inherited from) GThread.
My TaskNotCompletedException is written correctly( I think), because it:
1) inherits from Exception
2) is marked as [Serializable]
3) provides all the same constructors as Exception, including the one with SerializationContext and SerializationInfo parameters
4) overrides GetObjectData
Did I miss something?
How can you find out on which computer the exception is being thrown (executor, manager, or client)?
Or is this SerializationException being thrown for another reason....
Any help would be greatly appreciated.
Thanks,
-Matt
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
alchemi-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alchemi-users
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ alchemi-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/alchemi-users
