Commerce Server Blog

Build world class ecommerce applications using Microsoft Commerce Server
  •  
  • Home
  • Advertise
  • Copyright Policy
  • Disclaimer
  • About

Import CS2009 Starter pub

ravikanth | March 16, 2009

In my previous blog entry, I have explained how to create ASP.NET ecommerce website in CS2009.

http://microsoftblog.co.in/commerceserver/aspnet-website-in-commerce-server-2009/

Now, in this post, I will explain how to import CS2009 pub without using “SharePointCommerceServicesConfiguration” tool.

  • Open Commerce server manager.
  • Right click on commerce sites –> New –> Unpack site.
    image
  • Navigate to “\Program Files\Microsoft Commerce Server 2007\Microsoft Commerce Server 2009\Site” directory and click on “MicrosoftCommerceDefaultSiteWithSampleData.pup” file or “MicrosoftCommerceDefaultSiteNoData” file.
  • Now site unpacker wizard starts and it will create commerce server 2009 sites.
    • In the first screen, click on custom unpack.
    • In the second screen, click on “Create a new site” radio button.
    • In the third screen, give the site name as “SampleSite”.
    • In the fourth screen, make sure you add all available resources to “resource to unpack” section.
    • In the fifth screen, leave the default configuration (it creates new profile and CS authentication resources).
    • In the sixth screen, all databases are shown, if required, you can change the database name or database location.
    • In the seventh screen, make sure you select all applications.
    • In Eight screen, the tool will show the website details. If you want to can change the virtual direction name, you can do it here.
    • By clicking next, the site creation process starts. In between, the tool asks for profile system resources (schema, site terms, expression definitions) and schema definition scripts. Keep the defaults (don’t change them).
    • After successfully creation of sites, the site packer shows the popup.

                    image

If you observe commerce server manager, web services are created but it will not create the site. So, we have to manually add our web application under application directory in commerce server manager.

image

Comments
No Comments »
Categories
Commerce Server 2009
Tags
starter site
Comments rss Comments rss
Trackback Trackback

Create MOSS Ecommerce Site with your pup

ravikanth | March 14, 2009

SharePointCommerceServicesConfiguration tool is nice tool and helped us not to update the configuration settings on multiple locations. By default it is creating commerce site provided by Microsoft. Can I create a new MOSS site with the commerce server database I have? and the answer is yes. It is pretty simple, follow below steps to achieve it.

  • Open “"{drive name}:\Program Files\Microsoft Commerce Server 2007\Microsoft Commerce Server 2009\Site” folder and copy your site pub file into this folder.
  • Open “SharePointCommerceServicesConfiguration.exe.config” file in notepad. This file has configuration settings and the tool uses this configuration settings while creating a new site.
  • Make sure you provide your pub file either in PupWithDataFileName value or PuPSchemaOnlyFileName value. 
  • <appSettings>
            <add key="SolutionTitle" value="Microsoft SharePoint Commerce Services Configuration Wizard" />
            <add key="PupWithDataFileName" value="MicrosoftCommerceDefaultSiteWithSampleData.pup" />
            <add key="PupSchemaOnlyFileName" value="MicrosoftCommerceDefaultSiteNoData.pup" />
            <add key="TextLogFile" value="Sharepoint Commerce Services Config.log" />
            <add key="SiteCollectionCultureContext" value="en-US" />
        </appSettings>

Note: When you execute the tool, In third screen it will ask for two options.

image

If you select “Unpack Commerce Server Site (schema only)” then the tool will import the pub file specified in “PupSchemaOnlyFileName” key or if you select “Unpack Commerce Server Site (with sample data)” then the tool will import the pub file specified in “PubWithDataFileName” key.

Comments
No Comments »
Categories
Commerce Server 2009
Comments rss Comments rss
Trackback Trackback

Starter site creation in Commerce Server 2009

ravikanth | March 13, 2009

Commerce server 2009 has provided a utility named “SharePointCommerceServicesConfiguration”, by which we can easily create a MOSS starter site within minutes. You can find this utility in “"{drive name}:\Program Files\Microsoft Commerce Server 2007\Microsoft Commerce Server 2009\Site” folder. In the observe the folder properly, you will find two pub files – one is with schema (MicrosoftCommerceDefaultSiteNoData) and another is schema with sample data (MicrosoftCommerceDefaultSiteWithSampleData). This tool is just creating sites in commerce server and MOSS (sites in CS is different from MOSS).

Let’s see how to create a starter site in CS2009.

  • Double click on SharePointCommerceServicesConfiguration.exe file.
  • Before it start creating the site, the tool checks whether all services are available or not. If they are not, then it will prompt the user to enable that service. If all services are running (as shown below), click next button.
    image
  • In the next step, the tool will ask give us two options. Import only web parts on existing moss site or Create new SharePoint site with web parts.image
  • In the third screen, we have to provide web application details. Tool asks following things from the user.
    • Web application: if possible, you can create new application or provide existing application. As part of web application creation, you have to provide site description, port number, application pool, extended IIS website details etc.
      image
    • Site collection details like title, description, site administrator.
    • Commerce server site details like site name, site description. Apart from this, we can specify here whether to create commerce site without data or with data. 
    • Specify the database name. By clicking on “Advance” we can change the database location. Once done, click on next button.

            image

  • Now the real work starts. The tool creates commerce server sites from the pub file, create SharePoint site with web parts and finally it will show the completion screen.

     image

