Monday, December 31, 2007

System.Configuration for a class libray.

i was writing a httphandler(class library project ofcourse), i needed to log a value into the db, so i needed a connection string from the web.config, i imported the namespce(System.Configuration) in to the class and all i could do was only access the AppSetting part of the config file.

In order to access the connection strings add a reference to the System.Configuration.dll to the project.

Strange......

Monday, December 17, 2007

Funny Word Web Message


I use Word Web for( you know what), it throwed the following message when i used it for 30 days
Funny........................

Saturday, December 1, 2007

Debugging WCF LOB Custom Adapters

1) Gac the assembly
Install the WCF LOB Adapter assembly in the GAC and click Run and paste the following %systemroot%\assembly\gac, navigate to the msil folder(the .net 2.0 assembly are installed here) find your assembly and copy the pdb files in to it
your assembly will be stored in the following structure

-- Name of the assembly
-- public key token
-- .dll file (copy the pdb files here)

in order to automate the process you might want to create a bat file or add a post build command in Visual studio.(Of course the above structure will appear only when you have gaced the assembly first and then create the bat file or the post build script).

So we are ready for debugging

2) Design Time
open up 2 instances of Visual studio
1st instance should contain the WCF LOB Adapter project
2nd should contain the client or biz talk project that you want to import the adapter proxy into

In the first instance attach the 2nd instance Visual studio process from the debug menu, and from the second VS instance perform Add Adapter reference for a .net client or a Add generated items for a Biz talk client.

Once done the debug point in the 1st instance of the Adapter code will be hit.


3) Run Time
Once you gaced WCF LOB Adapter assembly click F5 from your .net application
For biz talk you have to attach the Biz talk process.


and also throw in DebugView and add WCF tracing--- :)

Note: As you do the changes to the adapter code, you have to restart Visual studio again to load the latest dll, i believe VS caches the dlls.

Thursday, November 22, 2007

WCF LOB adapter Metadata changes don't reflect when you consume the adapter.

Problem:
I was working the with the WCF LOB adapter and did a small change to the adapter's operation (added another input parameter from 2 to 3), and gaced the adapter dll, then in the same VS instance i added another project and consumed thte adapter service, nothing has changed the operation still showed only 2 parameters!!!!!!!!!!!!!

Solution: Restart VS and consume the adapter again.

Tuesday, September 4, 2007

2006 BizTalk Adapter Dev

1. Got to codeplex and download the Adapter Template

Monday, July 9, 2007

ORM's

ORM: Object relationship mapping.
I have to use nHibernate in one of projects, from what i have googled it is used to store Objects in a database for future retrivals...etc, ok but dosen't serialization do this.......
here is the intresting part, how about performing Sql queries on the stored objects, ex: get me an address object whose addressline starts with "7 w",... well this is what i can make out as of now, i will update its functionality as soon i start implementing this wonderfull tool.

-

Tuesday, July 3, 2007

My First Webpart part 1.

Well technically speaking i did deploy couple of webparts on MOSS, they were all devloped in wss2.0 but deployed on to moss, we can deploy the existing wss 2.0 webparts to MOSS without a problem using the stsadm tool.

Coming to my new "Test Webpart", i devloped it using the Visual studio extensions for WSS3.0
and unlike Vs2003, in VS2005 just add a webpart project write the code and press f5 to deploy no more cab file etc.......

wow!!!!!!!!!!!!! sounds great isnt it, but wait a minute what happens in the background...... This is someting very similar to BizTalk, unlike biztalk even the snk file is automatically created.....
i will let you know in my next post.....

Wednesday, June 27, 2007

BizTalk Dissasembler

This is an amazing tool to have, one of my resources deleted a BizTalk Map, in came the dissasembler for Reflector and the XSLT was generated from the DLL, ufff... It did save us a lot of time(About to be deployed to PRD).

The disassembler can generate schemas, xslt, orchestartions, pipelines etc...

its a must have for every BizTalk Devloper out there.

Monday, June 25, 2007

Technical Leadership

We finally came to stop, on a project, and yes i was the Tech Lead for it, while evaluating what i have done and how can i improve. i came across this article.

http://www.hacknot.info/hacknot/action/showPrintableEntry;jsessionid=E0D69F3DC09A1B9762CC51AF7F940F33?eid=87

Hope this helps..........

I am Connected

I am Connected
Test Post