title: How do I Provision a Transport Handler for IoTHub?
body: <p>I am trying to connect to IoTHub to provision my device.</p>
  <p>I am in a Blazor WASM app.</p>
  <p>I have created the Security Provider Symmetric Key via:</p>
  <pre><code>SecurityProvider symmetricKeyProvider = new SecurityProviderSymmetricKey(parameters.DeviceId, parameters.DeviceSymmetricKey, null);
  </code></pre>
  <p>However my next line I call:</p>
  <pre><code>            ProvisioningTransportHandler mqttTransportHandler = new ProvisioningTransportHandlerMqtt(TransportFallbackType.TcpOnly);
  </code></pre>
  <p>I have tried it with both the TcpOnly fallback along with not passing in any fallback and both give me the same error.  The exception is:</p>
  <pre><code>Error provisioning device: The type initializer for 'Microsoft.Azure.Devices.Provisioning.Client.Transport.ProvisioningTransportHandlerMqtt' threw an exception.
  System.TypeInitializationException: The type initializer for 'Microsoft.Azure.Devices.Provisioning.Client.Transport.ProvisioningTransportHandlerMqtt' threw an exception.
   ---&gt; System.InvalidOperationException: failed to create a child event loop.
   ---&gt; System.PlatformNotSupportedException: Operation is not supported on this platform.
     at System.Threading.Thread.Start()
     at DotNetty.Common.Concurrency.SingleThreadEventExecutor..ctor(IEventExecutorGroup parent, String threadName, TimeSpan breakoutInterval, IQueue`1 taskQueue)
     at DotNetty.Common.Concurrency.SingleThreadEventExecutor..ctor(IEventExecutorGroup parent, String threadName, TimeSpan breakoutInterval)
     at DotNetty.Transport.Channels.SingleThreadEventLoop..ctor(IEventLoopGroup parent, String threadName, TimeSpan breakoutInterval)
     at DotNetty.Transport.Channels.SingleThreadEventLoop..ctor(IEventLoopGroup parent)
     at DotNetty.Transport.Channels.MultithreadEventLoopGroup.&lt;&gt;c.&lt;.cctor&gt;b__24_0(IEventLoopGroup group)
     at DotNetty.Transport.Channels.MultithreadEventLoopGroup..ctor(Func`2 eventLoopFactory, Int32 eventLoopCount)
     --- End of inner exception stack trace ---
     at DotNetty.Transport.Channels.MultithreadEventLoopGroup..ctor(Func`2 eventLoopFactory, Int32 eventLoopCount)
     at DotNetty.Transport.Channels.MultithreadEventLoopGroup..ctor()
     at Microsoft.Azure.Devices.Provisioning.Client.Transport.ProvisioningTransportHandlerMqtt..cctor()
  </code></pre>