That’s all,  your site is ready and you can start playing with it. If you open the site, you may get a warning –“Web part can not be displayed as channel name is not specified”. Click below blog entry to address this issue.

http://microsoftblog.co.in/commerceserver/error-webpart-can-not-be-displayed-as-channel-name-is-not-specified/

Comments
1 Comment »
Categories
Commerce Server 2009
Comments rss Comments rss
Trackback Trackback

ASP.NET website in Commerce Server 2009

ravikanth | March 8, 2009

After installing & configuring commerce server 2009, you may be able to see the moss site with adventure works catalog & its products. There is a tool “SharePointCommerceServicesConfiguration. exe”, located in “Program Files\Commerce Server\Site\” directory by which we can create new MOSS ecommerce sites. What if we want to create asp.net website on top of commerce server 2009? Follow below steps to make it work.

  • Open visual studio and create a new website.
  • From MOSS website, add following files and folders to asp.net site
    • Bin & Pipeline Folders
    • Web.config
    • OrderObjectMappings.xml
    • OrderPipelineMappings.xml
    • ChannelConfiguration.config
    • MetadataDefinitions.xml
  • Modify Web.config
    • Add Reference to System.Core, System.Web.Extensions, System.Xml.Linq, System.Data.DataSetExtensions
    • If required, you can remove all reference of SharePoint and Microsoft.Commerce.Portal.UI.

Now your asp.net website is ready for commerce server 2009.

Comments
No Comments »
Categories
Commerce Server 2009
Tags
ASP.NET
Comments rss Comments rss
Trackback Trackback

Troubleshoot: Commerce server manager is not loading data in CS2009

ravikanth | March 4, 2009

After successful installation & configuration of commerce server 2009, when I tried to open commerce server manager and navigate to global resources –> profiles –> Profile Catalog->Profile definitions, the profile properties didn’t shown up, instead I received a friendly HTML error message (you might have received different error).

error2

After some investigation, I found that the error is due to Widgets virtual directory, which is missing from default port 80 website. For the people who doesn’t know commerce server, widgets directory have few files by which commerce server manager fetches data from commerce server database and it’s mandate to keep them in port 80 website. Since this port 80 website doesn’t have widgets directory, I was getting above error.

In my first attempt, I have create a virtual directory (named “widgets”) and mapped it to C:\Program Files\Common Files\Microsoft Shared\Enterprise Servers\Commerce Server\Widgets directory. But, there is no luck as MOSS is not allow me to access it’s resource and MOSS doesn’t allow us to exclude paths (as we used to have in SharePoint).

I got a wonderful idea (let me appreciate myself – just kidding) and the idea is to solve this issue with HTTP handlers. I created a new website on port 80 with host header as system name as shown below and created a virtual directory (named “widgets”) and mapped it to C:\Program Files\Common Files\Microsoft Shared\Enterprise Servers\Commerce Server\Widgets directory.

 error1

The problem is solved. I am able to view profile properties in commerce server manager However, it leads to a limitation of accessing the site with “localhost” (like http://localhost/pages/default.aspx).

error3

Hope my workaround works for you :-) .

Comments
2 Comments »
Categories
Commerce Server 2009, Troubleshoot
Tags
commerce server manager, Widgets
Comments rss Comments rss
Trackback Trackback

« Previous Entries

Sign up for Newsletter


Categories

Quiz

  • Catalog Quiz for Beginners
  • Profile Quiz for Beginners
  • Quiz 1 for Advance Users
  • Quiz for Beginners

Recent Posts

  • Staging Deployment – Security Considerations
  • Pipeline Editor displays registered custom pipeline components as unknown in 64 Bit version.
  • How commerce server staging works
  • Steps to extend payments in Commerce Server 2009
  • Introduction to Commerce Server Staging
  • Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information
  • Commerce server staging throws Remote authorization failed to server. Ensure the service has access to this server.
  • Updated Commerce Server 2009 template pack for SharePoint 2007 released
  • RCXml2Resx.exe tool stops working
  • Commerce Server Profile Importer Tool

Archives

  • August 2010
  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008

Tags

add discounts add images to profile Advantages of commerce server approve discounts authentication auto login process automatic user creation basket Brand Management business tools campaign management Catalog catalog import Category commerce server commerce server 2007 commerce server manager Commerce Server SP2 commerce server staging discounts ecommerce Estimation Installation inventory Kanth Koppala marketing system migration error Mojave operation components operation sequence Order subsystem Product profile profile subsystem property metadata purchase order quick checkout Ravi Ravi Kanth site cache refresh starter site tools transactions error Variant
(c) 2009 Commerce Server Blog. All rights Reserved. Articles cannot be reproduced without permission from the author.Write to me at kanth@ravikanth.net if you have any comments, questions, suggestions about this site or would like to send us a tip
About Us | Terms of Use | Disclaimer | Advertise .