我試圖使用從sensenet內容導出(http://wiki.sensenet.com/Export#Configuration)Sensenet:出口目錄
「導出」 命令調用: Export.exe -source /根/網站/測試-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文件,它有正確的數據庫配置。
拋出什麼樣的異常?一個nullref?請在堆棧跟蹤上方添加第一行。 –
我正在通過命令行運行。我更新了上面的錯誤消息。 –