PineappleJuice
Posts: 2
Joined: Fri May 15, 2015 9:19 am

Thoughts and Deploy problems

Fri May 15, 2015 10:17 am

Hey everyone,

I decided yesterday that it would become time to start playing with Windows 10 IoT.
So, my first thought was that it looked pretty sweet. It has a nice interface, developing apps and deploying couldn't be more simpler.

Problem
However, it seems that I'm unable to deploy a Windows IoT core backgroundservice project. Giving me some weird MSIL against ARM processor error. Anyone that has had this, and could explain to me how to fix? I've tried setting the build processor type to x86, x64 and ARM, but none worked.

No IIS :(
A downside is that there is no IIS supported at this time. Allowing this would give an entire new meaning to webhosting. As a windows hosting is for as far i know very costly. Though I'm not sure whether RPI2 would be able to host it maintaining a good performance. Which brings us to the next point.

GUI Performance
I have created a simple Universal app, having only a pivot control containing two pivots. When switching between those pivots the CPU raises to 100% for less then a second, and the user interface becomes laggy for a second or two.

Awesome REST Api
When navigating to the webinterface of the RPI, you'll see all these awesome features such as CPU usage, running processes and what not. There is also an page that explains all awesome REST API features, which allows you to reboot, start an application, upload an application, obtain cpu usage... it's and endless list of needie features!

Webserver?
Next to this, I'm wondering whether it would be possible at the release, to create a webserver that includes apache, mysql, php5, pdo.

As I have no idea what the actual definition of IoT (Internet of Things) is, I decided to look it up at wikipedia (http://en.wikipedia.org/wiki/Internet_of_Things). Considering the explanation, I doubt that Windows 10 IoT would even support the most requested features.

I would prefer a RPI with windows over Linux anytime, if it would only support these pretty basic webserver things.

Ofcourse it's just a preview, and who knows what the future holds. I have read that the ASP.NET team is talking with the IoT team to support their features. So, at this moment all I (or we) can do, is wait and hope :3

Kind Regards,
PineappleJuice

GerritV
Posts: 91
Joined: Fri May 01, 2015 4:16 pm
Location: St Catharines, ON
Contact: Website

Re: Thoughts and Deploy problems

Fri May 15, 2015 11:45 am

As I have no idea what the actual definition of IoT (Internet of Things) is, I decided to look it up at wikipedia (http://en.wikipedia.org/wiki/Internet_of_Things). Considering the explanation, I doubt that Windows 10 IoT would even support the most requested features.
There is a zwave interface included in Win IoT. It uses Alljoyn as its infrastructure to interface with other IoT things. T
http://ms-iot.github.io/content/win10/s ... amples.htm is the code, there is also BACnet code for Alljoyn available (see http://www.bacnet.org/ for info on BACnet).

https://allseenalliance.org/ is the alliance providing the direction and source code.

The Internet of Things is a disjointed mess, I think Microsoft is very brave for wading into it.

SebastianM
Posts: 29
Joined: Mon May 11, 2015 11:00 am
Location: Germany, BW
Contact: Website

Re: Thoughts and Deploy problems

Fri May 15, 2015 12:36 pm

Hi,
PineappleJuice wrote: ...snip...

Problem
However, it seems that I'm unable to deploy a Windows IoT core backgroundservice project. Giving me some weird MSIL against ARM processor error. Anyone that has had this, and could explain to me how to fix? I've tried setting the build processor type to x86, x64 and ARM, but none worked.

...snip...
Could you post the exact error Message and a Little more about your Project structure?

I had to add a "Windows universal component" to my solution, put the Backgroundservice (-Task) in this component Project, did add the Background Task and entry Point in the manifest of the universal app (!) and did Register the Background Task with a Trigger. That did it.
Did not get it to work when the Background Task sits in the Windows universal app.

Starting your own "webserver" to provide Responses for http requests ist possible, but I'm not sure about IIS in the future. Would say "no" because IIS seems to be overheaded, maybe a small replacement...
But if you have a IIS, it will not be fully capable if you don't have a database in the Background. Don't know if there are plans to add SQL Server Support to Windows 10 IoT.

Have fun :)

Sebastian
Battleship scale model: https://www.icloud.com/sharedalbum/de-de/#A55oqs3q4mFHQ

PineappleJuice
Posts: 2
Joined: Fri May 15, 2015 9:19 am

Re: Thoughts and Deploy problems

Fri May 15, 2015 2:43 pm

SebastianM wrote:
Could you post the exact error Message and a Little more about your Project structure?

I had to add a "Windows universal component" to my solution, put the Backgroundservice (-Task) in this component Project, did add the Background Task and entry Point in the manifest of the universal app (!) and did Register the Background Task with a Trigger. That did it.
Did not get it to work when the Background Task sits in the Windows universal app.
The exact error is:

There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "c:\users\admin\documents\visual studio 2015\Projects\BackgroundApplication1\BackgroundApplication1\bin\ARM\Debug\BackgroundApplication1.winmd", "ARM". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project. BackgroundApplication1

All I did was File > New > Project > Windows IoT Core > Background Application (IoT)

And instantly attempt to deploy it on the device.
SebastianM wrote: Starting your own "webserver" to provide Responses for http requests ist possible, but I'm not sure about IIS in the future. Would say "no" because IIS seems to be overheaded, maybe a small replacement...
But if you have a IIS, it will not be fully capable if you don't have a database in the Background. Don't know if there are plans to add SQL Server Support to Windows 10 IoT.
As you stated,, it may be possible to provide responses... but if you are unable to attach a database, I couldn't rlly think of a reason why you should.

markrad_msft
Posts: 58
Joined: Thu May 07, 2015 7:46 pm

Re: Thoughts and Deploy problems

Fri May 15, 2015 9:10 pm

PineappleJuice wrote:
Problem
However, it seems that I'm unable to deploy a Windows IoT core backgroundservice project. Giving me some weird MSIL against ARM processor error. Anyone that has had this, and could explain to me how to fix? I've tried setting the build processor type to x86, x64 and ARM, but none worked.
I have not encountered this issue before. I'll see if I can find out something further to assist you.
As for a web server, currently your best option is to use Node.JS on the RPi. This is supported under Win10 IoT though there are still some issues primarily regarding path lengths being too long.
Mark Radbourne | Microsoft | Windows 10 IoT Core Insider Preview Support | This posting is provided 'as is' with no warranties and confers no rights.

mimi123
Posts: 583
Joined: Thu Aug 22, 2013 3:32 pm

Re: Thoughts and Deploy problems

Sat May 16, 2015 12:26 pm

Apache is compilable and works for the RPi2

Return to “Windows 10 for IoT”