前几天我的电脑瘫痪了,所以重新安装了操作系统(Microsoft Windows XP Professional Service Pack 2),系统作好了以后第一件事情就是安装.NET 2003 (因为有很多项目都需要用它维护)。为了确保.NET 2003 的WebApp和SmartApp运行正常(WinApp一般不会出什么问题),我习惯性的建立了一个新的WebApp,Build Solution -> Successful; Debug-> Faild ! 报错:"服务器拒绝,请确认是否具有足够的权限..."不解,怎么回事?Google了一下,原来是IIS的身份验证方法的原因。
具体解决方法:
控制面板\管理工具\IIS\信息服务\网站\默认网站->点击右键->选择属性->目录安全性->在匿名访问和身份验证控制 部分选择->编辑->在身份验证方法对话框中 勾选->集成Windows 身份验证-> 确定->确定....
WebApp 确定没有问题以后,将需要维护的WebApp 项目 get latest Version .搞定Web部分
and then SmartPhoneAPP Build -> successful;Debug->Failed.消息文本为“One or more files from the Emulator for Windows CE installation is missing.Please reinstall Emulator for Windows CE and try again.” ,Google了一下,在下面的URL Find 11.10 description.
11.10. 当模拟器在启动时,为什么会产生关于丢失文件的错误消息?
表现:当模拟器在启动时,会出现一个标题为“Emulator for Windows CE”的消息框,消息文本为“One or more files from the Emulator for Windows CE installation is missing.Please reinstall Emulator for Windows CE and try again.” 出现这个消息框之后,连接或部署到模拟器会失败。
原因: 一个典型原因是模拟器驱动程序没有安装或已损坏。
解决办法:转到“Device Manager”(右键单击“My Computer”,选择“Properties->Hardware”并按“Device Manager”按钮),检查 System Devices 组中是否安装“Virtual PC Application Services”。如果该驱动程序没有安装,则通过运行“\CompactFrameworkSDK\ConnectionManager\Bin\DriverInstall\Smart Devices Emulator.msi”来安装。
注:运行 msi 文件之后确认出现“Virtual PC Application Services”。如果没有出现,则重启 PC 并尝试再次安装。
按照上边的描述,打开设备管理器,并且在系统设备中找到了“Virtual PC Application Services”,结果如图所示,这下子问题非常明确了.
具体解决方法:
| 1. | Click Start, click Run, type sysdm.cpl, and then click OK. |
| 2. | In the System Properties dialog box, click the Advanced tab. |
| 3. | Under Start and Recovery, click Settings. |
| 4. | In the Startup and Recovery dialog box, click Edit. |
| 5. | Disable PAE mode by removing the /pae option if it exists. |
| 6. | Remove the /noexecute option if it exists. |
| 7. | Add the /execute option. |
| 8. | On the File menu, click Save. |
| 9. | To exit Notepad, click Exit on the File menu. |
| 10. | To close System Properties, click OK two times. |
| 11. | Restart your computer. |
问题是解决了,可是为什么系统在启动的时候会阻止这个驱动呢?
原来是该设备驱动程序可能会导致 Windows XP Service Pack 2 不稳定,故系统阻止了该驱动程序的安装.......汗!
详细信息,见下列叙述: