我尝试使用(http://wiki.sensenet.com/Export#Configuration)
从sensenet导出内容"出口"命令调用: Export.exe -SOURCE / Root / Sites / Test -TARGET C:\ ExportSensenet -ASM .. \ bin 我也试过没有" ASM"参数。
Export did not complete successfully.
Export ends with error:
System.TypeInitializationException: The type initializer for 'SenseNet.ContentRe
pository.Storage.SR' threw an exception. ---> System.Reflection.ReflectionTypeLo
adException: Unable to load one or more of the requested types. Retrieve the Loa
derExceptions property for more information.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.Assembly.GetTypes()
at SenseNet.ContentRepository.Storage.TypeHandler.GetTypesByInterface(Type in
terfaceType) in c:\Builds\8\SenseNet\PACKAGECommunity\Sources\Source\SenseNet\St
orage\TypeHandler.cs:line 209
at SenseNet.ContentRepository.Storage.SR..cctor() in c:\Builds\8\SenseNet\PAC
KAGECommunity\Sources\Source\SenseNet\Storage\SR.cs:line 22
--- End of inner exception stack trace ---
at SenseNet.ContentRepository.Storage.SR.get_ResourceManager()
at SenseNet.ContentRepository.Storage.Caching.Dependency.CacheDependencyFacto
ry.CreateNodeDataDependency(NodeData nodeData) in c:\Builds\8\SenseNet\PACKAGECo
mmunity\Sources\Source\SenseNet\Storage\Caching\CacheDependencyFactory.cs:line 7
5
at SenseNet.ContentRepository.Storage.DataBackingStore.CacheNodeData(NodeData
nodeData, String cacheKey) in c:\Builds\8\SenseNet\PACKAGECommunity\Sources\Sou
rce\SenseNet\Storage\DataBackingStore.cs:line 325
at SenseNet.ContentRepository.Storage.DataBackingStore.GetNodeData(NodeHead h
ead, Int32 versionId) in c:\Builds\8\SenseNet\PACKAGECommunity\Sources\Source\Se
nseNet\Storage\DataBackingStore.cs:line 212
at SenseNet.ContentRepository.Storage.Node.LoadNode(NodeHead head, VersionNum
ber version) in c:\Builds\8\SenseNet\PACKAGECommunity\Sources\Source\SenseNet\St
orage\Node.cs:line 1644
at SenseNet.ContentRepository.User.get_Administrator() in c:\Builds\8\SenseNe
t\PACKAGECommunity\Sources\Source\SenseNet\ContentRepository\User.cs:line 38
at SenseNet.ContentRepository.Security.DesktopAccessProvider.get_CurrentUser(
) in c:\Builds\8\SenseNet\PACKAGECommunity\Sources\Source\SenseNet\ContentReposi
tory\Security\DesktopAccessProvider.cs:line 36
at SenseNet.ContentRepository.Storage.Security.AccessProvider.ChangeToSystemA
ccount() in c:\Builds\8\SenseNet\PACKAGECommunity\Sources\Source\SenseNet\Storag
e\Security\AccessProvider.cs:line 72
at SenseNet.ContentRepository.Security.DesktopAccessProvider.GetCurrentUser()
in c:\Builds\8\SenseNet\PACKAGECommunity\Sources\Source\SenseNet\ContentReposit
ory\Security\DesktopAccessProvider.cs:line 52
at SenseNet.ContentRepository.Storage.Security.AccessProvider.ChangeToSystemA
ccount() in c:\Builds\8\SenseNet\PACKAGECommunity\Sources\Source\SenseNet\Storag
e\Security\AccessProvider.cs:line 72
at SenseNet.ContentRepository.RepositoryInstance.DoStart() in c:\Builds\8\Sen
seNet\PACKAGECommunity\Sources\Source\SenseNet\ContentRepository\RepositoryInsta
nce.cs:line 144
at SenseNet.ContentRepository.RepositoryInstance.Start(RepositoryStartSetting
s settings) in c:\Builds\8\SenseNet\PACKAGECommunity\Sources\Source\SenseNet\Con
tentRepository\RepositoryInstance.cs:line 108
at SenseNet.ContentRepository.Repository.Start(RepositoryStartSettings settin
gs) in c:\Builds\8\SenseNet\PACKAGECommunity\Sources\Source\SenseNet\ContentRepo
sitory\Repository.cs:line 58
at SenseNet.Tools.ContentExporter.Exporter.Main(String[] args) in c:\Builds\8
\SenseNet\PACKAGECommunity\Sources\Source\SenseNet\Tools\Export\Exporter.cs:line
139
at SenseNet.ContentRepository.Storage.SR.get_ResourceManager()
at SenseNet.ContentRepository.Storage.Caching.Dependency.CacheDependencyFacto
ry.CreateNodeDataDependency(NodeData nodeData) in c:\Builds\8\SenseNet\PACKAGECo
mmunity\Sources\Source\SenseNet\Storage\Caching\CacheDependencyFactory.cs:line 7
5
at SenseNet.ContentRepository.Storage.DataBackingStore.CacheNodeData(NodeData
nodeData, String cacheKey) in c:\Builds\8\SenseNet\PACKAGECommunity\Sources\Sou
rce\SenseNet\Storage\DataBackingStore.cs:line 325
at SenseNet.ContentRepository.Storage.DataBackingStore.GetNodeData(NodeHead h
ead, Int32 versionId) in c:\Builds\8\SenseNet\PACKAGECommunity\Sources\Source\Se
nseNet\Storage\DataBackingStore.cs:line 212
at SenseNet.ContentRepository.Storage.Node.LoadNode(NodeHead head, VersionNum
ber version) in c:\Builds\8\SenseNet\PACKAGECommunity\Sources\Source\SenseNet\St
orage\Node.cs:line 1644
at SenseNet.ContentRepository.User.get_Administrator() in c:\Builds\8\SenseNe
t\PACKAGECommunity\Sources\Source\SenseNet\ContentRepository\User.cs:line 38
at SenseNet.ContentRepository.Security.DesktopAccessProvider.get_CurrentUser(
) in c:\Builds\8\SenseNet\PACKAGECommunity\Sources\Source\SenseNet\ContentReposi
tory\Security\DesktopAccessProvider.cs:line 36
at SenseNet.ContentRepository.Storage.Security.AccessProvider.ChangeToSystemA
ccount() in c:\Builds\8\SenseNet\PACKAGECommunity\Sources\Source\SenseNet\Storag
e\Security\AccessProvider.cs:line 72
at SenseNet.ContentRepository.Security.DesktopAccessProvider.GetCurrentUser()
in c:\Builds\8\SenseNet\PACKAGECommunity\Sources\Source\SenseNet\ContentReposit
ory\Security\DesktopAccessProvider.cs:line 52
at SenseNet.ContentRepository.Storage.Security.AccessProvider.ChangeToSystemA
ccount() in c:\Builds\8\SenseNet\PACKAGECommunity\Sources\Source\SenseNet\Storag
e\Security\AccessProvider.cs:line 72
at SenseNet.ContentRepository.RepositoryInstance.DoStart() in c:\Builds\8\Sen
seNet\PACKAGECommunity\Sources\Source\SenseNet\ContentRepository\RepositoryInsta
nce.cs:line 144
at SenseNet.ContentRepository.RepositoryInstance.Start(RepositoryStartSetting
s settings) in c:\Builds\8\SenseNet\PACKAGECommunity\Sources\Source\SenseNet\Con
tentRepository\RepositoryInstance.cs:line 108
at SenseNet.ContentRepository.Repository.Start(RepositoryStartSettings settin
gs) in c:\Builds\8\SenseNet\PACKAGECommunity\Sources\Source\SenseNet\ContentRepo
sitory\Repository.cs:line 58
at SenseNet.Tools.ContentExporter.Exporter.Main(String[] args) in c:\Builds\8
\SenseNet\PACKAGECommunity\Sources\Source\SenseNet\Tools\Export\Exporter.cs:line
139
我没有更改export.exe.config文件,它具有正确的数据库配置。
答案 0 :(得分:1)
通常这是缺少库的标志。首先,我尝试将所有库从web \ bin文件夹复制到web \ Tools文件夹(执行该工具的位置)。如果这没有帮助,请确保导出配置中的运行时绑定与web.config中的相同。