1
我可以通过连接到PC的Windows Mobile设备通过USB连接到我的PC上的SQL Server,而不会出现任何问题。但是我不能从模拟器上做同样的事情。从Windows Mobile连接到SQL Server
它抛出一个异常:
SQL Server不存在或拒绝访问。
连接字符串:
Data Source=172.16.6.114; Initial Catalog=Barcode; User ID=sa; Password=123
可能是什么问题?在互联网上没有太多的信息:(
您是否检查模拟器的网络连接? – boindiil
是的,没有网络连接。我已经尝试了几乎所有的东西,但没有帮助。 :(我试过这个:http://blogs.msdn.com/b/alexdan/archive/2009/08/25/enabling-network-connectivity-on-a-windows-mobile-device-emulator.aspx –
This后帮助我得到了仿真器上的网络工作:[链接](http://stackoverflow.com/questions/466770/windows-mobile-emulator-networking-to-host-machine) – boindiil