sfeldman.NET

.NET, code, personal thoughts

Browse by Tags

All Tags » .NET (RSS)
LINQ to XML for Better Maintainability
Today I was trying to solve a simple technical problem. Given a specific XML, needed to clean it up by removing any elements of a particular type. < Attachment > < Name > file1.pdf </ Name > < Id > 1 </ Id > </ Attachment...

Posted by Sean Feldman | 4 comment(s)

Filed under:

Consuming ASMX Web Service With WCF
ASMX web services were a breakthrough when appeared on .NET platform. A lot of services were created to take advantage of web services technology. Now, that WCF is replacing legacy web services, we still have a lot of legacy web services running and being...

Posted by Sean Feldman | 1 comment(s)

Filed under:

Dynamic WCF Proxy
Our new system is entirely based of services (SOA solution). From the day one we had an issue with Visual Studio auto-magically generated proxies and management of those as system grew. Solution at that time was to create clients of the services dynamically...

Posted by Sean Feldman | 5 comment(s)

Filed under:

Wix Product Version with Build Script
Our projects are deployed with MSIs. Each MSI file is appended with the product version number (regular staff – major, minor, build number, revision number). While this is enough for deployment, in production, it is hard to determine what product version...

Posted by Sean Feldman | 4 comment(s)

Filed under:

MSMQ With Files Larger Than 10MB?
Update 2009-09-11 : I was playing with the sample provided in two comments, and has run into issue with chunking binding. See thread: http://code.msdn.microsoft.com/msmqpluswcf/Thread/View.aspx?ThreadId=2265 Has anyone dealt with this issue before? We...

Posted by Sean Feldman | 11 comment(s)

Filed under:

Moq – ToString() Method Pitfall
I was working on some code today, when run into a pitfall with Moq. This was probably my misreading of documentation. The component I was testing looked somewhat like the code below public class SomeOtherType { private readonly ISomeType someType; public...

Posted by Sean Feldman | 5 comment(s)

Filed under: , ,

Sending Emails with no SMTP
I ran into a problem once in a QA environment, and it was unpleasant to handle. Amr ElGarhy has showed a way “baked into” .NET how to overcome issues similar to the one I had – write emails straight into file system. Solutions is elegant and done through...

Posted by Sean Feldman | 1 comment(s)

Filed under:

Convention over Configuration
Convention over is defined in Wikipedia as follow: Convention over Configuration (aka Coding by convention) is a software design paradigm which seeks to decrease the number of decisions that developers need to make, gaining simplicity, but not necessarily...

Posted by Sean Feldman | 1 comment(s)

Filed under: , ,

Singletonitis
While reading Joshua Kerievsky book "Refactoring to Patterns" could not go silent about abuse of Singleton pattern he described. The question that was asked in the book "When is a Singleton unnecessary?" - "Most of the time"...

Posted by Sean Feldman | 1 comment(s)

Filed under: , , ,

SP1 and Scott Guthrie
Ok, so I was really upset and spilled a bit more than probably should have to. ScottGu has picked my desperate yell from the blog and suggested a help (2nd time I believe - 1st one occurred when .NET 2.0 SP1 has broken our production web sites, wow, he...

Posted by Sean Feldman | 3 comment(s)

Filed under: , ,

More Posts Next page »