I have a mailer program for asp.net which has been working fine, until I added this:
Dim myThread as New Threading.Thread(AddressOf SendMessages)
Sometimes my page works, sometimes I get this pop up in my Visual Studio:
An unhandled exception of type 'System.Runtime.Serialization.SerializationException' occurred in Unknown Module.
Additional information: The type System.Web.HttpException in Assembly System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a is not marked as serializable.
This never happened until I started running the SendMessages sub on a seperate thread.