C#

Updater work notes

Posted by Kerwen Blog on March 26, 2018
  1. IIS enable net.tcp 协议
    Right click on application, manage application -> Advanced setting
    service change to “http,net.tcp”

1.1 IIS add application pool for .net 4.0

  1. Database does not have privilege to write
    Modify database file and its folder’s privilege setting

  2. Library project could not set config
    Refrence C# library project 不支持

  3. SQLite binary 版本不兼容, release, debug 加新的配置
    调用SQLite binary,有时会提示版本兼容问题,需要修改project的配置文件,在release和debug下加入以下配置:

  4. IIS does not need to set notify port
    在使用WCF service时,需要进行服务器地址配置,需要加端口号,但如果选择用IIS托管,可以省略端口号。IIS 可以自己管理。

  5. windows service install, use InstallUtil.exe
    打开VS2017 command 窗口
    InstallUtil.exe UpdateServiceAgent.exe
    InstallUtil.exe -u UpdateServiceAgent.exe

  6. NuGet package restore failed for project PCDCInterface: Unable to find version ‘1.0.0.3’ of package ‘Newtonsoft.Json’.
    Solution: PCDCInterface need the libraies of Json during compile, please copy ‘packages’ to the root of solution

  7. WPF ContextMenu MenuItem binding command does not work
    Solution: Check this
    a. Create a proxy class
    b. Add proxy binding to resource
    c. Modify ContextMenu

  8. How to show text in Progress bar

    <!–

    –>

  9. Button in DataGrid binding command does not work

  10. How to popup context menu when click left mouse

  11. How to close window in ViewModel

Reference

  1. Update WCF Service reference could not get the latest service contract Check the folder permission, unselect “ReadOnly”