Convert Atom to RSS, vise-versa with 4 lines of WCF code

Posted at: 9/5/2008 at 4:51 PM by saravana
Working with different Syndication format is a real pain, most of the time applications utilizing Syndications converts them to one format to keep their object model simple. This is the technique I used in BizTalk 247 blog aggregator and blogDoc. Converting from one format to another is a real pain, you need to use either custom XSL or your own object mapping. Not anymore if you got WCF SP1, with the introduction of System.ServiceModel.Syndication it abstracts all the underlyi... [More]
Tags: | |  
Actions: Email this article Email | Kick it! | DZone it! | Save to del.icio.us | Technorati Links
Post Information: Permanent LinkPermalink | CommentsComments(1) | Comments RSS

Create safe File Name from string using .NET 2.0

Posted at: 5/19/2007 at 10:32 AM by saravana
Recently for one of my weekend project I wanted to create a safe file name from a string. In the past people used to do lot of regular expressions and conditional testing to meet this requirement. Still the filename won't be safe across multiple environments (Windows 2000/XP/2003 etc). But with .NET 2.0 using couple of inbuild functions (Path.GetInvalidFileNameChars and Path.GetInvalidPathChars) you can create safe filenames. Hope this piece of code will be useful to someone. ... [More]
Tags:  Categories: .NET
Actions: Email this article Email | Kick it! | DZone it! | Save to del.icio.us | Technorati Links
Post Information: Permanent LinkPermalink | CommentsComments(8) | Comments RSS

BizTalk 2004 and .NET 2.0

Posted at: 5/8/2007 at 2:41 PM by saravana
  Under which version of .NET Framework my code is going to run? I came across this interesting question in BizTalk newsgroup, "I am just wondering though how my local computer knows which CLR to load for the BizTalk Server 2004 Orchestrations when there is no entry in the BTSNTSvc.exe.config file to specifically point to the .NET 1.1 Framework when .NET 1.1 and 2.0 Frameworks are loaded to my computer. ". Here is my explanation: Applications that do not carry ... [More]
Tags: |  Categories: BizTalk 2004
Actions: Email this article Email | Kick it! | DZone it! | Save to del.icio.us | Technorati Links
Post Information: Permanent LinkPermalink | CommentsComments(8) | Comments RSS

How to create an invisible .NET Application?

Posted at: 2/5/2007 at 6:35 PM by saravana
Formless application or in my terms invisible .NET applications. I recently end up in a situation where I want to run my console application on a regular schedule via Scheduled task. Problem with that is, it opens ups the schedule every time it runs the application. There were few suggestions in the newsgroups to create a Windows NT service, or WinForms application and make the form invisible etc, etc. None of them were appropriate for me. At last I ended up with a quick and efficie... [More]
Tags:  Categories: .NET
Actions: Email this article Email | Kick it! | DZone it! | Save to del.icio.us | Technorati Links
Post Information: Permanent LinkPermalink | CommentsComments(0) | Comments RSS

Microsoft.BizTalk.Gac.Fusion, Access denied Exception and GAC is empty

Posted at: 1/8/2007 at 7:56 PM by saravana
  Once in a while you get the following error while trying to compile/build the BizTalk project (With few more Access denied errors and some HRESULT values). Error 2 at Microsoft.BizTalk.Gac.Fusion.IAssemblyCache.InstallAssembly(AssemblyCacheInstallFlag flags, String manifestFilePath, FusionInstallReference referenceData) at Microsoft.BizTalk.Gac.Gac.InstallAssembly(String assemblyPathname, Boolean force) at Microsoft.BizTalk.Deployment.BizTalkAssembly.GacInstall(String ... [More]
Tags: | |  Categories: .NET | BizTalk General
Actions: Email this article Email | Kick it! | DZone it! | Save to del.icio.us | Technorati Links
Post Information: Permanent LinkPermalink | CommentsComments(22) | Comments RSS

GAC your assemblies with one click!!

Posted at: 12/19/2006 at 8:04 PM by saravana
  We BizTalk developers often get frustrated with this assembly GACking stuff. Here is a cool registry setting which will make our life little bit easier. Copy and paste the code into a notepad file and save it with extension .reg. Double click on the file and its all done. ------------------------------------------------------- Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\dllfile\shell\GAC-It\command] @="c:\\windows\\Microsoft.NET\\Framework\... [More]
Tags: |  Categories: .NET
Actions: Email this article Email | Kick it! | DZone it! | Save to del.icio.us | Technorati Links
Post Information: Permanent LinkPermalink | CommentsComments(17) | Comments RSS

System.Diagnostics.Process, RedirectStandardOutput process hanging

Posted at: 5/25/2006 at 11:19 AM by saravana
In one of our internal web app's developement, we were executing an console applications with certain arguments synchronously and were trying to display the results in the front-end. When we activate the process I can see the process getting kicked-off in the task manager and it never exits, after a time period (IIS timeout setting), the web app times out. At the end we figured out, the reason is due to an dead lock condition between the parent process (w3wp) and the child process(cons... [More]
Tags:  Categories: .NET
Actions: Email this article Email | Kick it! | DZone it! | Save to del.icio.us | Technorati Links
Post Information: Permanent LinkPermalink | CommentsComments(14) | Comments RSS