Microsoft KB Archive/931289

From BetaArchive Wiki
Knowledge Base


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

Article ID: 931289

Article Last Modified on 3/24/2007



APPLIES TO

  • Microsoft Commerce Server 2007 Enterprise Edition
  • Microsoft Commerce Server 2007 Developer Edition
  • Microsoft Commerce Server 2007 Standard Edition



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:

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:


Additional query words: pub vs cs2007

Keywords: kbpubtypekc kberrmsg kbbug kbtshoot kbprb KB931289