Click here to access my new Blog http://blogs.msdn.com/ahmedfarrag

Tuesday, December 26, 2006

Calling .NET Assembly from Biztalk Server 2006 Orchestration

I have working for a while on multiple Biztalk Server project and I have also recently delivered a workshop on this great product,,

I have decided to share the samples I have made during the workshop for those who are interested in learning this product.

one of the these samples shows how to call .NET assembly from an orchestration, all you have to do is simple, declare a variable and choose it's type to be from the class you created, initialize this file and then call it's method,,, !!! Very simple, isn't it.. ?

the class has to be a "serializable" class since all the objects in Biztalk are XML objects,

to download the complete application with source code Click here

have a nice time Biztalking :)

Cheers,
Ahmed

Saturday, October 07, 2006

Enterprise Library Famous Security Exception

Today , i was working on packaging an ASP.NET Web Application that uses the Microsoft enterprise Library, for some reasons after making the web setup project the application gave the famous security Exception of the Enterprise Library it said " Denied access to the registry " !!! ..

after googling for a while i came across a very neat tool published by"Mohamed Sharaf" on his blog- to install the DLLs of the EL using the installutil.exe tool.

the link is found here

Press Here

i modified the application and made in inside an installer class and put it in the web setup project, and it worked like a charm !!!

Thursday, July 13, 2006

Storing the ViewState in Session variables !!

Hi all,

i was working today on optimizing a page that took lots of time to load, the first thing anyone will think about is the images sizes, viewstate and caching .. i tried to remove the view state from the controls that didn't need it , but still , it didn't help alot, besides some controls like the datagrid needs the viewstate to function well, so i have decided to find another place to store the viewstate .. !!!

when you override the functions "LoadPageStateFromPersistenceMedium" and "SavePageStateToPersistenceMedium" in the page, you can then save the viewstate to a session variable, that way the viewstate will not be a burden on the size of the page no more :) , so finally i got the perfomance better :D ..

he is a code that does this.

protected override object LoadPageStateFromPersistenceMedium ()
{
string key = Request.RawUrl + "_VIEWSTATE";
object state = Session[key];
return (state == null) ?
base.LoadPageStateFromPersistenceMedium () : state;
}

protected override void
SavePageStateToPersistenceMedium (object viewState)
{
string key = Request.RawUrl + "_VIEWSTATE";
Session[key] = viewState;
}





Enjoy :)

Sunday, April 16, 2006

BSM 2005 Unleased

Hi All ,,

i have been investigation in the Bussiness ScoreCard Manager 2005 for quiet a while, i'll start a pilot project using this tool very soon..

BSM 2005 is used to create business score cards, the source of data for these scorecards could be multidimensional data or relational data, the BSM builder (the tool that you use to create reports) conncet to two type of datasource
Multidimesional
ODBC.

i have tried to apply a sample today for the building of a ScoreCard based on an Excel sheet.

I have to say, it's not a straight forward task, however, there is a very usefull blog for the installation tips and tricks.

http://blogs.msdn.com/bsm

so good luck with your BSM work !!

Sunday, March 26, 2006

Welcome To My Blog .. !!!

Dear All,

I have been working in the field of software development for quiet a long time now, and recently I had the chance to implement some new technologies, so I decided to start my blog where I would be able to share my experience with all my friends and teammates.

I’ll try to post as many articles about some technologies I have been exposed to including the Microsoft Content Management Server 2002, Biztalk Server 2004 and Business Scorecard Manager; besides the traditional ASP.NET/Web Services applications.. So if you have any specific topics that you would love to read about it more in this blog, please share them

My aim is to make this blog “The (Relaxing) Lounge" where developers could share their questions/concerns/likes/dislikes etc. And I believe knowledge is not something to be owned by someone, it's made to be shared, so let's start sharing It.!!!


Regards,
Ahmed