Commerce Server 2009 installation on Windows 2008R2 workaround
Since the installer will fail if you try to install Microsoft Commerce Server 2009 on Windows 2008 R2 you have to use the next workaround since the .NET Framework 3.5 SP1 is not recognized:
- Manually add the next registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Updates\Microsoft .NET Framework 3.5 SP1\KB953595
It's only a workaround please wait to the official release to address win2k8 R2 support.
Commerce Server Inline Product property edition WebPart for SharePoint
One thing where missing using Commerce Services for SharePoint is the ability to administrate products. The following Web Part makes Inline product property edition for commerce server 2009 possible. This silver light control (hosted in ASP.NET web part) helps business people to update product information on their ecommerce websites. http://www.microsoft.com/downloads/details.aspx?FamilyID=fce87672-90cf-4ead-b100-6bbc24d96f66&displaylang=en
To Install:
-
-
Edit the .bat file (by my installation placed at: C:\Program Files (x86)\Microsoft Commerce Server 2007\Microsoft Commerce Server 2009\Site\InstallInlineEditWebPart.cmd)
-
Change the path to the stsadm.exe tool and the url of your site in this .bat file
@ECHO OFF
@SET stsadm="c:\program files\common files\microsoft shared\web server extensions\12\bin\stsadm.exe" //your stsadm location
@SET url="yourMossUrl"
ECHO **********************************************************************
ECHO Adding WSP
ECHO **********************************************************************
%stsadm% -o addsolution -filename "MicrosoftCommerceInlineEditWebPart.wsp"
%stsadm% -o execadmsvcjobs
ECHO **********************************************************************
ECHO Deploying WSP
ECHO **********************************************************************
%stsadm% -o deploysolution -name "MicrosoftCommerceInlineEditWebPart.wsp" -url %url%
-immediate -allowGacDeployment -allowCasPolicies -force
%stsadm% -o execadmsvcjobs
ECHO **********************************************************************
ECHO Activating Silverlight Feature for editing Commerce Server product properties
ECHO **********************************************************************
%stsadm% -o activatefeature -name "InlineProductEditorWebPart" -url %url% -force
%stsadm% -o execadmsvcjobs
ECHO **********************************************************************
ECHO Activating Silverlight Feature for Inline Product Property Editor resources
ECHO **********************************************************************
%stsadm% -o activatefeature -name "InlineProductEditorResource" -url %url% -force
%stsadm% -o execadmsvcjobs
ECHO **********************************************************************
ECHO Restarting IIS
ECHO **********************************************************************
iisreset
-
Install Silverlight
-
Open your web.config file and add the follow line to the end of the save controls
<SafeControl Assembly="System.Web.Silverlight, Version=2.0.5.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Namespace="System.Web.UI.SilverlightControls"
TypeName="*" Safe="True" />
-
Open the properties window for your IIS server
-
Click the "MIME Types" button. In the new dialog window, choose "Add" to add a new MIME type. The extension is ".XAP", and the MIME type is "application/x-silverlight-app".
Cool Commerce Server 2009 Links
MSDN Commerce Server 2009 Forum: http://social.msdn.microsoft.com/Forums/en-US/commserver2009/threads
Virtual PC with all configured software required to run commerce server 2009. This VPC has Commerce Server 2009 , Microsoft Office SharePoint® Server 2007 (MOSS) & SQL Server, fully installed and configured. You can download it from Microsoft connect website. https://connect.microsoft.com/Downloads/DownloadDetails.aspx?SiteID=643&DownloadID=16926
Template Pack for Commerce server 2009 which contains a fully-featured contemporary shopping Web site that offers a new, contemporary presentation skin on the Default Site: http://www.microsoft.com/downloads/details.aspx?FamilyID=2df25ab7-f38d-439e-9391-ef8f025e8064&displaylang=en. To install: 1) run setup 2) rename the config file as described in the manual 3) create a new sharepoint webapplication and sitecollection using the wizard. There is a nice .css file after installing this package which is easy customizable.
Inline product property edition for commerce server 2009. This add-on product is used for product administration purposes for business users. This silver light control (hosted in ASP.NET web part) helps business people to update product information on their ecommerce websites. http://www.microsoft.com/downloads/details.aspx?FamilyID=fce87672-90cf-4ead-b100-6bbc24d96f66&displaylang=en
SoapException trying to invoke Commerce Server 09 WebService
The adventure works catalog is shown well in SharePoint. I can enter the store. By trying to invoke a webservice I got the following error:
[code:xml]
System.Web.Services.Protocols.SoapException: Failed to perform the specified catalog operation because the current user is not authorized to perform it.Operation = 'Grant view access for a catalog' Scope = 'CatalogScope_adventure works catalog' ---> Microsoft.CommerceServer.NotAuthorizedException: Failed to perform the specified catalog operation because the current user is not authorized to perform it.Operation = 'Grant view access for a catalog' Scope = 'CatalogScope_adventure works catalog' at Microsoft.CommerceServer.Catalog.Internal.CatalogAuthorization.ValidateScopedOperation(AuthorizationScope scope, String entityName, Int32 operationId) at Microsoft.CommerceServer.Catalog.Internal.ProductCatalog.GetCatalog(CatalogExecutionContext executionContext, String catalogName, String language, JoinTableInformation joinTableInformation, Boolean getFromCache) at Microsoft.CommerceServer.Catalog.Internal.CatalogServerContextBase.GetCatalog(String catalogName, String language, Boolean getFromCache) --- End of inner exception stack trace --- at Microsoft.CommerceServer.Catalog.Internal.WebServiceUtility.PropagateOrLogException(Exception except) at Microsoft.CommerceServer.Catalog.Internal.CatalogServerContextBase.GetCatalog(String catalogName, String language)
[/code]
Solution:
- Type: azman.msc in the run box
- The autorization manager will be shown
- Right Click Authorization Manager --> Open Authorization Store --> XML File --> Browse for CatalogAuthorizationStore.xml (in WebService Folder)
- Right Click the CatalogAdministrator --> Assign Users and Groups --> From Windows and Active Directory
- Assign an account with Administrator privileges
If you receive the following error when trying to use the catalog manager: "Failed to retrieve the AzMan Scope named InventoryCatalog_Adventure Works Inventory." The resolution is to open Azman store and create a new scope for the catalog.