我有一個ClassLib調用Id.API。 Id.Web引用了這個。WCF,svcutil生成代理與/參考
在Id.API中我有一個實體MyEntity。
當我嘗試創建調用方法SendEcho(myEntity所myEntity所),Id.Web項目抱怨說,它預計
id.web.types.MyEntity
,而不是
Id.API.MyEntity
研究一個PARAM建議給我這是使用svcutil命令行上的參考開關修復的。
這是我的命令行示例:
"C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\x64\SvcUtil.exe"
http://id.web/Services/EchoService.svc?wsdl
/config:C:\Projects\Id.Web\Interface\Services\EchoService.svc.config
/reference:../bin/Id.API.dll
我得到的錯誤:
Error: Cannot load reference assembly '../bin/Id.API.dll'
Cannot load file ../bin/Id.API.dll as an Assembly. Check the FusionLogs for more Information.
Could not load file or assembly 'file:///C:\Projects\Id.Web\Interface\bin\Id.API.dll' or one of its dependencies.
This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
我怎樣才能解決這個問題?謝謝
哦 - 你看過融合日誌嗎? – RQDQ 2011-03-04 02:35:08