.Net
I've been working lately on web application that uses Asp.Net MVC, WordPress and MySQL database. To communicate from .NET code to MySQL database using Entity Framework we installed MySql .NET Connector. It worked fine out of the box on developer's workstations but once deployed to hosted web server application started to throw following error: [NotSupportedException: Unable to determine the provider name for connection of type 'MySql.Data.MySqlClient.MyS... System.Data.Entity.ModelCon...
In my project I needed to separate template generated entities, context in separate projects from the EDMX file. I’ve stumbled across this problem how to make template generator to find edmx file without hardcoding absolute path into the template. Using relative path directly (inputFile=@”..\ProjectFold... generated error: Error 2 Running transformation: System.IO.DirectoryNotFound... Could not find a part of the path 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\ProjectFolder\...
Recently, while debugging desktop client - WCF service application I came across this error: System.ServiceModel.Securit... was caught Message=”An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail.” Source=”mscorlib” StackTrace: Server stack trace: at System.ServiceModel.Channel... reply, SecurityProtocolCorrelation... correlationState,...
Choice of configuration settings storage is an important topic when it comes to enterprise BizTalk application planning. One of the many options is to use regular .Net configuration files. Some prefer this way over the Enterprise SSO database option for reasons of simplicity and familiarity. I wanted to show how it can be done with Microsoft Enterprise Library configuration application block. In this case Enterprise Library configuration section is placed in the BTNTSvc.exe.config file while application...
If you store BizTalk application settings in Enterprise SSO database and adapt continuous integration you'll find this MS Build task useful. DeploySSOConfigStore task reads settings from XML configuration file and saves them to the SSO database. The XML can be created (exported) using Richard Seroter's SSO tool which I modified to support this operation. So, if you change your configuration settings, just update XML file in the source control and build process will pick it up and propagate changes...
Richard Seroter published useful utility to store/retrieve BizTalk configuration settings in Enterprise SSO database. I added some more functionality to it. First, I added Export/Import functions allowing to actually save values in the external XML file (Richard's implementation allowed storing only field names, calling for extra work should you delete and restore SSO aplication). I kept file format the same but added values stored as text nodes: <sso> <application name="eCommerce.BizTalk.Con...
If you receive error: COM object that has been separated from its underlying RCW cannot be used. The possible cause is invalid or malformed per instance configuration data. You most likely ran into bug (or undocumented feature) of BizTalk SDK. The problem won't show up until you edit value of component custom properties during deployment configuration. The reason is described below. When you create custom pipeline component with properties you will override ReadPropertyBag(Microsoft.B...
Simple trick that saves me some time and coding when writing custom configuration objects is to define generic collection for them. Let's say I created several custom configuration elements derived from my CustomConfigElementBase which in turn inherits from System.Configuration.Config... Instead of defining strongly typed collections for each type I can simply define class: public class GenericConfigElementCollect... : ConfigurationElementCollection where T : CustomConfigElementBase,...
I passed new Microsoft Certified Technology Specialist (MCTS) exam 70-235: Developing Business Process and Integration Solutions using Microsoft® BizTalk® Server 2006. Fresh experience with BizTalk 2006 helped a lot as well as reading documentation, blogs. Interestingly, this exam stands aside of new Microsoft Certified Professional Developer (MCPD) path. It would make sense to include it as an elective option earning credit towards MCPD: Enterprise Application Developer. This exam with...
In a recent MSDN webcast given by Richard Seroter somebody asked about how to avoid “first hit latency” caused by JIT compiling web service code which is deployed not compiled by default. In my post about web project deployment I wrote about precompiling BizTalk web services using aspnet_compiler that will cure this problem. I just wanted to highlight some details. First, the project can not be compiled in-place, otherwise files get overwritten. It's better to create separate folder for...
If you like to keep solutions organized, keep common things together, store keys separately, and use automated builds you’d probably get frustrated by the new Signing tab of the Project Settings UI. Don’t get lured by the fancy look-n-feel of this dialog – it won’t let you set relative path of the strong key file. If you browse to the existing file, IDE will try to copy it into the project folder. Type things like “..\key.snk” and it just barks at you that such...