Tag | XML Posts

Recently on the MSDN forums a question was raised about how to re-style the Commerce Server catalogue when using Commerce Server 2009 within a SharePoint environment. Those who are familiar with SharePoint and web-parts may have reasonable knowledge around the use of XSLT and apply a style sheet to the web parts parameters, however out –of-the-box this becomes a little challenging for people new to the product. To demonstrate how to achieve a basic XSLT transformation, I will demonstrate splitting ...
I've been working a LOT lately trying to get a release out for a client.  I will be back in the next couple of days with my feedback on Houston Techfest, a blog on an application of Open XML SDK 2.0, and more...
I’d like to provide you with a SilverBullet™, a small snippet of Silverlight, a class or namespace hidden in the silverlight .NET framework, to help you out in times of need. It’s not to learn, but something to keep in your pocket. Just remember it’s there and you’re safe. Occasionally it’s required to use an Rss or an Atom feed in your projects. Just to show some news, or the latest update on the stock exchange. Working with these, often large, chucks of xml directly can be a pain. In Silverlight ...
Maybe it is just me, but I’m not a big fan of huge amounts of XML configuration. I can get by with a few name-value pairs in an app.config or a web.config but much more makes me nervous that I’m going to mistype something and not know about it until run time. I’ve been using Unity and it has the ability to load up its configuration from the app.config or web.config. Here’s a sample: Yeah…..what else ya got? It offers a “fluent” API for programmatic registration. Sweet! Now I just have to convert ...
At first sight, StreamInsight doesn’t appear to offer any support for dynamic queries. Once you have got over the initial ‘wow’ factor of creating continuous queries over streams using LINQ, rather than some SQL dialect or specialised DSL, the reality hits you that your query is just code. You wrote the LINQ using C# or VB.NET, and you ended up compiling it into some assembly. That’s all very well, but it’s not very flexible. How are you going to store and manage your queries in a repository so that ...
Cet article concerne Visual Studio 2010 Beta1. Les informations peuvent ne pas être véritables lors de la sortie de la version finale du produit. La procédure suivante permet de créer un workflow simple et de le déployer dans IIS 7. Créer un nouveau projet dans VS 2010 : File | New | Project… Créer un projet de type Declarative Flowchart Service Library : Un projet de service sera alors créé possédant un nouveau service Service1.xamlx. (Normalement, dans les versions ultérieures, il ne devrait plus ...
Environment: Windows server 2008 Web Edition + IIS7 + .net 3.5sp1. I had following error while trying to install SQL 2008 express: It happens after click on “Install” button, when setup collected all necessary info, such as installation path, db server settings, etc. Google found 20+ topics on forums, newsgroups and ms connect, but they hasn’t solutions, or solution is for CTP version of SQL 2008. I start setup with admin privilegies, update windows server, repair .net installation – it’s useless. ...
We get Flumphs from several, different providers. Each provider has various settings that the system uses for them - particular URL routes, specific timeouts, etc. In the old Proxy, anything that absolutely had to be client-specific was stored in a configuration file. The timeout limit was universal. Here's the kicker - the only thing in the Flumph that gets sent to us that clues us into the provider is the structure of the XML. Since our Flumph providers delight in sending their own formats, we ...
There are lots of places we can use XML 1. Where we need a place to hold some data, can read / write / manipulate without having any database. Even we can use textfile, but XML is more flexible – say which field, what is the data type, etc., if we use text file, we need to predefine what is the sequence of each column and what dataype etc., 2. Where we need to transfer some data from one pace to another like one layer to another, one tier to another etc., – we can serialize the xml and deserialize ...
Today, I was assigned a task at work, which involved taking a CSV format flat file and submit it to a third-party web service. Well the webservice that the data needed to be posted to, is not a .NET based webservice, so the hook-ups needed to be done manually. The webservice is setup to accept an ISO Standard XML format called ADF, it's an eLead based schema used within the automotive industry to exchange prospect data from system to system. I took a look around Google, but wasn't able to find a ...
In this Issue: Mark Tucker, Fredrik Normén, Silverlight Toys, Nikhil Kothari, David Poll, Terence Tsang, and Bea Stollnitz. Shoutouts: If you had trouble with the SilverlightSpy site, it's back up now, so go get a copy to try! From SilverlightCream.com: Hidden Object: Episode 3 – Marking Items off the List In this espisode of his game development series, Mark Tucker creates hotspots for selecting items and marking them off on the game board. Create an automatic scrollable image slider in Silverlight ...
My first actual project with regard to our systems was to write a new Proxy. I'm going to have to be a little ambiguous, once again, because I don't want to give away any proprietary or quasi-proprietary information. One of our major systems serves as a sort of brokerage for Flumphs (I'm going to compensate for being ambiguous by being completely ridiculous about it). Flumph providers constantly feed our system with information about new Flumphs. Flumph-consumers have given us their criteria they ...
ASP.NET MVC Reports in ASP.NET MVC Integrating OpenID in an ASP.NET MVC Application using DotNetOpenAuth Microsoft Chart Controls to PDF with iTextSharp and ASP.NET MVC Setting Up ASP.NET MVC with NUnit for Visual Studio 2008 Standard Edition ASP.NET MVC ExtJS using LINQ Using ExtJS Grid with ASP.NET Ajax WCF WebServices & C# How To Get Started With Selenium Core And ASP.NET MVC ASP.NET MVC Cheat Sheets ASP.NET How to Implement Trackback Handler in ASP.NET How to Implement Pingback Handler in ...
REST REST strictly refers to a collection of network architecture principles which outline how resources are defined and addressed. The term is often used in a looser sense to describe any simple interface which transmits domain-specific data over HTTP without an additional messaging layer such as SOAP or session tracking via HTTP cookies. REST Principles: Application state and functionality are divided into resources Every resource is uniquely addressable using a universal syntax for use in hypermedia ...
If you do a search for enabling out of browser mode, you’ll come across blog entries suggesting to tell you to add something like this in your AppManifest.xml file: You may be getting an error when you try to run this saying that… Unknown Element: Deployment.ApplicationIdentity Because Silverlight evolves so quickly, sometimes info online can become outdated. It turns out that in the release version of Silverlight 3 the above solution is obsolete. To enable OOB mode, here’s what you do: Go to your ...
Well, today I spent most of the day, trying to find an alternative way to render an SSRS Report to the page, other than the report viewer control. Based on a comment on my last post on this, I decieded to dig into the ServerReport.Render function. Well, this sounded/looked promising, and I was quickly able to write a neat little wrapper object, exposing the various formats as properties. I then proceeded to create a special IRequestManager for reports, and some other stuff to nicely integrate it ...
One of my friends read my last post and, after an analogy involving candy stores and Japanese wrappers (or was it Japanese rappers? I think both would have worked), I decided it might be a good idea to put up some sample code to demonstrate some of the things I was talking about. I'm going to use some test code from the MVC module - mostly because I'm the most deeply into that code right now, but also because writing my own MVC framework makes me look like a total stud. At least to people who consider ...
If you have ever wondered why your .net application has a slow startup performance you normally start watching with Process Explorer at your processes. But this will not always give you the full picture since it can loose some csc.exe calls because if you have a fast machine it will not get them. A more reliable tool is Procmon where you can look for process starts: Where do these compiler invocations come from? It turns out that XmlSerializer is to blame which generates a C# file in your TEMP folder, ...
For many customers the ROI on software licences is one of the key factors when purchasing software, so when deploying an e-Commerce solution the level of return for frameworks, and CMS platforms such as Commerce Server and MOSS are quite justifiable, however it is the extra features – such as the Store Locator that is difficult spending licensing money on. The current store locator within CS 2009 is based on a commercial Microsoft Virtual Earth web-service, which is provided for non-developer used ...
Let's face it: Setting up NHibernate is not one of the easiest tasks. You need a good knowledge of the system, and you need to write some configuration xml to your config files (well, normally). This is not such a big deal for the main project, since you only have to do it once in a project's lifetime. But you also have to care about setting it up for each and every test project that uses NHibernate, and there might be a lot of them if you're consequently unit testing just about everything. So, wouldn't ...
In this Issue: Michael Washington, Damian Schenkelman, Allan Muller, Katrien De Graeve, Rob Eisenburg, András Velvárt, Andrew Duthie, Terence Tsang, Imran Shaik, and John Papa. Shoutout: Walt Ritscher is back to his "Reflection on Design" series with Reflecting on Design #17– Kinetic Animation of Blink 182 ... he has a link to all of them or you can find them at SilverlightCream.com using the search page. From SilverlightCream.com: Silverlight Bridge - A Silverlight File Manager Wow ... check out ...
Download Sample Code MVVM Playground Have I mentioned lately that I love the MVVM presentation pattern?? If I haven’t please allow me to do so now. It makes unit testing much much easier, the clean separation between logic and presentation makes me feel all warm on the inside, and (Blendability) those designers in the black turtle necks can run off and build an awesome UI in XAML while us devs write our code in peace :) Ahhh, so ok there are some issues that we are going to run into in the MVVM space. ...
I had looked up the LoadControl(“”) method earlier today, and came upon a short website entry that quickly discussed how to load a web user control (.ascx) dynamically onto a page. The link is: http://www.codeproject.com/... It mentioned inside that a CMS (content management system) could be built using this method + a database table to track these controls. It got me intrigued, so I decided to pursue it. It’s pretty simple, and actually adds a lot of cool functionality ...
Hooray…Labor Day weekend….free-time…..yea me! Yeah right! Stealing time is not an easy task, trust me. After I posted my article on “ClickOnce Hosting with Amazon S3”, Andy over at cloudberrylab asked me to give their app “CloudBerry Explorer for Amazon S3” a test drive. After moving to AWS S3, I haven’t had much time to track down many S3 apps for my tool box, so I decided to give this a shot. I pointed my browser to cloudberrylab.com and off I went. After checking out their blog section and watch ...
Running unit tests after a successful build with Team Build 2008 can be a tricky thing.... especially when you test your localization using satellite assemblies. Out of the box this cannot be done in Team Build 2008, you need to tweak some files to get it to work properly, but which ones??!! This article should help you solve similar problems in your build environment. I had this problem where all localization tests would work on my developer’s workstations but would systematically fail on the build ...
Adding a new user to a site looks like this: public static void AddPrincipalRoleToSite(SPPr... entity, SPRoleType role, SPWeb web) { SPRoleAssignment roleAssignment = new SPRoleAssignment(entity); SPRoleDefinition byType = web.RoleDefinitions.GetByTy... roleAssignment.RoleDefiniti... web.RoleAssignments.Add(rol... } Principle is the parent object to SPUser and SPGroup. Therefore you can use this method and send both user or group in and it will add it to the ...
Generally, it is not recommended to store passwords in the binding file and by default BizTalk administration UI clears it out when exporting binding to the xml file. But in development environment where you have automated continuous integration build and deployment not having password in the binding file will prevent application from starting and CI process fail. It can become tedious in staging deployments (TEST, UAT) as well, especially if you have multiple endpoints that use accounts with passwords. ...
Create a rss or atom feed is very simple in asp.net mvc. In V1.0 there isn’t a build-in mechanism to work with feeds, however we can very quickly build our own. All we have to do is create a xml structure accordance with their specification and new ActionResult derived class to handle the result. But let’s start form beginning. The first of all, we need to create a new MVC project and call it e.g. RssFeed. The data for feeds will be taken from database, so we have to build model. Let’s create a new ...
A Patch Theme that fixes some renedering issues for version 6.3.9 was released. Fixes for these issues have already been implemented in the upcoming version 6.3.10 and will also be relased with that version. The patch is a VWG v6.3 Theme. There is no installation required for using it. All you need to do to use it is: Either add the project or the assembly to there references of your Visual WebGui Application project Register the Theme with the name "PatchTheme" and select it as the default theme, ...
In the BizTalk Build Generator there is a tasks library containing tasks which will allow you to easily extend the generated build scripts with some of the common scenarios. Previously I have discussed using the BAM and BRE tasks and this post will show how to use the SSO tasks. Within the library there are the following tasks which are aimed at configuring SSO (primarily for the configuration application scenario). Task Description Delete Application Deletes an SSO application CreateConfigStoreApplication ...
Hello, this is the 6th part of the IoC Containers series. This is the last container I’ll explore. I’ve been using it at work because it’s got the “Made by Microsoft” insignia and it seems the policy is that anything done at Microsoft is good for use. Bet that happens to you also. I’ve downloaded what I hope is the latest version from codeplex. Our Bootstrapper code is now public class Bootstrap { public static IUnityContainer Components() { IUnityContainer container = new UnityContainer(); container.RegisterType<I... ...
Hi, this is part 5 of our series on IoC containers in .NET. I’m only using them on a simple console application that provides autocompletion for the functions that the application exposes. We started with an introductory article, then we used Autofac, StructureMap, Ninject 2 beta and Spring.NET. In this article I’ll cover CastleWindsor a bit. These files can be found on sourceforge at the following address http://sourceforge.net/proj... Like StructureMap ...
Hi, nice to have you read this again. This is part 4 of the series I’m doing on the existing .Net IoC Containers that I found interesting. After a brief introduction of what is an IoC in my option, I presented Autofac,,StructureMap and Ninject2. In this post we’ll be exploring the Spring.NET IoC container. This is a xml configurable IoC by design. I’m using the latest version of it Spring.NET 1.3 RC1, hopefully it’s stable enough and that it brings something new to the table, by new I mean it uses ...
I wanted to use Ninject 1.0 but I discovered that it didn’t support named binding, and didn’t know how to resolve multiple bindings to an array. Luckily I found the Ninject 2 post it’s way better than the previous version, and the changes were almost a no brainer. Hy, this continues the series of posts on IoC Containers in .NET. We are using these continers on a simple console application that autocompletes it’s functions. I’m mostly displaying the configuration part of the IoC, an overview of this ...
This is an interesting IoC project that I used in a couple of occasions, nothing big, but I sure enjoyed it immensely. Autofac is wrist friendly so to speak and it tries to solve your configuration problems in a simple and concise manner. Without further ado go at http://code.google.com/p/au... to get the latest version. Next I’ll try to create a simple example that I hope we’ll use for the most part of this series. In learning the inner workings of IoC containers we’ll develop a console application ...
Disclaimer: This is a series of posts in which we’ll go through the IoC’s that are used in today’s applications The most simple answer I can give you is this: It’s an abstraction over Factory Method. It helps, in my opinion to think of this as a factory method, because then you know what to expect of it, since it constructs/resolves a specific implementation based on the configuration you provide it. In a factory method you write, aka “hard code”, the implementation you will be using. In an IoC container ...
A few weeks back I was doing some pokin’ around the ol’ web regarding reading XML from somewhere (database, file-system, the trunk of your car) and into an .NET object. In case you weren’t aware…it turns out .NET makes doing this type of work nothing short of trivial. <slightly off-topic background info> That is, if you had XML that you [stole from MSDN] that looked like this… <?xml version="1.0"?> <book> <author>Gambardella, Matthew</author> <title>XML Developer's ...
In my continued exploration of C# 4.0, I wanted to put together a simple example of using the C# 4.0 “dynamic” keyword in conjunction with IronRuby. I’ve been shocked at how difficult it was to find code samples on the internet that actually do this. With much persistence (and some significant pointing in the right direction from Justin Etheredge) I got my simple example working. Given that there aren’t many great examples of calling IronRuby from C# 4.0 out there, I figured I better post the code. ...
I'm keeping the last, up-to-date version of the Naming Conventions on the Microsoft TechNet site. Version 3.1 2012-05-14Version 3.0 2011-12-26 [Added a Namespace term, it simplifies everything. Extracted the Orchestration conventions into a separate document.]Version 2.2, 2011-01-05Version 2.1, 2009-08-09 Here is the BizTalk Orchestration Naming Conventions ---------------------------... rules The “Naming guidelines for the .NET Framework types” are used ...
In the last week, I have been working on a project that involves web services. It has been an interesting project, SharePoint projects are always a surprise in that code is supposed to work a certain way and it never really seems to work the way it's supposed to. I feel as though i need to apologize for this post because it's kind of a rant. I still feel like it needs to be said. If someone out there is going to blog please post up code that is your own! and more importantly post up code that actually ...
I just downloaded the application styles from here and try to use, but thrown the unexpected error: “The tag 'Expander' does not exist in XML namespace 'clr-namespace:System.Windo... According to Ensuring That Your Silverlight 2 Applications Work with Silverlight 3, in the entry 3.1: 3.1 DockPanel, WrapPanel, Expander, HeaderedContentControl, Viewbox, DataForm moved to the Silverlight Toolkit The following controls and types have been removed from the Silverlight ...
It’s 6am and I am bored, so I thought I would give you a quick heads up on what’s coming in the next version of SAF (due by the end August). Here’s the Feature list : DSL with Diagram capabilities inside Visual Studio 20008. This is probably been the most exciting one for the release. We have been spending a few months working on a way to create SAF Macros visually via a VS 2008 designer window. This will give you the following advantages : You don’t need to know the Schema for a SAF Macro (which ...
Introduction Well it's now Saturday afternoon and the family have been out shopping all day, so I have taken the opportunity to conduct some tests that I had been meaning to do for a long time now (geek I hear you say). I wanted to find specifically what happens if you want to make changes to Content Types, Columns and Lists that have previously been deployed using Features and CAML. I am going to split my findings up into several posts. I will detail each set of tests then summarise at the end what ...
Introduction In a previous post, I explained my findings with "Upgrading Content Types", but now I want to test out a few scenarios with upgrading Site Columns. On the whole, the test results for Site Columns were pretty similar to that of Content Types. Although, I wanted to test what we can do when it comes to updating site columns that contain data. If you don't want to read each test case, please check out the "Summary" at the end of this post. Test Cases – Removing a Site Column Can we remove ...
*Moved to: Log Elmah errors in Team Foundation ServerI am not sure if this is a good idea, but I was bored one day and decided to add a TFS Error Log provider for Elmah. There are 2 ways you can do this. You can create a new WorkItem type and log an error report for each of the errors or you can create one work item for each error type/title. To do this you can create a title that is the combination of error message and application name and then search TFS for an existing work item. If it exists ...
Introduction: In this post, I will explain you how can we get the countries name filled in any collection using .net without using any database. It is a regular task, which we all as developers did some past day but the difference is we used database table or xml file to hold the country names. But .net framework provide us with all the countries information in Globalization namespace. So, here is the code for that Dictionary<string,string... objDic = new Dictionary<string,string... foreach ...
Yet another internal .NET Team email in my current company, Injazat Data Systems, that I sent yesterday, and am sharing with you as well. jQuery: · Simplify calling ASP.NET AJAX services from jQuery · Use jQuery and ASP.NET AJAX to build a client side Repeater · Reordering invoice lines using jqGrid and TableDND extension · LA.NET jQuery Posts/Articles Agile · Implementing Scrum ASP.NET · Web Development With ASP.NET Learning Material (Course - Source: MSDN Ramp up Learning Program) · ASP.NET Articles ...
Let's say we neede to process a bunch of entities coming from an XML file, create EDM entites for each XML element and eventually persist them. Very trivial to accomplish using a little bit of LINQ. <Roles> <Role name="Admin"/> <Role name="Reader"/> <Role name="Writer"/> </Roles> var doc = XDocument.Load("Roles.xml"); var roles = doc.Element("Roles").Elemen... => new Role { RoleName = (string)x.Attribute("name") }); PermissionsAPIContext context = ...
Ran into a slightly problematic issue today: I was working on an SSRS report project which had been pulled down from source control. The project contains several reports, each of which contains a number of embedded images. I was tasked with developing a number of new reports, each of which had to follow the same styling. All well and good so far, but I quickly realised that the source image files had not also been committed to version control; the images existed only within the XML of the report ...
With Twitter becoming more and more popular, I have always wanted to explore its developer wiki and find out ways to post to Twitter programmatically. While there are a tons of third party tools such as TweetDeck etc., that allow you to tweet right from your desktop, I was looking for a resource that allows me to update my Twitter status from ASP.NET. I stumbled upon this video http://www.pluralsight.com/... for read/write ...