部署IIS的時候,會出現
System.BadImageFormatException: Could not load file or assembly 'xxx' or one of its dependencies. 試圖加載格式不正確的程序。
問題分析:
由於編譯中有的是32位有的是64位 不一致
解決辦法:
1.找到IIS該站點對應的應用程序池
2.右鍵菜單 -->高級設置
3.常規-->啓用32位應用程序 將False 更改爲True 就行了
部署IIS的時候,會出現
System.BadImageFormatException: Could not load file or assembly 'xxx' or one of its dependencies. 試圖加載格式不正確的程序。
問題分析:
由於編譯中有的是32位有的是64位 不一致
解決辦法:
1.找到IIS該站點對應的應用程序池
2.右鍵菜單 -->高級設置
3.常規-->啓用32位應用程序 將False 更改爲True 就行了