Comments (7)
from windowsdeviceportalwrapper.
I have tried connecting at localhost and via internet, and with several different apps. All produce this exception. Thanks for the response!
from windowsdeviceportalwrapper.
Hm - do the other REST APIs work? e.g. you can get the device family? One thing to be aware of is that there might be two LaunchApplication APIs, one of which is for IoT.
from windowsdeviceportalwrapper.
Yes, upon connection I can successfully retrieve the Hololens IP, OS version, and device family.
If I'm reading the documentation correctly, there is only a single LaunchApplication request type, used for both Hololens and IoT.
from windowsdeviceportalwrapper.
Ah, yes, you're correct. Can you share how you're getting the AppId and the packageName?
from windowsdeviceportalwrapper.
Apologies for the inactivity, it's been finals season for me. I'm pulling that information manually from the response to the /api/app/packagemanager/packages request. For example:
appid = "Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge"
packageName = "Microsoft.MicrosoftEdge_38.14393.1770.0_neutral__8wekyb3d8bbwe"
from windowsdeviceportalwrapper.
I got it working by changing the auth to basic auth.
in HttpHeadersHelpers I added
private void ApplyHttpHeaders(
HttpClient client,
HttpMethods method)
{
var byteArray = Encoding.ASCII.GetBytes($"{deviceConnection.Credentials.UserName}:{deviceConnection.Credentials.Password}");
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", Convert.ToBase64String(byteArray));
this.ApplyUserAgentHeader(client);
this.ApplyCSRFHeader(client, method);
}
and I removed the credential stuff from the HttpClientHandler initializations
new HttpClientHandler
{
//UseDefaultCredentials = false,
//Credentials = this.deviceConnection.Credentials,
....
}
from windowsdeviceportalwrapper.
Related Issues (20)
- Multiple Warnings from 'StyleCopTask' task HOT 4
- ToggleEtwProvidersAsync hanging on HoloLens HOT 4
- Wrong Format in SetSoftApSettingsAsync HOT 3
- HttpStatusCode 307 handling HOT 4
- GetAppCrashDumpSettingsAsync API has the wrong capitalization for the packageFullName query parameter.
- [Request] Windows Update
- NetworkAdapterInfo - DDNSEnabled and DNSAddresses missing
- Change IP-Address (IPv4)
- GamePad A, B, X, Y button presses are not going through HOT 1
- The syntax of the command is incorrect (IoT)
- One or more errors occurred. (IoT)
- Unity: Reference to type 'SecureString' claims it is defined in 'mscorlib'
- Support Hololens 2 in DevicePortalPlatforms
- Can i use this wrapper to make an iOS app using Unity to stream the Hololens remotely?
- Support .NET Standard/Core usage HOT 1
- Can we get a Nuget release?
- HL2 set sleep settings fails HOT 1
- Upload errors on Windows build 203xxx HOT 4
- This repo is missing important files HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from windowsdeviceportalwrapper.