2007-08-29

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.

2007-08-28

Alen Ziver Malhasoglu's New Microsoft Commerce Server Blog

Extending Commerce Server Order System

http://blogs.msdn.com/sathishcg/archive/2006/11/08/extending-commerce-server-order-system.aspx
Extending Commerce Server Order System

Microsoft Web Service Software Factory

Web Service Software Factory
http://msdn2.microsoft.com/en-us/library/aa480534.aspx


Downloads
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
Media
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)
Community
Web Service Software Factory Community Workspace
The Service Factory Blogs
License
End User Licensing Agreement (EULA)

2007-08-20

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
Method:
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);
}
}

2007-08-18

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:
http://blog.wadewegner.com/PermaLink,guid,00c0d724-a2be-4559-9726-140cfd0904a9.aspx

Quoted from the blog of Soren Spelling Lund
http://www.publicvoid.dk/ClickOnceDeploymentOfCommerceServer2007BusinessTools.aspx

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

2007-08-16

Alen Ziver Malhasoglu's New Microsoft Commerce Server Blog

DataTable.ImportRow(DataRow dr)



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

2007-08-03

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.