Showing posts with label Common Errors amp; Solutions. Show all posts
Showing posts with label Common Errors amp; Solutions. Show all posts

Wednesday, 2 March 2011

Newly Created Host Instance is not visible in Send / Receive handlers.

Assume that you created a new In-process Host and a Host Instance.

Thought you start the host instance, it will not be immediately visible in Send / Receive Handlers of the Send / Receive Ports.

In order for the Host to be visible inside the Send / Receive Handlers, you have to link the Host with the Adapters.

This is done by Expanding Platform Settings -> Adapters -> Right Clicking any Adapter -> New Send / Receive Handler.


Now, add the Host to the handler.



Now it will be visible in the Send/Receive Handlers.

Hope it helps

- Shiv

Web Counters


Thursday, 20 January 2011

Error "TOMTreeGenerator.GetElementAbsoluteType: Object reference not set to an instance of an object".How to resolve this Error while performing UnitTesting for Schemas ?

This error occurs because of the schema testing limitation for the Schemas containing any imported schema/schemas.

This can be overcome by creating custom method, (instead of using the ValidateSchema method created by the BizTalk) and writing manual code to test the Input XML against the Schema.

(For eg: using XmlReaderSettings methods or any other possible methods whatever you think will get the logic done.)

Saturday, 4 December 2010

Issue: Schema not found in BizTalk Type Picker of a BizTalk Map

Today I had a different issue when in I started to work on a BizTalk Sample created by a colleague.
It has a source and destination schema, which are to be mapped.



A new map is then created and a source schema is added. When I clicked on Select Destination Schema, I was not able to find the destination schema in the BizTalk Type Picker of the BizTalk Map.


There are no build errors and every thing looked fine.

The culprit which led to this is the Build Action property of the schema.

This property will be shown when you select the schema in the Solution Explorer.



If this property is set to None, it will not be included in the Build and hence will not be able to use that in BizTalk Tools.

I made the Build Action to BTSCompile and it showed up in the BizTalk Type Picker of the BizTalk Map.



The reason being for this is that the schema was not created using BizTalk Schema Editor rather using an external tool. Hence when this schema was imported to BizTalk Project, its Build Action property was set to None.



So, care should be taken for the schemas that are created outside BizTalk Schema Editor.

Hope it helps.

- Shiv

Wednesday, 1 December 2010

Project Reference Errors in BizTalk

While developing BizTalk projects that referencing several other projects, many errors will be shown while compiling the BizTalk Projects. These errors will go away once the references are removed and added again.

Also, sometimes, updated made in the referenced projects will not be updated automatically.

This is a known issue with BizTalk Server 2009 and after googling I found that Microsoft has given a Hot Fix for this which can be downloaded here.

Web Counters

Tuesday, 2 November 2010

Visual Studio 2008 - Could not connect to TFS - Resetting Visual Studio Environment

Some time ago, when I opened Visual Studio 2008, I saw an error with TFS and I could connect to TFS.

Team Explorer didnt show up "Source Control" itself.

After little research I find that there is some thing wrong with SkipLoading tag and I tried to reset the Visual studio environment using devenv /ResetSkipPkgs  (*).

Then TFS Connected normally and every thing worked fine.

This link has more details about /ResetSkipPkgs switch.

Details on all the Development Environment Command Line Switches can be found here.

* - This command should be given in Visual Studio Command prompt Or open command window and go to the path "c:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE" & type devenv /ResetSkipPkgs ( You may have to change the Version accordingly)

- Shiv

Web Counters