问题根据示例扩展LineItem对象 [英] Problem Extending LineItem Object according to the examples
问题描述
您好,
我一直试图通过所有示例扩展CS09 LineItem。
当我尝试运行OrderMapping.exe时,我的问题就开始了。
我收到以下消息:
C:\Order Mapping> OrderMapping.exe / w Web.config
Microsoft(R)Commerce Server 2007订单映射工具>
版权所有(C)Microsoft Corporation
未处理的异常:System.BadImageFormatException:无法加载文件或装入
mbly'Microsoft.Samples.Commerce.Extensibility'或其依赖项之一。这个
程序集是由比当前加载的运行时更新的运行时构建的,并且可以加载
。$
文件名:'Microsoft .Samples.Commerce.Extensibility'
$
在System.Reflection.Assembly._nLoad(AssemblyName fileName,String codeBase,
Evidence assemblySecurity,Assembly locationHint,StackCrawlMark& stackMark,Boo
lean throwOnFileNotFound,Boolean forIntrospection)
在System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef,Evidence
assemblySecurity,StackCrawlMark& stackMark,Boolean forIntrospection)
在System.Reflection.Assembly.InternalLoad(String assemblyString,证据为
semblySecurity,StackCrawlMark& stackMark,Boolean forIntrospection)
在System.Reflection.Assembly.Load(String assemblyString)
在Microsoft.CommerceServer.Internal.Orders.Storage.SchemaMapping.LoadAssembl
ies(TypeDefinition [] typeDefs,MappingResults results)
在Microsoft.CommerceServer.Internal.Orders.Storage.SchemaMapping.ReadMapping
(Stream stream,TypeDefinition [] typeDefinitions,MappingResults& outResults)
在Microsoft.CommerceServer.Internal.Orders.Storage.SchemaMapping.ReadMapping
(字符串文件名,TypeDefinition [] typeDefinitions,MappingResults& outResults)
在Microsoft.CommerceServer.Internal.Orders.Storage.OrderMapping.Main(String [
] args)
WRN:程序集绑定日志记录是关闭。
要启用程序集绑定失败日志记录,请将注册表值[HKLM \Software \M¥
icrosoft\Fusion!EnableLog](DWORD)设置为1 。
注意:程序集绑定失败会导致一些性能损失低价b $ b gging。
要关闭此功能,请删除注册表值[HKLM \Software \Microsoft \Fus
ion!EnableLog]。
如果有人在此之前解决了这个问题,那将对我有所帮助。 / p>
谢谢,
Yuval
您好Yuval,
按照此链接中的步骤进行操作
http://msdn.microsoft.com/en-us/library/bb219308%28CS.70%29.aspx
a lso检查Ravi的博客
http:// microsoftblog。 co.in/commerceserver/error-while-executing-ordermappingexe-tool/
Hello,
I've been trying to extend the CS09 LineItem by all the examples.
My problem begins when i try to run the OrderMapping.exe.
I'm getting the following message:
C:\Order Mapping>OrderMapping.exe /w Web.config
Microsoft (R) Commerce Server 2007 Order Mapping Tool
Copyright (C) Microsoft Corporation
Unhandled Exception: System.BadImageFormatException: Could not load file or asse
mbly 'Microsoft.Samples.Commerce.Extensibility' or one of its dependencies. This
assembly is built by a runtime newer than the currently loaded runtime and cann
ot be loaded.
File name: 'Microsoft.Samples.Commerce.Extensibility'
at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase,
Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boo
lean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence
assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence as
semblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.Load(String assemblyString)
at Microsoft.CommerceServer.Internal.Orders.Storage.SchemaMapping.LoadAssembl
ies(TypeDefinition[] typeDefs, MappingResults results)
at Microsoft.CommerceServer.Internal.Orders.Storage.SchemaMapping.ReadMapping
(Stream stream, TypeDefinition[] typeDefinitions, MappingResults& outResults)
at Microsoft.CommerceServer.Internal.Orders.Storage.SchemaMapping.ReadMapping
(String filename, TypeDefinition[] typeDefinitions, MappingResults& outResults)
at Microsoft.CommerceServer.Internal.Orders.Storage.OrderMapping.Main(String[
] args)
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\M
icrosoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure lo
gging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fus
ion!EnableLog].
It would help me very much if someone has solved this problem before.
Thank you,
Yuval
Hi Yuval,
follow steps in this link
http://msdn.microsoft.com/en-us/library/bb219308%28CS.70%29.aspx
also check Ravi's blog
http://microsoftblog.co.in/commerceserver/error-while-executing-ordermappingexe-tool/
这篇关于问题根据示例扩展LineItem对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!