Alen Ziver Malhasoglu's New Microsoft Commerce Server Blog

Enterprise Library Logging Application Block

Learn how to use Logging AppBlock in EntLib in 30 seconds by David Hayden

See also:
Get Logging with the Enterprise Library By Piers Lawson.


Alen Ziver Malhasoglu's New Microsoft Commerce Server Blog

Extending Commerce Server Order System

Extending Commerce Server Order System

Microsoft Web Service Software Factory

Web Service Software Factory

Web Service Software Factory–December 2006 (ASP.NET and WCF services in C#)
Web Service Software Factory–July 2006 (ASP.NET services in VB.NET)
Web Service Software Factory Hands-on Lab
MSDN Architecture Webcast: Web Service Software Factory (27 June 2006)
Web Service Software Factory Presentation (with PowerPoint slides)
Web Service Software Factory Demonstration (with code files)
MSDN Webcast: Web Service Software Factory (5 April 2007)
Web Service Software Factory Community Workspace
The Service Factory Blogs
End User Licensing Agreement (EULA)


Alen Ziver Malhasoglu's New Microsoft Commerce Server Blog

"Underlying data provider ONLY supports AND-ing of clauses"

In Customer and Orders Manager source code we see following interesting comment
File: ProfilesSearchHelper.cs
public SearchClause CreateSearchCriteria(string profileType, SearchClauseFactory searchClauseFactory, SearchCriteriaItems criteriaList, bool isSimpleSearch)

SearchClause fullClause = CreateClause(searchClauseFactory, criteriaList[0]);
for (int i = 1; i < criteriaList.Count; i++)
if (!string.IsNullOrEmpty(criteriaList[i].Condition) && !string.IsNullOrEmpty(criteriaList[i].FieldName) && !string.IsNullOrEmpty(criteriaList[i].Value))
SearchClause rightClause = CreateClause(searchClauseFactory, criteriaList[i]);
// Underlying data provider ONLY supports AND-ing of clauses.
fullClause = searchClauseFactory.IntersectClauses(fullClause, rightClause);


Alen Ziver Malhasoglu's New Microsoft Commerce Server Blog

Commerce Server 2007 Business Applications ClickOnce deployment Bug

Commerce Server 2007 Business Applications ClickOnce deployment may cause problems. And here is a great blogpost for the solution:

Also another blogpost may be checked out:

Quoted from the blog of Soren Spelling Lund

Begining of Quote
ClickOnce Deployment of Commerce Server 2007 Business Tools
We decided to go ahead and put the "smart" in Smart Client and use ClickOnce deployment for the business tools of Commerce Server in order to make initial deployment and future updates to the client machines easier. In short a good idea which unfortunately met a speed bump due to the fact that we're deploying the business tools from the source code and not the compiled version shipping with Commerce Server 2007.
Basically everything went fine until we got to the Customer and Orders Manager which just didn't work. Every time we ran the ClickOnce installer locally or remotely we would get a SecurityException telling us that we didn't have FileIOPermission. Additionally Visual Studio reported that various assemblies didn't allow access to partially trusted assemblies. Baffled we started debugging. New certificates, strong naming assemblies, various ClickOnce deployment modes, changing trust levels for ClickOnce, etc. etc..
In the end the clue that helped us in the right direction was a warning in Visual Studio saying, "Invalid value for 'TargetZone' of item 'LocalComputer'.". Searching through the entire solution yielded nothing. Finally we used a text editor and opened up the .csproj file for Customer and Orders Manager project to have a look at the actual XML of the file. Lo and behold an element called was defined with the value LocalComputer. Removing the element altogether and redeployed fixed the problem.
I'm assuming that the element in the csproj file is a leftover from a partial trust deployment setting. Interestingly enough it turns out that this element is defined in the Microsoft Commerce Server 2007 Partner SDK source code distributed by Microsoft which means that everybody trying to do a ClickOnce deployment of Customer and Orders Manager from the supplied source code will encounter the same issue as we did.
Other than this issue configuring the business tools for ClickOnce deployment is a snap I think our client will be very pleased with this particular deployment model.
End of Quote


Alen Ziver Malhasoglu's New Microsoft Commerce Server Blog

DataTable.ImportRow(DataRow dr)

Datarow arrays may easily be transformed into datatables using code above.


Alen Ziver Malhasoglu's New Microsoft Commerce Server Blog

CS 2007 DevEd Setup

CS 2007 DevEd Setup cannot be installed from a network share, it had to be copied to local computer.