web方式啓動smartclient遇到的問題

記錄從web方式啓動發佈後的.application程序出現過的問題及解決方法

1.未經授權的錯誤:
Cannot retrieve application. Authentication error.

The remote server returned an error: (401) Unauthorized.

解決辦法:
在IIS找到相應的目錄,設置其目錄安全性,把匿名訪問和集成window系統認證勾上

錯誤2:The type intializer for 'xxxx' threw an exception.

解決辦法:
由於部署原因,網站可能設置了其他的端口。啓動時把端口號加上


錯誤3:
Cannot continue.The application is improperly formatted.
Contact the application vendor for assistance.

Solution:
Assembly name不能有空格,譬如Smart Client要改成Smart_Client或者Smart.Client等
單獨發佈一次,再重新部署即可 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章