Click here to Skip to main content
15,895,011 members
Home / Discussions / C#
   

C#

 
QuestionGraphics.DrawImage Problem Pin
#realJSOP10-Aug-08 4:57
mve#realJSOP10-Aug-08 4:57 
AnswerRe: Graphics.DrawImage Problem Pin
Guffa10-Aug-08 5:21
Guffa10-Aug-08 5:21 
GeneralRe: Graphics.DrawImage Problem Pin
#realJSOP10-Aug-08 5:39
mve#realJSOP10-Aug-08 5:39 
GeneralRe: Graphics.DrawImage Problem Pin
Guffa10-Aug-08 6:37
Guffa10-Aug-08 6:37 
GeneralRe: Graphics.DrawImage Problem Pin
#realJSOP10-Aug-08 23:25
mve#realJSOP10-Aug-08 23:25 
AnswerRe: Graphics.DrawImage Problem Pin
User 665810-Aug-08 5:46
User 665810-Aug-08 5:46 
GeneralRe: Graphics.DrawImage Problem Pin
#realJSOP10-Aug-08 23:29
mve#realJSOP10-Aug-08 23:29 
QuestionThe assembly 'mscorlib.XmlSerializers' failed to load in the 'LoadFrom' Pin
ezazazel10-Aug-08 4:27
ezazazel10-Aug-08 4:27 
Hi, I get a weird error:
The assembly with display name 'mscorlib.XmlSerializers' failed to load in the 'LoadFrom'

This is what I did
public class ErrorObject
    {
        [XmlElement("DateTimeError")]
        public DateTime DateTimeError { get; set; }
        [XmlElement("Message")]
        public string Message { get; set; }
        [XmlElement("InnerMessage")]
        public string InnerMessage { get; set; }
        [XmlElement("ErrorPriority")]
        public ErrorLevel ErrorPriority { get; set; }
        [XmlElement("Dump")]
        public object Dump { get; set; }

        public ErrorObject(DateTime DateTimeError, string Message, ErrorLevel ErrorPriority)
        {
            this.DateTimeError = DateTimeError;
            this.Message = Message;
            this.ErrorPriority = ErrorPriority;
        }
    }

    public enum ErrorLevel { Low, Normal, High, Critical };


and

public void AddMessage(ErrorObject errorObject)
       {
          // List<ErrorObject> errorObjects = ReadMessages();
           List<ErrorObject> errorObjects = new List<ErrorObject>();


           errorObjects.Add(errorObject);


           XmlSerializer serializer = new XmlSerializer(errorObjects.GetType());

           TextWriter textWriter = new StreamWriter(LogFile);
           serializer.Serialize(textWriter, errorObjects);
           textWriter.Close();

       }

No idea what's wrong.
VS2008 is being used.

thx in advance
QuestionRe: The assembly 'mscorlib.XmlSerializers' failed to load in the 'LoadFrom' Pin
Mark Salsbery10-Aug-08 9:02
Mark Salsbery10-Aug-08 9:02 
AnswerRe: The assembly 'mscorlib.XmlSerializers' failed to load in the 'LoadFrom' Pin
ezazazel10-Aug-08 9:39
ezazazel10-Aug-08 9:39 
QuestionUpdating textbox from class running in another thread Pin
__Leeloo__10-Aug-08 2:51
__Leeloo__10-Aug-08 2:51 
AnswerRe: Updating textbox from class running in another thread Pin
Green Fuze10-Aug-08 5:11
Green Fuze10-Aug-08 5:11 
GeneralRe: Updating textbox from class running in another thread Pin
PIEBALDconsult10-Aug-08 7:18
mvePIEBALDconsult10-Aug-08 7:18 
QuestionHow to Intract with Reporting Services by code ? Pin
hdv21210-Aug-08 0:43
hdv21210-Aug-08 0:43 
AnswerRe: How to Intract with Reporting Services by code ? Pin
Wendelius10-Aug-08 1:01
mentorWendelius10-Aug-08 1:01 
GeneralRe: How to Intract with Reporting Services by code ? Pin
hdv21210-Aug-08 1:06
hdv21210-Aug-08 1:06 
GeneralRe: How to Intract with Reporting Services by code ? Pin
Wendelius10-Aug-08 1:19
mentorWendelius10-Aug-08 1:19 
GeneralRe: How to Intract with Reporting Services by code ? Pin
hdv21210-Aug-08 1:49
hdv21210-Aug-08 1:49 
GeneralRe: How to Intract with Reporting Services by code ? Pin
Wendelius10-Aug-08 2:13
mentorWendelius10-Aug-08 2:13 
GeneralRe: How to Intract with Reporting Services by code ? Pin
hdv21210-Aug-08 2:29
hdv21210-Aug-08 2:29 
GeneralRe: How to Intract with Reporting Services by code ? Pin
Wendelius10-Aug-08 2:48
mentorWendelius10-Aug-08 2:48 
QuestionThreading while sharing a Graphics object Pin
JFord12349-Aug-08 23:25
JFord12349-Aug-08 23:25 
AnswerRe: Threading while sharing a Graphics object Pin
Christian Graus10-Aug-08 0:50
protectorChristian Graus10-Aug-08 0:50 
GeneralRe: Threading while sharing a Graphics object Pin
JFord123410-Aug-08 0:54
JFord123410-Aug-08 0:54 
GeneralRe: Threading while sharing a Graphics object Pin
Christian Graus10-Aug-08 2:07
protectorChristian Graus10-Aug-08 2:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.