简体   繁体   English

Windows Mobile模拟器无法连接到网络或本地SQL Server数据库

[英]Windows Mobile emulator can't connect to network neither local SQL Server database

I've developed a small app for Windows Mobile 6. This app uses 2 databases: a sqlite db located on the mobile device and a SQL Server database located on a server (now it's on the same PC I'm programming with, a Windows 7 system). 我为Windows Mobile 6开发了一个小型应用程序。该应用程序使用2个数据库:位于移动设备上的sqlite db和位于服务器上的SQL Server数据库(现在它位于我正在使用Windows编程的同一台PC上) 7系统)。

When I developed it, I could test the app with the Windows mobile emulator integrated in Visual Studio 2008, and it was fine. 当我开发它时,我可以使用Visual Studio 2008中集成的Windows移动模拟器来测试该应用程序,这很好。

But now I've turned on this computer again to modify the project. 但是现在我再次打开这台计算机来修改项目。 But now I can't test it. 但是现在我无法测试。 The emulator can't connect to the SQL Server database (the error is "SQL Server does not exist or access denied"). 模拟器无法连接到SQL Server数据库(错误是“ SQL Server不存在或访问被拒绝”)。

On the SQL Server, I've created the user the app is using and it has the permission to connect (in fact, the connection works fine from some desktop applications we have developed). 在SQL Server上,我已经创建了该应用程序正在使用的用户,并且该用户具有连接权限(实际上,该连接在我们开发的某些桌面应用程序中可以正常工作)。

On the config of the emulator, I've checked the PCMCIA option with the connected card. 在仿真器的配置中,我已经检查了已连接卡的PCMCIA选项。

I've tried too by installing a Windows 7 system on VirtualBox on other PC, but the result is the same: I can't connect with database. 我也尝试过在其他PC的VirtualBox上安装Windows 7系统,但结果是一样的:我无法与数据库连接。

If I open the Internet Explorer on the emulator, it hasn't connection. 如果我在模拟器上打开Internet Explorer,则它没有连接。

What can I do? 我能做什么?

Thanks 谢谢

Finnaly, I found the problem. 好的,我发现了问题。

I was trying to connect by "localhost" and by "127.0.0.1"... but it only worked when I used the internal IP (192.168.1.X) 我试图通过“ localhost”和“ 127.0.0.1”进行连接...但是它仅在使用内部IP(192.168.1.X)时有效

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM