Commerce Server Blog

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

Filed to retrieve the AzMan Scope

ravikanth | May 18, 2009

The code runs fine if you try to create catalog using commerce server runtime.

CatalogContext catalogContext =
CommerceContext.Current.CatalogSystem;

BaseCatalog baseCatalog =
catalogContext.CreateBaseCatalog("Books", "productId", string.Empty, "en-us", "en-us");

You can able to see the newly created catalog in the catalog manager but when you try to expand it then you will receive following error.

image

It looks wired as I don’t have any issues in accessing the newly created catalog through runtime and only faces this issue when try to accesses through catalog manager.

When I observed event log, I saw following error.

Microsoft.CommerceServer.ServerFaultException: Failed to retrieve the AzMan Scope named CatalogScope_Books. —> System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Failed to retrieve the AzMan Scope named CatalogScope_Books. —> Microsoft.CommerceServer.ServerFaultException: Failed to retrieve the AzMan Scope named CatalogScope_Books.
   — End of inner exception stack trace —
   at Microsoft.CommerceServer.Catalog.Internal.WebServiceUtility. PropagateOrLogException(Exception except)
   at Microsoft.CommerceServer.Catalog.WebService.CatalogWebService. PropagateOrLogException(Exception except)
   at Microsoft.CommerceServer.Catalog.Internal.CatalogServerContextBase. GetCategory(String catalogName, String categoryName, String language, CategoryConfiguration config, Boolean getFromCache, Nullable`1 isVirtualCatalog, Nullable`1 validateLanguage)
   at Microsoft.CommerceServer.Catalog.Internal.CatalogServerContextBase. GetCategory(String catalogName, String categoryName, String language, CategoryConfiguration config)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at Microsoft.CommerceServer.Catalog.WebService.Proxies.CatalogWebService. AuthorizedInvoke(String methodName, Object[] parameters)
   — End of inner exception stack trace —

This error is due to authorization. While creating catalog through business tools, catalog manger takes care of writing entries into catalog authorization store but if we are creating using runtime API then we have to create entries manually into authorization store.

Follow below steps to fix this problem.

  • Open CatalogAuthorizationStore.xml file in Authorization manager.
  • Right click on “CatalogandInventorySystem” and select “New Scope”.
  • Give scope name as “CatalogScope_CatalogName” – In our context it’s “CatalogScope_Books”.
  • Right click on "Task Definitions" and click on "New Task Definition". Click "Add" button and select appropriate tasks & operations.
  • Right click on "Role Defintions" and click on "New Role Definiton". Click "Add" button and select appropriate roles.
  • Right click on "Role Assignments" and click on "New Role Assignment". Select appropriate roles and press OK button.
  • Make sure you add your windows id to the role.

Once the above tasks got completed. You can able to access the catalog through catalog manager.

Note: You have follow similar process whenever you create Inventory Catalog or a Property.

Categories
Commerce Server 2009, Troubleshoot, commerce server 2007
Comments rss
Comments rss
Trackback
Trackback

« Using XML Data Types in Order System How I learnt Commerce Server Foundation »

2 Responses to “Filed to retrieve the AzMan Scope”

  1. Finbar Ryan says:
    May 26, 2009 at 2:28 am

    Hello,

    Just came across your blog entry and wanted to mention that the CreateCatalogAuthorizationStore.exe will also add in the entry for you.

    Thanks,

    Finbar

    Reply
    • ravikanth says:
      May 28, 2009 at 8:56 pm

      Thanks Ryan for pointing me to the tool.

      Reply

Leave a Reply

Click here to cancel reply.

Powered by WP Hashcash

Sign up for Newsletter


Categories

Quiz

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

Recent Posts

  • RCXml2Resx.exe tool stops working
  • Commerce Server Profile Importer Tool
  • Marketing Web service Exception: SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM
  • Download Commerce Server 2009 Help Document
  • Commerce Server 2009 work with SharePoint 2010?
  • Failed to set value for profile property ‘email_address’.
  • ArgumentException: An item with the same key has already been added.
  • Please note that one or more items were removed from your order because the product is no longer sold.
  • How to Avoid Duplicate Orders Numbers in Commerce Server
  • Error: Microsoft.Commerce.Contracts.Faults.ItemDoesNotExistFault

Archives

  • 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 CategoryConfiguration commerce server commerce server 2007 commerce server manager Commerce Server SP2 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 .