微软.net精简框架常见问题及回答(中文版)(35)

王朝c#·作者佚名  2006-01-09
窄屏简体版  字體: |||超大  

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.

Top of Page

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();

Top of Page

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

第一頁    上一頁    第35頁/共78頁    下一頁    最後頁
第01頁 第02頁 第03頁 第04頁 第05頁 第06頁 第07頁 第08頁 第09頁 第10頁 
第11頁 第12頁 第13頁 第14頁 第15頁 第16頁 第17頁 第18頁 第19頁 第20頁 
第21頁 第22頁 第23頁 第24頁 第25頁 第26頁 第27頁 第28頁 第29頁 第30頁 
第31頁 第32頁 第33頁 第34頁 第35頁 第36頁 第37頁 第38頁 第39頁 第40頁 
第41頁 第42頁 第43頁 第44頁 第45頁 第46頁 第47頁 第48頁 第49頁 第50頁 
第51頁 第52頁 第53頁 第54頁 第55頁 第56頁 第57頁 第58頁 第59頁 第60頁 
第61頁 第62頁 第63頁 第64頁 第65頁 第66頁 第67頁 第68頁 第69頁 第70頁 
第71頁 第72頁 第73頁 第74頁 第75頁 第76頁 第77頁 第78頁 
 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航