.comment-link {margin-left:.6em;}

Ben Cops

Thursday, August 26, 2004

313512 - BUG: "Could Not Copy Temporary Files to the Output Directory" Error Message When You Build a Solution That Contains Multiple Projects

313512 - BUG: "Could Not Copy Temporary Files to the Output Directory" Error Message When You Build a Solution That Contains Multiple Projects

So its not just "one of those Visual Studio things that only affect my project", its a bona-fide bug?

Tuesday, August 24, 2004

XMLSerializer encoding

The XMLSerializer spits out streams encoded as UTF-8 by default, if you just feed it a bare stream to serialise to. Force it to use a more BTS friendly encoding by providing it with a StreamWriter or similar with a explicit encoding;


///
/// Serialises an object to a unicode string
///

/// The object to serialise
/// A string representing the serialised object
public static string Serialise(object objectToSerialise)
{
//create an xml serialiser for the object's type
XmlSerializer ser = new XmlSerializer(objectToSerialise.GetType());
//create a memory stream object to hold the data for the serialised type
MemoryStream baseStream = new MemoryStream();
//create a streamwriter, so we can write in unicode encoding to the stream
StreamWriter encodingWriter = new StreamWriter(baseStream, System.Text.Encoding.Unicode);
//get xmlserialiser to write to the base memorystream through the encoded stream writer
ser.Serialize(encodingWriter, objectToSerialise);
//set the memorystream back to the start, and extract the unicode string from it
baseStream.Position = 0;
return CommonServices.StreamToString(baseStream);

}

Thursday, August 19, 2004

Backup Your BizTalk Server 2004 Master Secret

Backup Your BizTalk Server 2004 Master Secret: "ssoconfig -backupsecret mybackup.bak"

I finally got bored enough with seeing these errors to do this!

Thursday, August 05, 2004

Acknowledgments and Negative Acknowledgments (Part 1)

Good ACK blog:
Acknowledgments and Negative Acknowledgments (Part 1)

BTS2004 explorer extension

BTS2004 explorer extension

I *always* forget where this is - and its here
C:\Program Files\Microsoft BizTalk Server 2004\Developer Tools\BtsAsmExt.dll