Tag | XML Posts

I believe it was Joe Levi who was running into vista vs. Visual Studio 2005 memory issues while compiling our latest build of www.lifetime.com . We both run Vista as our development environment (We watched all the sessions at mix07 and vista looked like it worked fine with Visual Studio 2005 + 2 hours of patches). We did some MSDN surfing and found a way to clear the memory within Windows Vista ( basically it kills all idle running applications). Here is how: Create a shortcut: Add Location of Shortcut: ...
Lets Say ... you are working on a COM component in C# that will wrap a Web Service. Callers of your object \ class want to use a particular web service but can not access it directly. So instead they are going to user your COM object as a proxy. One of the things your COM object must do is mirror a class in the Web Service. There is a method call to GetSomeStuff() that returns a Stuff object. public Stuff GetSomeStuff(){.... The client consuming your object has no reference to SomeWebService.NamePace.Stuff ...
I was looking at the site Visual Studio Gallery at what was available as plug-ins for the new VS2008. Here are some that I know are cool and others that looked rather promising: PowerCommands for VS2008 This seems to be the most viewed one and it does add a lot of quick and easy commands to your right-click menus. Commands include quite a few include Open Containing Folder and Open Command Prompt. Nice one. Source Code Outliner Look at your code in a treeview to easily access methods, properties, ...
So, I decided to put my custom GridView in a AJAX UpdatePanel. This was my first serious exposure to AJAX (asp.net). I discovered that I was having major problems. I kept getting an "unspecified error". Because it occurred whenever I clicked on a row, I assumed it had to do with the JavaScript I wrote for the GridView. I did tons of web searching about how to properly use script in a controlled wrapped in an update panel. I tried a few things, including embedding the script and registering the script ...
This is part one of a multi-part post where I will show some of the techniques we've been using to parse NIEM XML documents using LINQ. Microsoft has definitely put a lot of time into thinking out the System.Xml.Linq features. When working with NIEM XML the essential thing to remember is that the only thing that ever really changes is the name of the tag and sometimes the namespace. This makes NIEM very easy to parse with LINQ because LINQ does not look at an XML document like the DOM - a hierarchical ...
A lot of the applications I work with utilize SQL Server Reporting Services (SSRS) for reporting. I was shown a way by the previous owner of an app to make a table show up in green bar (alternating colors). I added a function to the XML code for the .rdl to determine if the row is odd or even. Then I would add a <BackgroundColor> entry to each item in the table (again in the XML). It never took too long but was a bit of a pain to setup. I recently found a MUCH easier way. All you have to do ...
Update: IoC and Unity - The Basics and Interception As Grigori Melnik noted on my blog previously as well as his own, there was a brand new drop of the Unity Application Block as of March 4th. This by far was a huge update with a lot of breaking changes. That teaches me to use a CTP of any product and blog about it actively as it compares to other Inversion of Control (IoC) containers. Glad I didn't do a lot on ASP.NET MVC just yet but I have a few good projects going on the side with that now. Where ...
The Microsoft MIX08 conference is going on this week and even though I didn't go this year (maybe next year or ReMix) there are enough people blogging about what's happening at the conference that you can still keep up with most of it. There were a lot of big announcements during the keynote and the first day of the conference, including the first public beta of Internet Explorer 8. This release is primarily focused on web developers and designers to give them as much time as possible to validate ...
Microsoft Data Platform Rich data services from SQL Server Using of course SOAP REST and APP within SQL Server SSDS. Live contacts has ADO.NET Connections... SYNC Framework synchronize contacts between endpoints. pulling or GET from url into xml or web service. Metadata file with Vcard info. No invoke needed within browser just service on box? SQL Server Data Services: Application Agility Scales without limits Business Ready SLA Scalable or downgradable to 2005 or 2000? SQL Server Data Services Layers: ...
I am a huge fan of Pablo Castro(the presenter). Astoria has become ADO.NET Data Services Framework. Data in the web: Ajax applications Silverlight applications Online Services Mashups Restful Interface for Data: Just Http Data as resources, HTTP methods to act on it. Uniform URL syntax Every piece of info is addressable Multiple representation Use regular HTTP content-type negotiation Atom, JSON, Plain XML Book: Restful Web Services Drill down data using Astoria(http request or get) Model and Operation ...

Joe Stegman, Mike Harsh

  • V2 Beta1 today
  • V2 Beta2 (go live) in Q208
  • No date for final release yet

Read the rest of this entry »

Applications interact with the outside world. mmm? Mashups and such. ok Many types of outside data.... Images RSS Business services Intranet services Mashup API's silverlight1.1 xaml and fun -no easy way to connect to other services. What does client code look like? Custom services. Recommended uses of services in silverlight Using silverlight front end connecting to webservice or database directly. Using C# void list<product>getproducts (string searchstring) Create service Define What does ...
I found this nugget of a tool today. I haven't tried it out yet, but it sounds like one terrific tool. http://www.microsoft.com/do... The SQL Server Management Pack monitors the availability and performance of SQL Server 2000 and 2005 and can issue alerts for configuration problems. Availability and performance monitoring is done using synthetic transactions. In addition, the Management Pack collects Event Log alerts ...
Update: Fixed code changed from CTP and More in the series: IoC Container, Unity and Breaking Changes Galore I just wanted to revisit the whole Unity Application Block just once more to look at a few more things including handling parameters, instances and so on. If you hadn't seen, there was another source drop of Unity as of 2/26, so if you haven't picked it up, feel free to do so here. So, we're going to continue our look at DI and IoC containers as they pertain to different needs. I'm not going ...
Right, the virtual server is up and running...time to soak up some SharePoint...get some dnrTv episodes down my throat. Sahil Malik recorded a series of SharePoint episodes, 4 in fact. He starts with what happens when SharePoint is installed and finishes with some massive XML files for a Business Data Catalogue application. Tip: They are an hour long, so watch it in fast mode, the talking speed is still good and it only takes 30 mins to watch. Session 1 Session 2 Session 3 Session 4 Note: You can ...
For quiet some time, I wanted to understand JSON (JavaScript Object Notation) and its advantages. Always after hearing about it, I thought, it is some advance form of JavaScript, but after studying it today, I was surprised to know the advantages of JSON. In the present world, where companies are providing SAAS (Software Applications As Services) over the Web, and applications are mashing-up with other applications... in such scenarios everyone wants to make applications, to be able to exchange data ...
I just released the latest build in binary and source code format on CodePlex. To Subscribe to this RSS feed use this url: http://feeds.feedburner.com... The following items are changes from the previous release: Added support for InputImage in FormHelper (new methods FormHelper.ImageButton()) Added Password Tag Added support for Password tag in FormHelper (new methods FormHelper.PasswordField()) Updated test to maintain 100% on form helper and UI Changed TextArea to use a full Close tag ...
As I wrote about yesterday, I am in the process of building out virtual images with PerformancePoint. I figured out how to rename the server and have both SharePoint Services and PerformancePoint work (see yesterday's post.) Today, while working with the server, I realized that none of my Proclarity views were working. I tried several things and finally I gave up, uninstalled the Proclarity Analytics Server and re-installed it. This worked great in getting it up and running. Only took about 10 minutes. ...
Last week I attended the Black Hat DC 2008 Briefings. The following is a list of the presentations I saw, the key concepts discussed as well as things I found interesting or didn’t know. Summary of Black Hat DC 2008 Briefings DAY 1 - Web App Track Preparing for the Cross Site Request Forgery Defense · A cross site request forgery (CSRF) can be used to force users to submit data to online web applications, sometimes manipulating their local cache or history. · This vulnerability could make a user ...
Does anyone reading this have an XSLT script that determines the number of elements in an XML file (obviously) with a certain attribute equal to a certain value? For example, suppose you have an XML file similar to the following: <root> <someElem Status="closed"/> <someElem Status="open"/> </root> I want to count the number of "closed" items, etc. I have some references and books but it's becoming a big hassle. They all seem to want to specify the query using Elements instead ...
J'ai eu la chance d'assister à une présentation d'un spécialiste de Microsoft la fin de semaine dernière. La présentation visait à décrire en profondeur ce que permettait le ESB Guidance de Microsoft. Ce dernier est en fait une livraison d'assemblies .NET qui s'intègrent à BizTalk et qui gravite autour. En lien avec tout ce qui est SOA, S+S, SaaS, etc., le ESB (Enterprise Service Bus) est un pattern qui vise à faciliter les échanges entre les différentes entitées d'une architecture orientée service ...
I was recently introduced to a UK based publisher called Pact Publishing. They are a UK based publisher and have a book focused on the new Language Integrated Query (LINQ) features available in .NET 3.5 called LINQ Quickly: A practical guide to programming Language Integrated Query with C# by N Satheesh Kumar. The book provides a good overview of LINQ and it's supporting language features, such as anonymous types, implicit typing, object initializers, extension methods, and expressions. It then builds ...
Update: Fixed code changed from CTP and More in the series: IoC and the Unity Application Block - Going Deeper IoC and the Unity Application Block Once Again IoC Containers, Unity and ObjectBuilder2 - The Saga Continues IoC Container, Unity and Breaking Changes Galore As many people who read this would know, I'm a big fan of IoC containers, more in particular Castle Windsor and StructureMap among my favorites. Anyhow, lately, I've been playing with the Unity Application Block from Microsoft Patterns ...
Authentication and authorization is the two basic part of the user-end security in asp.net web applications. After to successful authentication of a user, authorization takes the place according to which the authenticated user are allowed to access to the corresponding resources in the web application. Role based security is very basic requirements in the current trend of web applications. Mostly there are two roles involved, which are registered user and the admin users. However in a web application ...
Great video by Will DePalo on how to securely communicate by digitally signing xml messages. Originally found on MSDN. How Do I: Add Security to Visual Basic and Visual C# Applications with Digital Signatures? Join Will DePalo as he shows you how to tighten security on your XML documents built with Visual Basic .NET and Visual C# by verifying digital signatures. Presented by Will DePalo on January 29, 2008 Length: 20 minutes 19 seconds Video Downloads: ZIP | WMV | iPod | MP4 | 3GP | Zune| PSP Audio ...
The Tampa Bay chapter of the International Association of Software Architects (IASA) is dedicated to building a community of professionals interested in topics related to software architecture. This organization welcomes all interested professionals. Whether you are a senior enterprise architect at a fortune 100 company or an aspiring architect with only a few years of experience. When: 2/28/2008 6:30 PM - 8:30 PM Topic: Introduction to Aspect-Oriented Programming (AOP) Write less code and create ...
I put together a WCF REST over HTTP service and learned a few things along the way. Sample Project The best way to learn about WCF REST is to examine the sample project supplied by Microsoft. This is available at Windows Communication Foundation (WCF) and Windows CardSpace Samples. Once you unzip the download you'll find C# and VB sample projects at TechnologySamples\Scenario\... These simple projects demonstrate everything you need to know. Creating Your Own Project The Visual Studio project ...
Ive recently put together a WCF step for BizUnit to help us with predominantly with projects using BizTalk 2006 R2. However remember that BizUnit can be used without BizTalk Anyway this article will provide some information about the how this is implemented. There is also a link to the sample application at the bottom. In the sample I demonstrate how to call the service in a normal test, then how to use dynamic code and reflection to execute the same test. This dynamic code is basically what is implemented ...
While working on a NIEM parser library I found that you can import XML namespaces at the project level. Previously I posted about doing this at the top of your .VB class file: Imports <xmlns:nc="http://niem.g... That allows you to use the prefix nc: in LINQ queries to work with NIEM documents. Well today I discovered you can add those at the project level. Right click your project and go to properties. In the properties window go to references. Near the bottom you can type ...
I've started to use Asp:menu with XmlDataSource based on Quick Start Example. To show many top level elements I tried to specify XPath, but failed to do it correctly(probably due to missing XML namespace). So I changed the XML schema aa suggested in Asp.Net Menu Control Binding with XMLDataSource and used XPath="/Home/Menu" to not show single root Item. Unfortunately DataBinding doesn't support default properties in XML file.All nodes must have all attributes, specified in DataBinding section. Otherwise ...
Following along on my recent theme of exploring the metadata rowsets and the new Dynamic Management Views (DMV) in SSAS 2008. I have added a new DMV function to the Analysis Services Stored Procedure project (www.codeplex.com/ASStoredP... which is included in the v1.2 release that I put out just before Christmas. This all started off when I decided to look at extending the existing Discover() function to provide for sorting and filtering. And I originally started off by building a wrapper ...
I knew it's there all over the web, and people are still asking, so, let's go through it together! Most simple Visual Studio 2005 add-ins could actually work with Visual Studio 2008. I'm not talking about huge add-ins like Resharper here, but most of the small utilities we find online. If you really want to keep using your add-in, and it doesn't provide a VS 2008 version yet, and you didn't have VS 2005 installed on the machine when you installed VS 2008 (as it tries to migrate the add-in when you ...
Overall, when an incoming XML message contains multiple potential single messages, the extraction process needed to separate the messages out is thought of as "splitting " or "shredding" the message. The splitter pattern then, is a reliable, uniform way to address splitting/shredding throughout your applications. An example for why your application might need to split messages would be something like a single input XML message with multple pension fund benefits for multiple persons which require ...
As I dig into the future of databases, I have found some articles that I want to share with a wider readership. The basic premise of my search is "RDBMS's were developed over 25 years ago, and we haven't come up with something better since?! I gotta look into that" and so starts my education on all of the new stuff coming from those wacky data guys. ;) Shards One thing that I have learned about is scaling out versus scaling up. I have found it to be a very interesting concept, which is large part ...
Problem In all BizTalk projects you come across the old problem of configuration and how to manage the environmental settings when taking your solution from development to other environments. The common scenario is, I work with my binding file and get my solution build and tested etc and then I take it to the testing environments or production and I need to have a new binding file or I need to manually change the settings for ports etc. Obviously any manual steps are usually error prone so this never ...
I'm currently working on a WCF/WF project where we've replaced .NET's DataContractSerializer default with the NetDataContractSerializer. The following is from the MSDN help file: The NetDataContractSerializer differs from the DataContractSerializer in one important way: the NetDataContractSerializer includes CLR type information in the serialized XML, whereas the DataContractSerializer does not. Therefore, the NetDataContractSerializer can be used only if both the serializing and deserializing ends ...
I have just uploaded a new release of MSBuildContrib which brings the current list of tasks to: NAnt/NAntContrib Task MSBuildContrib Task Status Description attrib Attrib Complete Changes the file attributes of a file or set of files and directories. checksum Checksum Complete Calculates checksums for a set of files. codestats CodeStats Complete Generates statistics from source code. concat Concat Complete A task that concatenates a set of files. fxcop FxCop Complete* Analyzes managed code assemblies ...

I've recently had a battle updating Guidance Automation to the most recent release. 

The main issue was I had to remove old Guidance Automation Packages without the original source project.  The only way I found was to an xml file in the C:\Documents and Settings\All Users\Application Data\Microsoft\RecipeFramework folder that contains a list of the installed packages. 

 

I was pondering late last night how can I get along with the new Zune software. No more name calling and bashing the moderators at Zune.net forums. I needed to be a responsible Zunian(no I am not an alien. Just of Zune citizenship) and do more investigating. Here is how the XML is laid out for both the Windows media playlist file and the Zune Media Playlist file. Here is what I found: Windows Media Playlist or WPL <?wpl version="1.0"?> <smil> <head> <meta name="Generator" content="Microsoft ...
I came across a new error message I havent seen before today so blogging about it incase anyone else happens to come across it. The scenario was: 1. my orchestration sent a message to the send port 2. The send port would retry and then suspend with the following error message (which was also written to the event log) "A failure occurred when loading the configuration XML DOM." As sometimes happens the error message is not that clear and there wasnt anything on google about it. The cause of the problem ...
UPDATE: I've recently was adviced that I can use VS command Edit/Advanced/Format Document(Ctrl-K,Ctrl-D) and it does better formating. I 've got XML files as one long string, not formatted. IE explorer shows them nicely with all indentation and ablility to collapse parts. However to edit or compare files using Windiff or Winmerge it will be convinient to have them with short lines, e.g. each element in a new line. Fortunately VS has ability to insert new lines in replace operation. 1.Click Ctrl-H ...
I'm not sure about anyone else but when I come across something that is boring and repetitive I usually get around to doing some tool that minimizes the amount of time I spend doing it. In this case the task that is boring me is writing the repetitive C# code to call BizUnit to make it run your tests. I'm sure there are lots of different ways you could do this but one day when I was stuck waiting for a while at the airport I got bored and decided to do something to stop me having to do this. Aim ...
Any C# project can contain Workflow definitions. They're just code file and/or XAML files. The trick is getting Visual Studio to recognize the project as supporting worfklows for design-time support and compilation. To enable a project for Windows Workflow,: Open the project in visual studio. If you're using source control check out the project file so it becomes writable In the Solution Explorer, right click and select Unload Project . The project tree will disappear from the solution explorer and ...
A while ago, I talked about Microsoft releasing the source code for the .NET Framework in order for you to debug it through Visual Studio 2008. Just a few days ago, it was finally released. Shawn Burke has an excellent and detailed post explaining how to set this up and also has a trouble shooting section. Currently, the following libraries have been released: NET Base Class Libraries (including System, System.CodeDom, System.Collections, System.ComponentModel, System.Diagnostics, System.Drawing, ...
Scott Guthrie[MSFT] announced the availability of .NET fx 3.5 library source code as promised. (Setup and how to use) Quote from the announcement: Specifically, you can now browse and debug the source code for the following .NET Framework libraries: .NET Base Class Libraries (including System, System.CodeDom, System.Collections, System.ComponentModel, System.Diagnostics, System.Drawing, System.Globalization, System.IO, System.Net, System.Reflection, System.Runtime, System.Security, System.Text, System.Threading, ...
One of my new year's resolutions was to start blogging on a more regular basis, and here I am on January 16th with my first post of the year. It's amazing to look back over the past year and see how much technology has changed, at least in my little world. I have been an xml geek for the better part of this century (sounds more impressive that way than saying around 8 years). I still love xml, but begun exploring several other paths over the past 12 months (ESBs, Ajax, Silverlight, Orcas, etc.) before ...
.NET's XMLSerializer can be pretty stupid. It refuses to serialize an object if its properties are of a derived type. Consider the following example: [Serializable]public classPerson{ public stringFirstName { get; set; } public stringLastName { get; set; }}[Serializable]public classSalesReceipt{ publicPersonCustomer { get; set; }}[Serializable]public classEmployee:Person{ publicDateTime DateOfHire { get; set; }}public classtrythis{ public voidmain() { Employee employee = newEmployee{ DateOfHire = ...
The short answer is you can't. At least not without some trickery and giving the serializer some help, and even then it's not pretty. Here's the plain-jane implementation. Note: The following snippet WILL NOT WORK public interface IWorker { string WorkerName { get; set; } } [Serializable] public class ImplementedWorker:IWorker { #region IWorker Members public string WorkerName { get; set; } #endregion } [Serializable] public class WorkToDo { public IWorker Worker; } public void Tryme() { WorkToDo ...
Scott Hanselman beat me to the punch, but come Feb 14th, our latest and greatest edition of the Professional ASP.NET book is coming out. The book has a ton of new content and was exciting to put together - but man, did it take some serious time to do (especially when all three of us have real jobs, kids, newborns, animals, etc to deal with). The book is big ... really BIG - 1728 pages, so it can serve many other useful purposes after you are done reading it! :) The book description from the WROX.com ...
Yesterday, I have some ideas in my mind on how to give out ValidationRule errors after the values passes the converter, and I was trying to see if I can use Attached Properties for that. When trying to do this, one of the things I'd like to do was set a control's text to the Attached Property's value and that's when I realized that I don't know the syntax to do that. A quick Google search yields some results; someone asked the same question and the answer suggested using parentheses. The following ...