Posts

Showing posts with the label wcf

WCF - Store and restore UTC DateTime

WCF - Store and restore UTC DateTime We expose to our customer a WCF webservice allowing them to store DateTime in SQL Server databases. Extract of the WSDL : <xs:complexType name="TimePeriod"> <xs:sequence> <xs:element minOccurs="0" name="endDateTime" nillable="true" type="xs:dateTime"/> <xs:element minOccurs="0" name="startDateTime" nillable="true" type="xs:dateTime"/> </xs:sequence> For exemple, my customer send me UTC Datetime : <af:effectivePeriod> <af:startDateTime>2018-01-16T10:32:28Z</af:startDateTime> </af:effectivePeriod> This is stored in a SQL Server database in a datetime field. datetime But in the output of the read service, I don't have the UTC indicator : <af:effectivePeriod> <af:startDateTime>2018-01-16T10:32:28</af:startDateTime> </af:effectivePeriod> "Z" is kind of a unique...

The extension name X is not registered - why looking in AppDataLocalTemp?

Image
The extension name X is not registered - why looking in AppDataLocalTemp? I have a custom wcf behaviour used by a dynamic send port. This work fine on my Dev VM and a Test VM. I have been careful to ensure the configuration for the component has been added to the system.serviceModelextensionsbehaviorExtensions element of the 64bit machine.config file - this is added by the BizTalk deployment framework. My problem is that with the next test VM, the following is being created in the event log: Error Description: Microsoft.BizTalk.Adapter.Wcf.Converters.CreateBehaviorException: Unable to create endpoint behavior configuration element from XML configuration. Check the following: 1. Verify behavior element extensions in machine.config are correctly configured. 2. Restart the application if machine.config was recently updated. 3. Ensure the configuration is valid XML that conforms to the configuration schema. Configuration: ---> System.Configuration.Configur...