I have created a Designer support DateTimePicker with CultureInfo support.
Following the instructions explained at :
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/customctrlscompactfx.asp
I got this to work in the Emulator.
However when I run the program on my Maschine (XDA I - Pocket PC 2002 -
German) I recieve the following error
when the program starts:
TypeLoadException the Typ "System.Windows.Forms.Control" of the Assembly
"System.Windows.Forms, Version=1.0.5000.0,Culture=neutral, ....
The resulting .dll is copied to the Program Files Directory togeather with
the .exe
In the AssemblyInfo.cs :
[assembly: AssemblyCulture("")]
#if DESIGN
[assembly:
System.CF.Design.RuntimeAssembly("mj10777.DateTimePicker,Version=1.0.1.0,
Culture=neutral, PublicKeyToken=null")]
#endif
The goal is for this Control to run on all Maschines without further
changes.
This error also accured with the project found in the link above (Emulator
OK ; Maschine failed).
What could the cause be?
Mark Johnson, Berlin Germany
Mark Johnson, Berlin Germany
mj1...@mj10777.de
"Mark Johnson" <mj1...@mj10777.de> schrieb im Newsbeitrag
news:4040769c$0$17575$9b4e...@newsread4.arcor-online.net...
What is the PublicKeyToken in the TypeLoadException message? Also, have
you verified that NETCF installed correctly? (Does a simple form run?)
Stan Adermann
Developer
Microsoft .NET Compact Framework
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: "Mark Johnson" <mj1...@mj10777.de>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| References: <4040769c$0$17575$9b4e...@newsread4.arcor-online.net>
| Subject: Re: TypeLoadException : Typ System.Windows.Forms.Control
| Date: Sun, 29 Feb 2004 15:11:07 +0100
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Lines: 62
| Message-ID: <4041f300$0$28969$9b4e...@newsread2.arcor-online.net>
| Organization: Arcor
| NNTP-Posting-Date: 29 Feb 2004 15:11:12 MET
| NNTP-Posting-Host: 213.23.144.161
| X-Trace:
DXC=[GQH3_VOU]8LL2:TY8[@n6Q5U85hF6f;4jW\KbG]kaM8lSE5DYV?ad1dd`6]ThL^^8KgWG2b
RR9h>7[[mB2>@P@9VLMQgIHm1:9
| X-Complaints-To: ab...@arcor-online.net
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onlin
e.de!newsfeed.freenet.de!newsfeed.tiscali.ch!feed1.news.be.easynet.net!newsf
eed.arcor-online.net!newsread.arcor-online.net!news.arcor.de!not-for-mail
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:47230
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
Everything else works correctly.
The source of this Control where the .cs file is included in a Project runs
correctly.
Only when included as Control does it fail with SP2 (Emulator/Mashine), SP1
runs correctly on Emulator.
This also happens (same PublicKeyToken) with the project found at
Mark Johnson, Berlin Germany
mj1...@mj10777.de
""Stan Adermann [Msft]"" <st...@online.microsoft.com> schrieb im Newsbeitrag
news:AbKC0zKA...@cpmsftngxa06.phx.gbl...
MSDN article you are following is attempting to show you how to combine a
desktop project with a smart device project, which is a bit dangerous. You
have to be very careful to reference ONLY Compact Framework libraries or
you will get the problem you are seeing. Also note that this article
references pre-RTM NETCF (version 1.0.3300.0), and not everything in it is
guaranteed to be up to date.
Stan Adermann
Developer
Microsoft .NET Compact Framework
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: "Mark Johnson" <mj1...@mj10777.de>
|
| PublicKeyToken=B77A5C561934E089
|
| Everything else works correctly.
| The source of this Control where the .cs file is included in a Project
runs
| correctly.
| Only when included as Control does it fail with SP2 (Emulator/Mashine),
SP1
| runs correctly on Emulator.
|
| This also happens (same PublicKeyToken) with the project found at
|
|
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/h
tml/customctrlscompactfx.asp
|
|
| Mark Johnson, Berlin Germany
| mj1...@mj10777.de
|
|
| ""Stan Adermann [Msft]"" <st...@online.microsoft.com> schrieb im
Newsbeitrag
| news:AbKC0zKA...@cpmsftngxa06.phx.gbl...
| > Mark,
| >
| > What is the PublicKeyToken in the TypeLoadException message? Also, have
| > you verified that NETCF installed correctly? (Does a simple form run?)
| >
| > --------------------
| > | From: "Mark Johnson" <mj1...@mj10777.de>