CSharpFeeds - All your C# feeds in one place.

Sponsors

Feed: Bruce Johnson's SOA(P) Box

Site: http://blogs.objectsharp.com/blogs/bruce/default.aspx Link: http://objectsharp.com/blogs/bruce/Rss.aspx

Monday, January 25, 2010

Order Fixation

by bruce via Bruce Johnson's SOA(P) Box on 1/25/2010 12:39:00 PM

One of my current tasks for a client has been to facilitate the integration between a Java client and a WCF service. The mechanism for doing this is JSON and I have been quite grateful that WCF makes it relatively easy to implement this type of communication. However, there is one area that has been causing some grief for me (and my Java colleagues) that I finally create a workaround for yesterday. The source of my problem starts with the contract used by the WCF service. A number of the method ...

[ read more ]

Wednesday, February 25, 2009

Walking the WPF Control Hierarchy

by bruce via Bruce Johnson's SOA(P) Box on 2/25/2009 8:33:46 PM

I just finished teaching a Silverlight/WPF course last week. As is true in almost every course I teach, there were questions from people who are trying to use the technology in the real world. It's what I love about teaching...that I always learn something about how people use the tools they have been given. In this particular case, the problem was relating to walking the control hierarchy in a user control. The user control contained a DataGrid and the goal was to get from a particular cell wi ...

[ read more ]

Wednesday, May 02, 2007

Code-Name Jasper

by bruce via Bruce Johnson's SOA(P) Box on 5/2/2007 5:56:56 PM

Named after a venerable Canadian national park (due to the overwhelming influence of Canadians on the Microsoft Data team, who are taking over the U.S. one developer at a time), Jasper is one of the incubation projects from the System.Data team introduced at MIX '07. Built on top of the Entity Framework, Jasper provides a set of classes that can easily be used to perform CRUD operations on data. While this doesn't sound particularly exciting when phrased like that, the reality is that the class ...

[ read more ]

Thursday, April 26, 2007

A Big Strike Against TableAdapters

by bruce via Bruce Johnson's SOA(P) Box on 4/26/2007 12:32:49 PM

I'm hoping that someone reads this post and corrects me. But I'm not holding out much hope. I don't normally use TableAdapters, but for a small application I decided that they seem like a reasonable choice. And so long as I was using them on my development platform, all was well and good. The problem arose when I delivered the application. Like any good developer, I store the connection string to the data store in the configuration file. Which is what I did for this application. When I ...

[ read more ]

Monday, April 09, 2007

Roadmap for VSTS

by bruce via Bruce Johnson's SOA(P) Box on 4/9/2007 4:20:32 PM

Microsoft has just released (here) a moderately detailed description of where Team Systems is going over the next 12 months or so. The roadmap also includes the beginnings of the functionality that will be found in the next version of VSTS (code named Rosario). Nothing like a little transparency to get people salivating. :) ...

[ read more ]

Monday, October 30, 2006

Renaming Windows Workflows

by bruce via Bruce Johnson's SOA(P) Box on 10/30/2006 6:01:00 PM

I’m spending some time at the moment working with Windows Workflow. Specifically, getting the WF engine to drive a state machine for a Web application that uses a Web service as the ‘next state’ determinator. And it’s as much fun as it sounds. I did run into one unexpected problem while working with WF. I had created a workflow and added a number of activities to it. After working with it for a while (including adding some values to the activities), I decided to change th ...

[ read more ]

Tuesday, September 19, 2006

Adding a New Item Template to Visual Studio

by bruce via Bruce Johnson's SOA(P) Box on 9/19/2006 8:56:00 PM

Problem number two I ran into was how to include my newly minted item template into Visual Studio. There are two steps that need to be followed to accomplish this. First, the appropriate ZIP file needs to be placed into the directory located (for me) at C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\ItemTemplates\CSharp\1033\ItemTemplates. The ZIP file contains the .mht file that I had created, along with a .vstemplate file. The biggest problem I had with this seemingly simple process w ...

[ read more ]

Finding the Export Template menu item in Visual Studio

by bruce via Bruce Johnson's SOA(P) Box on 9/19/2006 8:18:00 PM

I’m in the process of doing some customization to support a new Team Systems project template and I needed to create a new manual test template. It seemed like it should be pretty simple, but I ran into a couple of issues that are blogworthy. I’ll focus on the one described in the title, but there are other posts coming. The instructions that I read on how to create an item template were to create the code needed for the template in Visual Studio and then use the File | Export Templa ...

[ read more ]

Adding a New Item Template to Visual Studio

by Bruce Johnson via Bruce Johnson's SOA(P) Box on 9/19/2006 3:56:00 PM

Problem number two I ran into was how to include my newly minted item template into Visual Studio. There are two steps that need to be followed to accomplish this. First, the appropriate ZIP file needs to be placed into the directory located (for me) at C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\ItemTemplates\CSharp\1033\ItemTemplates. The ZIP file contains the .mht file that I had created, along with a .vstemplate file. The biggest problem I had with this seemingly simple process w ...

[ read more ]

Thursday, September 14, 2006

Changing the Web Service Port for TFS

by bruce via Bruce Johnson's SOA(P) Box on 9/14/2006 3:34:00 PM

One of the challenges associated with installing Team Foundation Server in the real world is the hard-coding of some of the ports. Not hard-coding, per se, but the inability to easily modify the assigned ports during the installation process. For example, at the company where I just performed the installation, port 8080 was already being used by some RAID monitoring software. So while the installation process was doing its system check, it balked because port 8080 was already being used. Is ther ...

[ read more ]

Wednesday, June 21, 2006

The Name Game, Part Deux

by Bruce Johnson via Bruce Johnson's SOA(P) Box on 6/21/2006 9:41:00 PM

So long DLinq. Hasta la vista XLinq. You now have new names. And while they are more descriptive, they just don’t have the same ‘cool’ factor for me. Especial since I would have expected ELinq, SLinq and OLinq to have been added. Oh well. http://blogs.msdn.com/somasegar/archive/2006/06/21/641795.aspx   ...

[ read more ]

Wednesday, June 14, 2006

The Ramifications of .NET 3.0

by bruce via Bruce Johnson's SOA(P) Box on 6/14/2006 9:22:00 PM

If you weren’t listening closely, you might have missed the announcement that the WinFX technologies have been renamed to .NET 3.0. One of the questions I have been fielding frequently here at TechEd is ‘what does .NET 3.0 mean to .NET 2.0 applications’. The answer is ‘nothing’. .NET 3.0 is an additive upgrade for the Framework. That is to say that the actual installation process for .NET 3.0 involves first checking to see if .NET 2.0 is installed. If not, then .NET ...

[ read more ]

The Ramifications of .NET 3.0

by Bruce Johnson via Bruce Johnson's SOA(P) Box on 6/14/2006 4:22:00 PM

If you weren’t listening closely, you might have missed the announcement that the WinFX technologies have been renamed to .NET 3.0. One of the questions I have been fielding frequently here at TechEd is ‘what does .NET 3.0 mean to .NET 2.0 applications’. The answer is ‘nothing’. .NET 3.0 is an additive upgrade for the Framework. That is to say that the actual installation process for .NET 3.0 involves first checking to see if .NET 2.0 is installed. If not, then .NET ...

[ read more ]

Tuesday, January 31, 2006

Java, .NET, Web Services and Enums

by bruce via Bruce Johnson's SOA(P) Box on 1/31/2006 9:34:00 PM

While working on getting a Java Web service and a .NET Web service client to talk to one another, I ran into an interesting situation. The problem had to do with the WSDL being produced by the Java service. Actually, the entire process involved the following steps: An interface written in C# was used to generate a WSDL file. That WSDL file was imported into JDeveloper and a web service was created The WSDL file exposed by the JDeveloper web service was used (through the wsdl.exe tool) to create ...

[ read more ]

Tuesday, January 17, 2006

Equality Overloading and Code Analysis

by bruce via Bruce Johnson's SOA(P) Box on 1/17/2006 4:19:00 PM

One of the things I like about VS 2005 is the integration of FxCop functionality into the IDE. Most of the time, it informs me of better practices to things that I would have done differently in previous versions of .NET. A good example is the IsNullOrEmpty method on the String class. Code analysis pointed out that, for some of my code, this would be a better performing replacement for the x == null or x == String.Empty tests that are quite common on parameter validation. One of the problems th ...

[ read more ]

Sunday, October 02, 2005

The end of Begin/End

by bruce via Bruce Johnson's SOA(P) Box on 10/2/2005 4:23:00 PM

