天天看點

visual2013 的 MVC 4中連接配接資料庫報錯解決方案

win7  64位安裝vs2013後連接配接遠端資料庫出現下面的問題:

A first chance exception of type 'System.AccessViolationException' occurred in System.Data.dll

Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

用管理者身份運作CMD,輸入netsh winsock reset并回車(注意,必須是已管理者身份運作,這個重置LSP連接配接)