Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. NotSupportedException

NotSupportedException

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpdotnetjsonhelpquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Developer611
    wrote on last edited by
    #1

    Hi, I wrote an application that able to connect another bluetooth device in .Net Framework 2.0 using bluetooth API, now I want to do this with .Net Compact Framework on my mobile device. That's the problem, When I'm Calling Bluetooth API like WSAStartup or using SizeOf method of Marshal class, it gives me NotSupportedException exception. Please tell me how can i solve this problem. Thank you.

    DMASTER

    D 1 Reply Last reply
    0
    • D Developer611

      Hi, I wrote an application that able to connect another bluetooth device in .Net Framework 2.0 using bluetooth API, now I want to do this with .Net Compact Framework on my mobile device. That's the problem, When I'm Calling Bluetooth API like WSAStartup or using SizeOf method of Marshal class, it gives me NotSupportedException exception. Please tell me how can i solve this problem. Thank you.

      DMASTER

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      You're going to have to rewrite the code to do whatever it is you want a different way, since, well, what you're doing now is NotSupported on .NET CF. BTW: You might want to post future queries to this problem in the Mobile Development Forum.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008

      U 1 Reply Last reply
      0
      • D Dave Kreskowiak

        You're going to have to rewrite the code to do whatever it is you want a different way, since, well, what you're doing now is NotSupported on .NET CF. BTW: You might want to post future queries to this problem in the Mobile Development Forum.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007, 2008

        U Offline
        U Offline
        User 5307191
        wrote on last edited by
        #3

        Thanks for your reply dear Dave. But I hadn't rewrite my previous code in .net compact framework, I know all methods and parameters that should be set on .net compact framework. Ok, Lets suppose that you are right, so what about SizeOf Method . If you refer to msdn, you can see that, it's marked as supported on .net CF. Thank you.

        D 1 Reply Last reply
        0
        • U User 5307191

          Thanks for your reply dear Dave. But I hadn't rewrite my previous code in .net compact framework, I know all methods and parameters that should be set on .net compact framework. Ok, Lets suppose that you are right, so what about SizeOf Method . If you refer to msdn, you can see that, it's marked as supported on .net CF. Thank you.

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          You never showed the code and line where the exception occured, so it's impossible to say anything else.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007, 2008

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups