DetailPage-MSS-KB

Microsoft small business knowledge base

Article ID: 931289 - Last Review: February 22, 2011 - Revision: 1.3

SYMPTOMS

Consider the following scenario. In Microsoft Visual Studio 2005, you try to rebuild a Microsoft Commerce Server 2007 project. The Commerce Server 2007 project is in a subdirectory of the parent directory on the localhost computer. For example, the Commerce Server 2007 project is in the following location:
http://localhost/Test/WebSite
In this scenario, you receive an error message that resembles the following:
Server Error in '/Test/WebSite' Application.
--------------------------------------------------------------------------------
Error initializing Schema mapping. Details: Error G0002 - Storage mapping file c:\inetpub\wwwroot\Test\WebSite\OrderObjectMappings.xml cannot be found

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: Microsoft.CommerceServer.Runtime.Orders.MappingException: Error initializing Schema mapping. Details: Error G0002 - Storage mapping file c:\inetpub\wwwroot\Test\WebSite\OrderObjectMappings.xml cannot be found

Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

CAUSE

This problem occurs because the sitename property is set to the parent directory. When you use the Quick unpack option to unpack the files, Commerce Server 2007 automatically uses this Web site name setting as the path of the files.

RESOLUTION

To resolve this problem, copy the files from the parent directory to the subdirectory. Reload the Commerce Server 2007 project, and then rebuild the Commerce Server 2007 project.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

For more information about how to create a Commerce Server 2007 project in Visual Studio 2005, visit the following Microsoft Web site:
http://msdn2.microsoft.com/en-us/library/aa545520.aspx (http://msdn2.microsoft.com/en-us/library/aa545520.aspx)

APPLIES TO
  • Windows 7 Service Pack 1
  • Microsoft Commerce Server 2007 Enterprise Edition
  • Microsoft Commerce Server 2007 Developer Edition
  • Microsoft Commerce Server 2007 Standard Edition
Keywords: 
kbpubtypekc kberrmsg kbbug kbtshoot kbprb KB931289
Share
Additional support options
Ask The Microsoft Small Business Support Community
Contact Microsoft Small Business Support
Find Microsoft Small Business Support Certified Partner
Find a Microsoft Store For In-Person Small Business Support