Commerce Server Blog

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

Configuration Error: Could not load type ‘Microsoft.Commerce.Providers.SharePointCommerceOrderModule from assembly because the parent type is sealed

ravikanth | March 8, 2010

After successfully installing commerce server site, when you try to open the website, you may encounter following error.

image

Recently, I fixed database authentication problem by applying a hot fix released by Microsoft.

http://support.microsoft.com/kb/975603

Seems somewhere I have missed the steps mentioned in the document (drop the Microsoft.CommerceServer.Runtime.dll that’s supplied in that hotfix in GAC) and after installing the hot fix, the site started working fine :) . Thought of sharing the same to fellow commerce server developers.

Comments
No Comments »
Categories
Troubleshoot
Comments rss Comments rss
Trackback Trackback

Troubleshoot: An unexpected error has occurred.

ravikanth | February 21, 2010

After deploying couple of pages/web parts/user controls, the site stopped working. I am getting wired error “An unexpected error” on the screen and the event log is clear – no events.

image

Its very strange to found that SharePoint will hide debugging information and all commerce server developers know that debugging is not easy in commerce server 2009. First my concentration went on WSP package – thinking that there might be some problem with WSP package which is leading some UI problem and SharePoint is not logging any events. But, I have managed to get rid of that error screen completely. The solution is to change a couple of entries in website web.config file. Modify the line <SafeMode MaxControls=“200“ CallStack=“false“… /> to <SafeMode MaxControls=“200“ CallStack=“true“… />

and also we have to set custom errors to ‘Off’ .
<customErrors mode=“Off“/>

That’s it, I stopped getting fancy ASP.NET custom page and able to see full stack trace and also errors in the eventlog. Now my development has got little bit easier!!

image

Comments
No Comments »
Categories
Troubleshoot
Tags
Unexpected Error
Comments rss Comments rss
Trackback Trackback

Troubleshoot: AuthManager(CommerceServer): Error reading Commerce Server administration database

ravikanth | February 11, 2010

After setting up the website using SharePointCommerceServicesConfiguration tool, sometimes you may get following error when you try to open the website.

Server Error in ‘/CSharpSiteToday’ Application.
"AuthManager(CommerceServer): Error reading Commerce Server administration database.  Check the AddressKeyName setting in the CSApp.ini file for the site and ensure that it refers to the name of a Commerce Server application that exists for the site. Site name: ‘abcd’  Application name: ‘abcd123′  Auth resource property: ’s_SecureHostname’  HRESULT: 0×800A0CC1 "

This error is because the commerce server site name is different than what is mentioned in the application configuration file. To fix this issue, we have to correct the site name value in web.config and channelconfiguration.config file.

Comments
No Comments »
Categories
Troubleshoot
Comments rss Comments rss
Trackback Trackback

Troubleshoot: Unauthorized exception when the new user tries to access MyAccount page

ravikanth | January 31, 2010

After creation registration, if the user try to click on my Account, he may get SPS page with Not authorized exception and was able to find below entry in event log.

An exception of type ‘System.UnauthorizedAccessException’ occurred and was caught.
———————————————————————————-
Type : System.UnauthorizedAccessException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : Access is denied. (Exception from HRESULT: 0×80070005 (E_ACCESSDENIED))
Source : Microsoft.SharePoint
Help link :
Data : System.Collections.ListDictionaryInternal
TargetSite : Void HandleAccessDenied(System.Exception)
Stack Trace :    at Microsoft.SharePoint.Utilities.SPUtility.HandleAccessDenied(Exception ex)
   at Microsoft.SharePoint.SPGlobal.HandleUnauthorizedAccessException(UnauthorizedAccessException ex)
   at Microsoft.SharePoint.Library.SPRequest.SetWebMetainfo(String bstrUrl, Object varMetainfo)
   at Microsoft.SharePoint.SPWeb.UpdateProperties(StringDictionary data)
   at Microsoft.SharePoint.Utilities.SPPropertyBag.Update()
   at Microsoft.Commerce.Portal.SharePointCommon.WebControls.HyperLink.ReplaceTokens(String navigateUrl)

when troubleshoot further, I am able to found that the logged in user is not having proper privileges in MOSS site. To fix this, I followed below steps

  • Open administrator website (using windows credentials)
  • Click on “Site Action” –> “Site Settings” and click on “Modify all Site Settings”.
  • Click on “people and groups” under “users and permissions” section.
  • Click on “Registered Users” and add newly added user email Id to this group.

Now the end user can can able to access MyAccount page.

Comments
No Comments »
Categories
Troubleshoot
Comments rss Comments rss
Trackback Trackback

Troubleshoot: Failure in catalog resolve, hr: -2147483326

ravikanth | December 10, 2009

One of my friend faced this issue (“Failed in catalog – error ) and forward to us for help. He received this error after creating commerce server site using CS 09 tool “SharePoint Commerce Services Configuration Wizard” and when he tried to open the web page. Unfortunately there is no help available on this error in internet.

image

We have make sure that it error is not due to configuration issue and cross verified following configuration settings.

  1. IIS Security
  2. Adman – privileges provided to the windows account in all authorization stores.
  3. SQL Server permissions.
  4. Profile connection strings (even though the error message shows catalog but the error description shows profile).
  5. checked web.comfit file if all settings are fine.

All settings are fine as expected but when we checked profile schema, we found that it was not properly imported by the tool. If you observe below image, you can observe the profile catalog is missing.

image

The resolution is to import the profile schema again (right click on yellow icon –> import –> select XML to import) and refresh to see the changes on the screen.

image To Developer: Check whether installation tool has logged any error.
To Microsoft: To make the error more precise – instead of just catalog, they should have mentioned profile catalog in the error.
Comments
No Comments »
Categories
Troubleshoot
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

  • Configuration Error: Could not load type ‘Microsoft.Commerce.Providers.SharePointCommerceOrderModule from assembly because the parent type is sealed
  • How commerce server Site Terms are stored
  • Troubleshoot: An unexpected error has occurred.
  • Design consideration for developing commerce server catalog system
  • Troubleshoot: AuthManager(CommerceServer): Error reading Commerce Server administration database
  • Account Creation Approval Process
  • Troubleshoot: Unauthorized exception when the new user tries to access MyAccount page
  • Microsoft Commerce Server 2009 code name "R2" – January 2010 Community Technical Preview
  • Merchant Access to Catalog Manager
  • Commerce Server 2009 December VPC ready for download

Archives

  • 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 cc_number checkout commerce 7 commerce server commerce server 2002 commerce server 2007 commerce server 2007 Display Types Commerce Server SP2 discounts ecommerce Estimation inventory Kanth Koppala marketing system migration error Mojave 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 .