English 中文(简体)
在Microsoft Compact Framework 2.0 / 3.5中部署mscorlib.dll后无法找到System.Threading。
原标题:Could not find System.Threading after deploying in mscorlib.dll in Microsoft Compact Framework 2.0/3.5

我在Windows Mobile 6上遇到了问题。我开发了一个应用程序,并使用了位于mscorlib.dll程序集中的System.Threading命名空间中的Timer类。问题在于,当我在我的设备(HTC ELF0300)上通过从Visual Studio 2008创建适当的cab文件进行调试或部署时,它可以正常运行,但当我们的客户在他的设备(HTC Tilt 2)上部署它时,它会在System.Threading.Timer.ring()处抛出TypeLoadException异常。在经过大量搜索并查看我在项目中引用的每个程序集的IL DASM和Visual Studio的对象资源管理器后,我发现部署所使用的cab项目中添加的mscorlib.dll文件缺少System.Threading命名空间,而我的主要项目中存在的mscorlib.dll文件则在对象资源管理器中显示了System.Threading命名空间。可能是由于这个原因,我们的客户面对TypeLoadException异常的问题。

但我仍然困惑的是如果在cab文件中的mscorlib.dll中缺少命名空间,那么如何在我的设备(HTC ELF0300)上部署和运行cab文件,但在HTC Tilt2上无法运行?我该怎么做才能在我的cab文件中添加正确的mscorlib.dll?

将此翻译成中文:任何帮助将不胜感激。谢谢。

Zunair Minhas. http://www.tkxel.com/

最佳回答

你的客户是否已在设备上安装了正确版本的.NET Compact Framework?

您不应该在您的CAB文件中包含mscorlib.dll,因为它是.NET Compact Framework的一部分,如果用户已经正确安装它,它会在用户的设备上找到。

请询问客户是否可以在其设备上打开“文件资源管理器”,并查看“Windows”文件夹中是否可以看到cgautil.exe文件。

如果他能看到,请请求他打开并检查屏幕上显示的版本号(2.0.xxxx或3.5.xxxx)。那就是他安装的.NET CF版本。

如果他看不到,他将没有安装.NET CF,并需要在运行您的应用程序之前安装它。

问题回答

暂无回答




相关问题
VS 2008 : How to publish with out DLLs?

I have developed a web application in Visual Studio 2008 and want to publish it in to the production server. I see a publish option there.But its producing files with DLL. I dont want to publish only ...

Apache: Deploying a new site to the server

I have a site currently live on a domain. I would like to switch it to a new site, that is currently in a password protected sub directory on this server. I have a "Site Maintenance in Progress" page....

Appropriate strategy for tagging and hotfixing with git

I was wondering if the strategy I m using for tagging and hotfixing tags (which then I use for deploying rails applications) with git is appropriate. For tagging I just tag a commit of the master ...

Pylons deployment questions

I m a beginner with Pylons and I ve mostly developed on my localhost using the built-in web server. I think it s time to start deployment for my personal blog, I have a Debian Lenny server with ...

Do I want Publish or Release Build in VB.net?

I wrote a little (like 40 lines little) Winforms application with VB.net in Visual Studio 2010. Now I ve released the code as a Google Code project. It s easy for a developer to get the source but I d ...

Need advice on my PHP development solution

Here is how our current php development solution is set up: Each developer work on their local machine. Each developer commit their change to a common SVN server (intranet). A commit hook upload the ...

loading from JAR files during deployment vs development

when i am loading some data into my java program, i usually use FileInputStream. however i deploy the program as a jar file and webstart, so i have to use getRessource() or getRessourceAsStream() to ...

热门标签