Microsoft Developer Network > Forums Home > Commerce Server Forums > Commerce Server 2009 > Sharepoint and Commerce Server 2009 Default site setup

Proposed Answer Sharepoint and Commerce Server 2009 Default site setup

  • Monday, March 02, 2009 4:29 PM
     
     

    Hello,


    I've been trying to setup a new instance of Windows Sharepoint Services with Commerce Server 2009 default site and having a few problems.


    Setup:

    Windows Server 2003 Enterprise

    SQL Server 2005 Standard

    Windows Sharepoint Services

    Commerce Server 2007 (Standard)

    Commerce Server 2009 RC1

    VS 2008 Team Studio


    I used the configuration wizard to unpack the site with webparts and then I went through the post deployment options in the microsoft 2009 installation guide. After fixing a few permission erros I'm now left with this one:


    Exception information:
        Exception type: MissingFieldException
        Exception message: Field not found: 'Microsoft.CommerceServer.Catalog.Internal.Constants.InventoryResourceMajorVersion'.
     
    Request information:
        Request URL: http://wspc10173wss:25337/_vti_bin/sitedata.asmx
        Request path: /_vti_bin/forms.asmx
        User host address: 10.40.24.176
        User: 
        Is authenticated: False
        Authentication Type: 
        Thread account name: WSPC10173WSS\CSRunTimeUser


    Which occurs whenever I try and load my site in the browser. The admin one works fine and I can access it and chnage stuff no probs,


    I've also just checked the pup log and found the following errors:


    Error importing object data for Product Catalog from file C:\Documents and Settings\********\Local Settings\Temp\Product Catalog 80131511:Field not found: 'Microsoft.CommerceServer.Catalog.Internal.Constants.InventoryResourceMajorVersion'.


    Error importing object data for Inventory from file C:\Documents and Settings\********\Local Settings\Temp\Inventory 80131511:Field not found: 'Microsoft.CommerceServer.Catalog.Internal.Constants.InventoryResourceMajorVersion'.


    Suspicisions are its soemthing to do with the Resources table in MSCS_Admin!


    Any ideas?


    Thanks in Advance

    Ben








