Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not load file or assembly 'TSS.UWP, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. #12

Closed
toanxyz opened this issue Nov 1, 2017 · 1 comment

Comments

@toanxyz
Copy link

toanxyz commented Nov 1, 2017

I'm trying to create DeviceClient but it keeps getting "Could not load file or assembly 'TSS.UWP, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'."

TpmDevice myDevice = new TpmDevice(0);
string hubUri = myDevice.GetHostName();
string deviceId = myDevice.GetDeviceId();
string sasToken = myDevice.GetSASToken();

var deviceClient = DeviceClient.Create(
hubUri,
AuthenticationMethodFactory.
CreateAuthenticationWithToken(deviceId, sasToken), TransportType.Mqtt);

@toanxyz
Copy link
Author

toanxyz commented Nov 1, 2017

Relate to: Azure/azure-iot-hub-vs-cs#9

@toanxyz toanxyz closed this as completed Nov 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant