我只看到可以将Azure云端硬盘挂载为本地磁盘的C#API。
所以我尝试编写一个小的C#应用程序来挂载云驱动器并从startup.cmd调用它,但失败并出现以下错误:
System.BadImageFormatException: Could not load file or assembly 'mswacdmi, Versi
on=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its depe
ndencies. An attempt was made to load a program with an incorrect format.
File name: 'mswacdmi, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856a
d364e35'
at Microsoft.WindowsAzure.StorageClient.CloudDrive.InitializeCache(String cac
hePath, Int32 totalCacheSize)
似乎找不到mswacdmi.dll,但是在将mswacdmi.dll复制到应用程序文件夹后仍然无效。
答案 0 :(得分:0)
因此,这个问题的答案是将应用程序目标平台从x86更改为x64