While on my way back from the MVP Summit, I was playing around with some of the things I had discovered about VS 2005. I mean, if I was going to drip geekiness for the entire conference, why not extend it to the absolute limit. And what I found was something mildly disturbing. A pet peeve of mine for a while has been how easy it is to make an asynchronous Web service call. Whether the caller knows it or now, that call actually makes your application multi-threaded. For the simplest case, that&rs ...

[ read more ]

Saturday, September 24, 2005

What Inferred Types in C# 3.0 are Not!

by bruce via Bruce Johnson's SOA(P) Box on 9/24/2005 6:06:00 PM

I had the opportunity earlier this week to listen on a MSDN chat covering the enhancements to C# that were unveiled at PDC. Listen being an imprecise term given that it was a chat, you understand. I had two main takeaways from the chat. First, there was a ton of interest in LINQ and the various inner and outer workings of that. I’ll post some observations on that shortly. The second thing I learned was that there seemed to be a high level of confusion over exactly what inferred types are b ...

[ read more ]

Sunday, May 15, 2005

The Dual Life of Code Behind

by bruce via Bruce Johnson's SOA(P) Box on 5/15/2005 7:52:00 PM

When you create an ASP.NET page using Visual Studio .NET, the default processing model is to use code-behind (the basics of which I described here). One of the more interesting aspects of code-behind is that you can specify the code for the code-behind assembly using two different techniques.  The first, and most commonly used is to build an assembly and deploy it to the bin directory on the web server.  The second mechanism is to specify the file containing the source code in the ...

[ read more ]

The Code Behind Model of ASP.NET

by bruce via Bruce Johnson's SOA(P) Box on 5/15/2005 6:16:00 PM

Almost from it’s beginning, HTML has been a mixture of data, display and logic.  While the original static pages might have only combined data and display, once scripting was introduced the three disciplines have lived together uncomfortably.  ASP only made this situation worse by introducing a different location (the server) where the scripting code could be executed.  Ugly doesn’t adequately describe this problem.  There is little possibility for functional reuse in this scenario. ...

[ read more ]

Thursday, March 03, 2005

Sending Mail through SMTP with Authentication

by bruce via Bruce Johnson's SOA(P) Box on 3/3/2005 3:35:00 PM

If you have looked at the process of sending emails from within .NET, odds are pretty good that you have stumbled across the SmtpServer class.  To send email, you create a MailMessage object, assign the necessary properties and then use the Send method on SmtpServer.  The SmtpServer class can be pointed to any mail server that you would like.  MailMessage message = new MailMessage(); message.From = "bjohnson@objectsharp.com";message.To = "who@ever.com";message.Subject = "Testing" ...

[ read more ]

Thursday, December 09, 2004

Things C# allows you to do, but shouldn't

by bruce via Bruce Johnson's SOA(P) Box on 12/9/2004 8:05:00 PM

So the offending line of code is as follows: string a = String.Empty, b; If you can explain what this is doing, you're a better person than I.  Just to give you a second hint, the following is also legal syntax. string a = b, c = d, e = f; So what do these statements do? Give up? In the first case, you end up declaring two string variables:  a and b.  And a is initilized to String.Empty.  In the second case, you end up with string variables a, c and e initialized to b, d and ...

[ read more ]

Monday, December 06, 2004

Improving the Performance of Asynchronous Web Service Calls

by bruce via Bruce Johnson's SOA(P) Box on 12/6/2004 12:19:00 PM

Notice that the name of this post doesn't say that web service performance can be improved through asynchronous calls.  That is on purpose.  This particular post deals with a limitation that impacts applications that utilize async web service methods.  Actually, it has the potential to impact any application that interacts with the Internet.  This is actually one time I wish my blog was more widely read, because I can pretty much guarantee that there are thousands of dev ...

[ read more ]

Monday, November 22, 2004

Web Services and Proxy Servers

by bruce via Bruce Johnson's SOA(P) Box on 11/22/2004 5:16:00 PM

I'm currenting working with a team that is putting the finishing touches on a commercial application that uses web services as a major component of the infrastructure.  As part of putting the client portion through its paces, an environment that included a proxy server was tested.  The initial result was not surprising to anyone who has significant experience with web services:  a connection could not be made exception was thrown. The reason for this problem is that the method for ...

[ read more ]

Wednesday, November 17, 2004

Deserializing Objects

by bruce via Bruce Johnson's SOA(P) Box on 11/17/2004 8:18:00 PM