All Replies

  • Tuesday, March 03, 2009 8:42 AM
     
     Proposed Answer
    Bob,

    This error seems to be very specific. Can you check whether the site is working after decoupling product catalog from inentory catalog?

    RC1 has many issues but I feel RTM is better and easily installable (when compared with previous versions). Can you check whether you are able to setup the environment/application using RTM. Note: RTM is available only to TAP users and can be downloadable from MS connect.

    Hope this helps.

    Regards,
    ~ Ravi Kanth (If this answers your question, please use the "Answer" button to say so)
  • Tuesday, March 03, 2009 9:11 AM
     
     
    Ravi,

    Thanks for your response. Please can you exp[lain what you mean by 'decoupling' and how I would go about performing this with the product and inventory catalgos?

    I had a couple of things I was going to look at:
    1) Removing the inventory resource in CS manager and adding it back in again
    2) Run SQL profiler to see if I can identify any mroe specific errors

    Thanks
    Ben
  • Tuesday, March 03, 2009 12:15 PM
     
     
    As a follow up to my earlier post I've just tried removing the Inventory resource from CMS Manager and readding - no errors during the process but in the pub log the same error is showing....

    Ben
  • Wednesday, March 04, 2009 9:06 PM
     
     
    (1)  Can you provide the full call stack of the exception?
    (2)  What steps did you go through to install CS2009?  Did you upgrade from CS2007 RTM, SP1, or SP2?

    Thanks,
    David
    Please remember to click “mark as answered” when you get a reply that answers your question.
  • Thursday, March 05, 2009 2:55 PM
     
     
    1) Here is the full stack from eventvwr.....just get some daft 'An unexpected error has occurred. ' in the browser

    Event code: 3005
    Event message: An unhandled exception has occurred.
    Event time: 02/03/2009 15:00:14
    Event time (UTC): 02/03/2009 15:00:14
    Event ID: 90cadbe2a5fa49979fd435abcc511d82
    Event sequence: 32
    Event occurrence: 31
    Event detail code: 0
     
    Application information:
        Application domain: /LM/W3SVC/8844239/Root-1-128804710684938263
        Trust level: WSS_Minimal
        Application Virtual Path: /
        Application Path: C:\Inetpub\wwwroot\wss\VirtualDirectories\25337\
        Machine name: WSPCWSS
     
    Process information:
        Process ID: 4868
        Process name: w3wp.exe
        Account name: WSPCWSS\CSRunTimeUser
     
    Exception information:
        Exception type: MissingFieldException
        Exception message: Field not found: 'Microsoft.CommerceServer.Catalog.Internal.Constants.InventoryResourceMajorVersion'.
     
    Request information:
        Request URL: http://wspcwss:25337/_vti_bin/sitedata.asmx
        Request path: /_vti_bin/sitedata.asmx
        User host address: 10.XX.XX.XXX
        User: 
        Is authenticated: False
        Authentication Type: 
        Thread account name: WSPCWSS\CSRunTimeUser
     
    Thread information:
        Thread ID: 1
        Thread account name: WSPCWSS\CSRunTimeUser
        Is impersonating: True
        Stack trace:    at Microsoft.CommerceServer.Catalog.CatalogContext.InternalCreate(CatalogSiteAgent catalogSiteAgent, DebugContext debugContext, CacheConfiguration cacheConfiguration)
       at Microsoft.CommerceServer.Catalog.CatalogContext.Create(CatalogSiteAgent catalogSiteAgent, CacheConfiguration cacheConfiguration)
       at Microsoft.CommerceServer.Runtime.Catalog.CommerceCatalogModule.CreateCatalogContext()
       at Microsoft.CommerceServer.Runtime.Catalog.CommerceCatalogModule.get_CatalogContext()
       at Microsoft.CommerceServer.Runtime.Catalog.CommerceCatalogModule.OnBeginRequest(Object sender, EventArgs e)
       at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
     
     
    Custom event details:

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.


    2) I installed CMS2007 standard sp2 first then ran my CMS2009 RC1 upgrade

    Thanks
    Ben
  • Thursday, March 05, 2009 9:12 PM
     
     
    It sounds like some assembly was not patched correctly.  Did you encounter any errors or warnings when installing CS2007 SP2, or CS2009 RC1?

    Check your GAC.  Both of the following assemblies should have the same file version (I don't know the exact version offhand, but it should be something like 6.0.4171.0)

    Microsoft.CommerceServer.Catalog
    Microsoft.CatalogServer

    - David
    Please remember to click “mark as answered” when you get a reply that answers your question.
  • Friday, March 06, 2009 9:29 AM
     
     
    I've just checked in the GAC.

    Microsoft.CommerceServer.Catalog is 6.0.3724.0
    Microsoft.CatalogServer is 6.0.4171.0

    Whats the best way to upgrade/change these versions to match?

    Cheers
    Ben
  • Monday, March 30, 2009 2:20 PM
     
     
    Do you still have this issue? Have you tried with RTM version?
  • Monday, March 30, 2009 2:34 PM
     
     Proposed Answer
    BoBo,

    I had a similar problem when i stated customizing my 2007 SP2 setup and then applying the CS2009 CTP. When we got around to starting our actual environment, on a clean install, it soft of clear it self up.

    But if after you install and still have the wrong versions in the GAC, you can navigate explorer to c:\windows\assembly delete the incorrect versions and add (drag and drop) the correct ones from the commerce install directory.)

    ~Brad
  • Wednesday, April 01, 2009 1:52 PM
     
     
    After some troubles my colleage had of installing and configuring a MOSS2007 VPC and Commerce Server 2009 I decided to try it on my own and blogged about it. I will write some more articles about it in the next days. At the moment of writing I have succesfully created a single VPC using Win2008 enterprise, MOSS2007, SQL server 08 and Commerce Server 2009.

    Maybe my posts will help you...

    ~Nick

    www.sharepointdevelopment.nl  
  • Wednesday, March 03, 2010 10:08 AM
     
     
    We have tried to install SP1 on commerce server 2007.
    It got installed fine.
    But later on it is giving the following error when i try to access catalog web service via BUA.

    --------------------------------------------------------------
    Event Type:    Error
    Event Source:    Commerce Server Web Services
    Event Category:    None
    Event ID:    1
    Date:        3/3/2010
    Time:        9:32:08 AM
    User:        N/A
    Computer:    HCUKSRVVSTGWB01
    Description:
    An exception occurred in the 'CatalogWebService' Web service.  Exception details follow:

    System.Configuration.ConfigurationErrorsException: An error occurred creating the configuration section handler for CommerceServer/catalogWebService: Field not found: 'Microsoft.CommerceServer.Catalog.Internal.Constants.CatalogResourceMajorVersion'. (C:\Inetpub\CommerceServerWebServices\CESitesCatalogWebService\web.config line 51) ---> System.MissingFieldException: Field not found: 'Microsoft.CommerceServer.Catalog.Internal.Constants.CatalogResourceMajorVersion'.
       at Microsoft.CommerceServer.Catalog.Internal.SiteConfigHelper.GetResourceProperties(String siteName, Boolean getInventoryResourceProperties, Hashtable& catalogResourceProperies, Hashtable& inventoryResourceProperies, Boolean validateResourceVersion)
       at Microsoft.CommerceServer.Catalog.Internal.CatalogWebServiceConfig..ctor(String siteName, DebugMode debugLevel, String authorizationPolicyPath, Boolean authorizationEnabled, Int32 chunkSize, Int32 timeOutHours, Int64 maxFileSize, Boolean enableInventorySystem, CacheConfiguration cacheConfiguration, Int32 maxSearchResults, List`1 allowedJoinTables)
       at Microsoft.CommerceServer.Catalog.Internal.CatalogWebServiceSectionHandler.Create(Object parent, Object context, XmlNode section)
       at System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.CreateSectionImpl(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader reader)
       at System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.CreateSectionWithRestrictedPermissions(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader reader)
       at System.Configuration.RuntimeConfigurationRecord.CreateSection(Boolean inputIsTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader reader)
       at System.Configuration.BaseConfigurationRecord.CallCreateSection(Boolean inputIsTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader reader, String filename, Int32 line)
       --- End of inner exception stack trace ---
       at System.Configuration.BaseConfigurationRecord.EvaluateOne(String[] keys, SectionInput input, Boolean isTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult)
       at System.Configuration.BaseConfigurationRecord.Evaluate(FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult, Boolean getLkg, Boolean getRuntimeObject, Object& result, Object& resultRuntimeObject)
       at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
       at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)
       at System.Web.HttpContext.GetSection(String sectionName)
       at Microsoft.CommerceServer.Catalog.Internal.WebServiceUtility.GetWebServiceConfig()
       at Microsoft.CommerceServer.Catalog.Internal.WebServiceUtility.Initialize()

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
    ------------------------------------------------------------------------------------------

    What is the exact error?
    commerce server is expecting what at line 51 in web.config file of catalog webservice.

    Can any one help me out please....


    ~Sudhakar...