Wednesday, 20 January 2010

Error: Exception has been thrown by the target of an invocation

In our BizTalk project, I have used a C# helper class, whose method uses Microsoft’s Enterprise Library to invoke a SQL-stored procedure. The SQL stored procedure does some data validation and raises errors for business validation errors using its RAISERROR keyword.

When our tester was testing the above application, they had this strange error

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> <<SQL Server’s error message>>

But the expected error is the <<SQL Server’s error message>> only  which has been appended wrongly with the strange error “System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation”

After spending sometime, I found out that the problem could be due to “Instrumentation” in Enterprise Library. So I installed the “Instrumentation” from

Start -> All Programs -> Microsoft pattern & practices -> Enterprise Library 3.1 – May 2007-> Install Instrumentation

It solved the issue.

Saturday, 9 January 2010

Resources on testing with BizTalk Server

Michael Stephenson has shared his resources and reference on testing with BizTalk Server.

http://code.msdn.microsoft.com/BTSTestGuide

Thanks Michael.

Cheers

Thursday, 7 January 2010

Powershell providers for BizTalk Server

I was reading the latest edition of BizTalk Hotrod magazine, one interesting article which captured my eye was PowerShell provider for BizTalk developed by Maxime Labelle, Michel Hubert and Randal van Splunteren.(Page 42 onwards: http://biztalkhotrod.com/Documents/Issue8_Q4_2009.pdf)

Microsoft also announced its out of box support to PowerShell for management tasks in its BizTalk Server 2009 R2 release which is expected this year. (http://www.microsoft.com/biztalk/en/us/roadmap.aspx#2009r2)

Interesting to see Microsoft’s effort to next generation technologies to replace scripting languages and batch files for the management task. The obvious benefits of PowerShell over the scripts and batch file is object oriented programming model and much better debugging facilities.

I am going to try the PowerShell provider for my BizTalk Server 2006 projects before Microsoft’s PowerShell providers in 2009 R2.

BizTalk (BRE)Business Rules Engine “Failed to Load” error

One of the common error, we would encounter while working with BRE –Business Rules Engine is “Failed to Load”. Most possible cause for this error is the reference assembly is missing in GAC. It’s obvious to identify this cause, as the reason is given very descriptive as shown.

I had this same issue, so GACed the missed the assembly, then reloaded the policy (either by pressing F5 or by physically re-loading the policy). But the error still persisted. Then it reminded me the IDE cache error we all would have encountered during the pipeline development. So the solution is “Just close and open the IDE-Visual Studio again”

clip_image002

I am sure this no-blogging error, but for me. As I have mentioned in my profile, this blog is a knowledge base repository for me, where I store all the things I learn at work so that I can reference latest. If its useful for you as well, I am happy otherwise you have the whole world of web to spend.

Monday, 27 April 2009

Saturday, 21 March 2009

Free ASP.NET MVC eBook Tutorial from ScottGuthrie

If you're interested to learn about the Microsoft's new ASP.NET MVC framework, this ebook is for you and its completely FREE (legal also). This is the first chapter to the Professional ASP.NET MVC 1.0 book from Wrox. The 185 pager guides you to create a simple, but complete ASP.NET MVC application from scratch. I have just started to read this ebook, I should say that this is an excellent ebook which I have read in the recent time. Not only ASP.NET MVC framework, even If you're new to
  • Using Visual Studio 2008
  • LINQ to SQL
This step-by-step ebook is a must read for people who want to start learn ASP.NET MVC framework. At the end of this ebook I am sure to get satisfaction of complete ene-to-end learning experience for a new concept. Excellent work Scott and Wrox for sharing with all of us for FREE.

eBook: http://aspnetmvcbook.s3.amazonaws.com/aspnetmvc-nerdinner_v1.pdf
Details from Scott's Blog: http://weblogs.asp.net/scottgu/archive/2009/03/10/free-asp-net-mvc-ebook-tutorial.aspx

Cheers

UK SOA/BPM User Group Meeting - 26th May 2009, London

The UK SOA/BPM User Group Meeting has been announced which is scheduled to take place on Tuesday, 26th May 2009 at Microsoft’s London office between 6pm - 9pm.

Date & Time: 26th May 2009, 6PM - 9PM
Agenda: 6:00 - 6.10 Introduction
A quick catchup on user group related things.
6:15-7:10 Welcome to Ascentn
Ascentn will be introducing their ISV offering and what it offers UK Professionals in the development of BPM Solutions.

7:30 - 8.30: Still open for volunteers, interested people can contact Mick
Registration: http://sbug20090526.eventbrite.com/
Details: http://sbug.org.uk/forums/p/122/174.aspx#174

I have registered a place there, meet you there..

Thanks Nick for sharing this info, I have found it in your blog.