Another post about the deserialization of objects after a web service call.  In this particular scenario, the web service method was returning an ArrayList.  On the client side, I was expecting to see a number of different types of objects.  But one of the objects, a custom class, was being returned as an array instead of an instance of the expected class.  And inside that array was an XmlAttribute and two XmlElement objects.  These were, it turned out, the XML nodes tha ...

[ read more ]

Tuesday, November 16, 2004

ASP.NET 2.0 hits ZBB

by bruce via Bruce Johnson's SOA(P) Box on 11/16/2004 12:16:00 PM

I don't know about you, but I am eagerly anticipating the beta 2 release of ASP.NET.  Why, you say?  Because it's the one that contains a go-live license.  The go-live license gives the ability for production systems to use the technology outside of the development environment.  Now I'm not suggesting that a beta 2 release is suitable for every production environment.  That would be patently silly.  However, there are some instances where running a beta version ...

[ read more ]

Tuesday, November 02, 2004

Refactoring for VB.NET 2005 Going Away?

by bruce via Bruce Johnson's SOA(P) Box on 11/2/2004 6:41:00 PM

Well, not completely.  You have to read a little bit into this post, but it appears that the only support for refactoring in VB.NET Whidbey is the Rename Symbol function. To me, this means that one of the major differences between C# and VB.NET in Whidbey will be refactoring support, as C# Refactoring implements a few more functions.  By the way, this shouldn't completely surprise anyone.  Check out the following post from a year ago.  It describes the refactoring ...

[ read more ]

Monday, November 01, 2004

Random ASP.NET AppDomain Restarts

by bruce via Bruce Johnson's SOA(P) Box on 11/1/2004 1:43:00 PM

Are you having a problem with apparently random application restarts in your ASP.NET application?  Does your session information mystically disappear with no discernable pattern?  Well, the following may help you out. One of the things that ASP.NET does to help make it easier for developers to modify running web sites is to keep an eye on files that are part of the virtual directory.  If you drop a new version of a DLL into the bin directory, it takes effect from the next request ...

[ read more ]

Moving Data Across Service Boundaries

by bruce via Bruce Johnson's SOA(P) Box on 11/1/2004 4:53:00 AM

Yet another question that has come across my inbox more than once in the past week.  Which is a good enough reason to become the topic of a blog.  The question:"Can a SqlDataReader by return by a web service method?"The short answer:  NoIf you attempt to do so, you will get an InvalidOperationException indicating that the SqlDataReader could not be serialized because it doesn't have a public constructor.  And while that is the technical result, the true reason is slightl ...

[ read more ]

Wednesday, October 27, 2004

When is a cache not really a cache

by bruce via Bruce Johnson's SOA(P) Box on 10/27/2004 3:39:00 AM

I spent a large portion of the day inside of the Caching Application Block.  Specifically, a colleague and I were tracking down what appeared to be a nasty threading bug caused by having the creation of two different cached objects that were related to one another.  As it turned out, the bug that existed couldn't explain away all of the behaviors that we observed. As it turns out, there was what appears to be a poorly documented aspect of the Caching Application Block that w ...

[ read more ]

Tuesday, October 26, 2004

Solving the "No such interface is supported" problem

by bruce via Bruce Johnson's SOA(P) Box on 10/26/2004 2:55:00 AM

I was asked a question today about a fairly common error that occurs when serviced components are used in conjunction with ASP.NET. Specifically, a COM+ component (one that is derived from ServicedComponent) was being used on an ASP.NET page.  When the page was loaded, an error of "No such interface is supported" was raised.To understand the why of this error requires a little bit on knowledge about COM+.  When a serviced component is first instantiated, the CLR checks the COM+ catalog for infor ...

[ read more ]

Sunday, October 17, 2004

Remove Those Annoying System Tray Balloons

by bruce via Bruce Johnson's SOA(P) Box on 10/17/2004 10:40:00 PM

If you're like me, the system balloons that are automatically popped by system tray application are annoying.  This blog from Scott Howlett describes how to eliminate them from your life. ...

[ read more ]

Subscribe

New Feed

Product Spotlight

Recently Updated Sources

Legal Note

The content of the postings is owned by the respective author. CSharpFeeds is not responsible for the contents of the postings. This site is automatically generated and cannot be reviewed for abusive content. If you find abusive content on CSharpFeeds, please contact us. Designated trademarks and brands are the property of their respective owners. All rights reserved.

Advertise with us