Trouble verifying services

I have followed all of the steps in the online installation guide, and restarted IIS. I have also verified that a folder was created for each web service (\Intepub\wwwroot\siteCatalogWebService; Intepub\wwwroot\siteMarketingWebService; Intepub\wwwroot\siteOrdersWebService; Intepub\wwwroot\siteProfilesWebService).

Then the guide says to visit the web page for each service (point browser to http://localhost/siteCatalogWebService/CatalogWebService.asmx). I get a web page showing the methods of the service for the Catalog and Profile services, but when I point to the Marketing or Orders page I get an error saying:

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Type 'Microsoft.CommerceServer.Runtime.SiteCacheRefresh' cannot be instantiated under a partially trusted security policy (AllowPartiallyTrustedCallersAttribute is not present on the target assembly).

Source Error:

[No relevant source lines]


Source File: web.config Line: 182

Why do I have problems with the Orders and Marketing pages, but the Catalog and Profiles display fine



Answer this question

Trouble verifying services

  • PCSQL66

    Do you have a system.web/trust element set to something other than Full in the web.config somewhere along the site hierarchy or at the machine level Commerce Server 2007 requires full trust.

    Cheers,
    Colin


  • Rick Kriscka

    Web.config is read as a recursive and cumulative configuration starting with the machine level configuration. Chances are there was something upstream that was causing the trust level to change.

    Cheers,
    Colin



  • sweet_salt

    None of the web.config files (in CatalogWebService, OrdersWebService, ProfilesWebService, MarketingWebService) have a system.web/trust element. Yet I can assess the Catalog and Profiles .asmx file. So I added a trust element in each web.config file, setting the value to Full, and that worked for Orders and Marketing. I don't understand why the Catalog and Profiles worked without a trust element, but at least they are all working now.

    Thanks.


  • James A. Gayhart

    Out of curiousity, what does your IIS directory structure look like

    If you've followed the installation guide correctly, you should have something that looks like this:

    Web Sites
    -Default Web Site
    --CatalogWebService
    --MarketingWebService
    --OrdersWebService
    --ProfilesWebService
    --StarterSite

    You haven't unpacked any of the web services under the StarterSite, and the Default Web Site has no web.config file, correct



  • Tomys

    The IIS directory structure looks just as you say it should.

    There are no web services under the StarterSite.

    These IS a web.config file in the Default Web Site, and it has location references to a differenct web site. Should I delete this web.config, or modify it to reference my web site


  • Trouble verifying services