Get technical insight on the implementation of Mobile Web Server architecture. Understand use cases, the web server framework and future developments in the architecture:
http://msdn.microsoft.com/library/en-us/dnnetcomp/html/NETCFMA.asp
8.11. Why do I get an exception when calling SetSocketOption with ReuseAddress set?
This is a known issue in the version 1 of the .NET Compact Framework. To work around the issue, you can P/Invoke setsockopt with SO_REUSEADDR set to true.
8.12. Why do I get a socket error using SSL to communicate with a server via the WebRequest namespace?
There is a known issue in the .NET Compact Framework. You can work around this by setting HttpWebRequest.AllowStreamWriteBuffering to True and commenting out your setting of the ContentLength.
9. SQL CE 和 数据
9.1. 使用.net精简框架、SQL Server CE 和 复制 开发应用程序时,要注意些什么?
这篇文章详细讨论了这个问题:
http://msdn.microsoft.com/msdnmag/issues/03/09/datapoints/toc.asp
9.2. 如何在微软.net精简框架上使用合并复制(Merge Replication)?
这篇文章讨论了如何通过程序在.net精简框架的应用程序中调用合并、复制:
http://msdn.microsoft.com/library/en-us/dnnetcomp/html/netcfmergereplication.asp
SQL Server CE是非常好的在设备上管理数据的工具,但在未复制到桌面机的SQL Server之前,它必须保留数据。使用合并、复制在设备上管理数据,然后当设备连接到桌面机时,再合并到桌面机的SQL Server的实例中。.net精简框架提供SqlCeReplication对象,可以通过程序实现数据的合并与复制。
http://samples.gotdotnet.com/quickstart/CompactFramework/doc/sqlcemergereplication.aspx
9.3. 如何将ADO.NET数据和XML绑定?
以下三个步骤:
根据提供的XML文件,建立一个XML Schema文件(.xsd)。
读取XML数据和它的schema,以便操作。
将XML保存会文件。 http://samples.gotdotnet.com/quickstart/CompactFramework/doc/adonetdatabinding.aspx
9.4. 如何建立SQL Server CE的数据库?
您可以使用.net精简框架在Windows CE.NET的设备上建立、管理SQL Server CE的数据库。这篇快速入门教程演示了如何实现它:
建立一个SQL CE数据库。
连接到SQL CE数据库。
在SQL CE的数据库中建立一个表。
插入一行数据到SQL CE数据库中。
http://samples.gotdotnet.com/quickstart/CompactFramework/doc/sqlcedbcreate.aspx
9.5. 如何向SQL Server CE提交一个带参数的查询?
您可以使用.net精简框架在用户输入时,向SQL Server CE的数据库中插入值。以下教程向您展示了如何实现此操作:
设计一个用户可以设置查询值的界面。
连接到SQL CE的数据库。
把用户输入的值插入到SQL CE的数据库中 http://samples.gotdotnet.com/quickstart/CompactFramework/doc/sqlceparameterizedquery.aspx
9.6. Why does using RDA and the push method fail with error 27750?
Symptom
When calling: rda = new SqlCeRemoteDataAccess();
An error of type SQLCeException with a Native Error Code of 27750 occurs. This error corresponds to "Cannot load sscemw20.dll or ssceca20.dll is missing or not registered."
Resolution
Load the library at the start of the application, even if you do nothing with it. To load the library, you can load the SqlCeEngine object. SqlCeEngine eng = new SqlCeEngine();
10. 其他信息
10.1. Pocket TaskVision 程序
This document provides an overview of the development tasks that were unique to the Pocket TaskVision sample application. Pocket PC devices have much lower storage capacities, memory and lower-end processors than desktop systems—storage and performance considerations are mentioned throughout the document.
http://msdn.microsoft.com/library/en-us/dnnetcomp/html/wnf_pkttaskvision.asp
10.2. 建立基于微软.net精简框架的进程管理器
In this article, learn how to marshal structures as byte arrays.
http://msdn.microsoft.com/library/en-us/dnnetcomp/html/ProcessManager.asp