Domanda

È possibile distribuire applicazioni ASP.NET MVC3 su NetDuino o .NetGadgetEer?Se sì, come farei una cosa del genere?

Quello che voglio fare è avere un netduino, connesso a un router WiFi, che ospiterà un'App Web MVC.

È stato utile?

Soluzione

No, non lo supporterà.Per eseguire ASP.NET, è necessario avere una specie di esecuzione di IIS.È abbastanza semplice servire HTML su HTTP su .NET Micro Framework, ma per utilizzare ASP, è necessario un server IIS Full Fleedged o un tipo di server ASP incorporato, come quello in Visual Studio (Cassini era il nome del codice, Penso).

Fondamentalmente 4 scelte:

    .
  • Trova un server ASP incorporato.C'è un progetto .NET chiamato aspnetserve che può servire pagine Asp, potresti essere in grado di portè al micro framework.
  • Step fino a Windows CE, che può ospitare pagine ASP .NET.
  • Servire pagine html semplici che si costruiscono sul posto.
  • Utilizzare un motore templation diverso da ASP e portalo a .NET MF se necessario

Altri suggerimenti

Both Gadgeteer and Netduino run the .Net Micro Framework which will not support an ASP.NET MVC web application.

People have implemented simple web servers inside Netduino.

Do you really need to host the MVC website on your Netduino or do you have a computer/device available to host the website and simply have your controllers communicate directly with the Netduino?

There's a great article on doing exactly this at http://www.codeproject.com/Articles/344471/Using-jQuery-Mobile-with-MVC-and-Netduino-for-Home

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top