• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Embedded Software » WinCE » WinCE forum » How to launch C# Net Compact Framework Application on Windows CE 6.0 on OMAP-L138 Experimenter Kit
Share
WinCE
  • Forum
Options
  • Subscribe via RSS

How to launch C# Net Compact Framework Application on Windows CE 6.0 on OMAP-L138 Experimenter Kit

How to launch C# Net Compact Framework Application on Windows CE 6.0 on OMAP-L138 Experimenter Kit

This question is not answered
Damian Gowor
Posted by Damian Gowor
on Jun 10 2012 18:14 PM
Intellectual805 points

I am trying to start a simple hello world Net Compact Application written in C# on the Experimenter Kit. I am running the OMAPL138_AM18X_SAMPLE OS Design which is downloaded through Ethernet onto the device. I am using Visual Studio and Windows CE platform builder which was supplied with the Experimenter Kit (180 days trial). I created the 'Visual C# / Smart Device / Windows CE 5.0' application and built it then I copied the .exe file into 'C:\WINCE600\OSDesigns\OMAPL138_AM18X_SAMPLE\OMAPL138_AM18X_SAMPLE\RelDir\OMAPL138_AM18X_ARMV4I_Release' folder so I could see it in Visual Studio Menu 'Target / Run Programs' as I have found a tutorial which says to do this way. After trying to run it this way on the console appeared following information:

'Run Programs s NetTest

3393968 PID:400002 TID:31c0042 RELFSD: Opening file NetTest.exe from desktop
s NetTest 00:00:33 06/11/2012 GMT (czas letni)
End s NetTest 00:00:33 06/11/2012 GMT (czas letni)'

but nothing appeared on the LCD screen (the windows shell was visible all the time). When I launched for example the 'ddex' file in the same way it started to do its stuff on the screen. So the question is how I should launch this application to make it working? 

Best regards,

Damian Gowor

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • hb chen
    Posted by hb chen
    on Jun 10 2012 21:39 PM
    Expert1275 points

    Hi Damia Gowor,

    When you compile your platform image, did you enable .NET Compatct Framework 3.5 ~?

    HB

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Damian Gowor
    Posted by Damian Gowor
    on Jun 11 2012 01:52 AM
    Intellectual805 points

    I have a possibility of choosing Net 2.0 in the 'wizzard' not 3.5. Of course it is enabled. Is the way that I am doing the proper way of starting applications? How can I make it starting automatically when Windows starts?

    Best regards,

    Damian Gowor

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • hb chen
    Posted by hb chen
    on Jun 11 2012 02:00 AM
    Expert1275 points

    Dear Damian Gowor,

    In my experience, yes, you need to enable .NET 3.5 version (and remove .NET2.0).

    You can google "[HKEY_LOCAL_MACHINE\init]" to run an application when wince starts.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Damian Gowor
    Posted by Damian Gowor
    on Jun 12 2012 03:56 AM
    Intellectual805 points

    Hello,

    When I compiled the OS with Framework 3.5 the application is starting but I am receiving following error:

    Run Programs s CompactNetTest
    19515 PID:400002 TID:3ba0062 RELFSD: Opening file CompactNetTest.exe from desktop
    19775 PID:400002 TID:3ba0062 RELFSD: Opening file CompactNetTest.exe from desktop
    s CompactNetTest 09:42:34 06/12/2012 GMT Daylight Time
    End s CompactNetTest 09:42:34 06/12/2012 GMT Daylight Time

    20267 PID:3a00062 TID:3ba0062 CompactNetTest.exe
    20267 PID:3a00062 TID:3ba0062 Error
    20268 PID:3a00062 TID:3ba0062 An unexpected error has occurred in CompactNetTest.exe.
    Select Quit and then restart this program, or select Details for more information.

    File or assembly name 'System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=969DB8053D3322AC',
    29997 PID:3a00062 TID:3ba0062 CompactNetTest.exe
    29997 PID:3a00062 TID:3ba0062 Error
    29998 PID:3a00062 TID:3ba0062 CompactNetTest.exe
    MissingMethodException
    File or assembly name 'System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=969DB8053D3322AC', or one of its dependencies, was not found.

    I understand that some resources are missing and I tried to copy the Form resource file but it didn't help. Any suggestions?

    Best regards,

    Damian Gowor

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Damian Gowor
    Posted by Damian Gowor
    on Jun 14 2012 05:38 AM
    Intellectual805 points

    Anybody know something about this error? The application is very simple, one button, one textbox.

    Best regards,

    Damian Gowor

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Damian Gowor
    Posted by Damian Gowor
    on Jun 17 2012 14:53 PM
    Intellectual805 points

    Ok I resolved the problem. I will leave the solution for other people who will have this kind of problem.

    To resolve this problem I added a file "appname.exe.config" where the 'appname' is the C# application name into the application folder with following content:

    <configuration>
    <runtime>
    <compatibilityversion major="2" minor="0"/>
    </runtime> <startup>
    <supportedRuntime version="v3.5.7000"/>
    </startup>
    </configuration>

    Thread about this you can find on following website: http://msdn.microsoft.com/en-US/library/d5cd9b2c.aspx

    Best regards,

    Damian Gowor

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use