Share this

Testing a map with scripting functoid for getting config details form BTSNTsvc file

I have a map where I use external assembly scripting functoid which calls a helper function to get a SQL connection string. Helper Function: Now if you get this map from repository and after compiling it when you try to test this map you will get this error: “An error occurred during a call to extension function 'GetConnectionString'. See InnerException for a complete description of the error. GetConnectionString: Connection String setting not present in config file” This is because configuration details from btsntsvc.config will be accessible only at runtime. To test the map either the connection string details need to be put in devenv.config or you need to hard code the connection string to the C# helper method of external assembly.After adding it there, compile the helper class and GAC it. Restart the visual studio before you test the map. In case if you update the assembly then again you need to do the same GACing and restart of visual studio before you test your map.

Loved this? Spread the word


Gautam

Follow me here

About the Author

My name is Gyanendra Kumar Gautam. I am Solution Consultant, who basically works to hook the stuff together using Microsoft technologies like Azure PaaS, Azure Serverless Services, Microsoft BizTalk Server, and Azure DevOps Services.

You may also like

REST support in BizTalk Server

What is REST? Representational State Transfer (ReST) is a software architecture style consisting of guidelines and best practices for creating scalable web services. ReST has gained widespread acceptance across the Web as a simpler alternative to SOAP and WSDL-based Web services. REST makes use of existing and widely adopted technologies, specifically HTTP, and does not

Read More

Security Features in BizTalk Server

BizTalk Server enables companies to automate business processes, through the use of adapters which are tailored to communicate with different software systems used in an enterprise. In a common scenario, BizTalk enables companies to integrate and manage automated business processes by exchanging business documents such as purchase orders and invoices between disparate applications, within or

Read More

Never miss a good story!

 Subscribe to my blog to keep up with the latest news!