expected (1,063)


XmlSerializer changes in.NET 3.5 SP1

XmlSerializer changes in.NET 3.5 SP1

I've seen quite a few posts on changes in.NET 3.5 SP1, but stumbled into one that I've yet to see documentation for yesterday. I had code working just fine on my machine, from VS, msbuild command l…


c# - .NET YAML Library

Anyone know of a lightweight YAML library for.NET? Preferably something that comes with source(in C#) so that I can compile it directly into my binary and not have yet another dll dependency.…


How can I test for an expected exception with a specific exception message from a resource file in Visual Studio Test?

Visual Studio Test can check for expected exceptions using the ExpectedException attribute. You can pass in an exception like this:[TestMethod][ExpectedException(typeof(CriticalException))] public v…



c# - How can the error 'Client found response content type of 'text/html'.. be interpreted

I'm using C# and connecting to a WebService via an auto-generated C# proxy object. The method I'm calling can be long running, and sometimes times out. I get different errors back, sometimes I get a S…


ios - What#defines are set up by Xcode when compiling for iPhone

I'm writing some semi-portable code and want to be able to detect when I'm compiling for iPhone. So I want something like#ifdef IPHONE_SDK.... Presumably Xcode defines something, but I can't see any…


What would be a recommended choice of SSIS component to perform SFTP or FTPS task?

Sometimes normal FTP doesn't quite cut it... When you need to do secure FTP via SSIS packages, which product would you recommend? Before answering, please see if someone has already suggested the sa…


java - How do you assert that a certain exception is thrown in JUnit 4 tests?

How can I use JUnit4 idiomatically to test that some code throws an exception? While I can certainly do something like this: @Test public void testFooThrowsIndexOutOfBoundsException(){boolean thro…


Why can't I connect to a WCF service with net.tcp but i can with http?

I have a WCF service running on the IIS with a ServiceHostFactory. It's running fine with the WSHttpBinding but because of the speed and everything being on the same network(no firewalls) i want to s…


Any way to “reboot” the JVM?

Is there any way to reboot the JVM? As in don't actually exit, but close and reload all classes, and run main from the top?…


Can I fail to deserialize with XmlSerializer in C# if an element is not found?

I am using XmlSerializer to write and read an object to xml in C#. I currently use the attributes XmlElement and XmlIgnore to manipulate the serialization of the object. If my xml file is missing an…




not error type string the for example was but how