問題描述
我有一臺安裝了 VS2010 和 sql server 2005、2008 的機器.在安裝 VS2012 之前,我能夠從我的應用程序連接每個遠程數據庫服務器.安裝 VS2012 后,我收到嘗試讀取或寫入受保護內存.這通常表明其他內存已損壞."在我有數據庫調用的代碼上.如果我嘗試連接本地數據庫,它連接正常.我還嘗試通過 Visual Studio 2010 中的服務器資源管理器連接.它成功連接到本地源.但是當我嘗試連接到遠程源時,它會導致 VS2010 崩潰并在事件查看器中出現以下錯誤
I have a machine which has VS2010 and sql server 2005, 2008 installed. I were able to connect every remote database server from my application prior to installing VS2012. After installing VS2012 I am getting "Attempted to read or write protected memory. This is often an indication that other memory is corrupt." on code where i have database call. If i try to connect local database it connects fine. Also what i tried is connect via server explorer in Visual studio 2010. It connects to local source successfully. But when i try to connect to remote source it crashes VS2010 and Get following error in Event viewer
Faulting application name: devenv.exe, version: 10.0.40219.1, time stamp: 0x4d5f2a73
Faulting module name: netconfig.dll, version: 1.0.0.5, time stamp: 0x50a60f11
Exception code: 0xc0000005
Fault offset: 0x0000fdac
Faulting process id: 0xb40
Faulting application start time: 0x01ceae0dd4041a18
Faulting application path: C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe
Faulting module path: C:\WINDOWS\system32\drivers\imonagent\netconfig.dll
Report Id: 5fec2d1f-1a01-11e3-bf8e-4c001050978f
我已閱讀以下帖子并下載了實用程序,但它也沒有表示我的機器有任何錯誤http://social.msdn.microsoft.com/Forums/vstudio/en-US/81e1b380-afe1-46ad-9c91-a588e0a5aa4b/how-to-reenable-remote-sql-server-connections-after-installing-visual-studio-2012
I have read following post and downloaded utility but it also not indicates any error in my machine http://social.msdn.microsoft.com/Forums/vstudio/en-US/81e1b380-afe1-46ad-9c91-a588e0a5aa4b/how-to-reenable-remote-sql-server-connections-after-installing-visual-studio-2012
請幫我解決這個問題問題不僅發生在我調試時,而且如果有人試圖在我的機器上查看托管站點,它有一些遠程數據庫服務器連接
Please help me what to do with this problem Problem not only occurs while i am debugging but also if somebody trying to view hosted site in my machine which has some remote database server connection
推薦答案
通過從 中提到的命令提示符運行以下命令 (netsh Winsock reset) 祝你好運social.msdn.microsoft.com/Forums/vstudio/en-US/2d11b6f9-3ada-4682-b643-c721a97af4ba/cant-connect-to-database-after-installing-vs-11-pro-beta
Have a luck via running following command (netsh Winsock reset) from command prompt mentioned in social.msdn.microsoft.com/Forums/vstudio/en-US/2d11b6f9-3ada-4682-b643-c721a97af4ba/cant-connect-to-database-after-installing-vs-11-pro-beta
這篇關于安裝 Visual Studio 2012 后無法連接任何遠程數據庫服務器的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!