You are currently offline, waiting for your internet to reconnect

You receive an error message when you try to rebuild a Commerce Server 2007 project in Visual Studio 2005

This article has been archived. It is offered "as is" and will no longer be updated.
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:
pub vs cs2007
Properties

Article ID: 931289 - Last Review: 01/16/2015 09:20:46 - Revision: 2.0

Windows 7 Service Pack 1, Microsoft Commerce Server 2007 Enterprise Edition, Microsoft Commerce Server 2007 Developer Edition, Microsoft Commerce Server 2007 Standard Edition

  • kbnosurvey kbarchive kberrmsg kbbug kbtshoot kbprb KB931289
Feedback