Understanding lightswitch deployment - deployment

I wish to deploy a lightswitch application for a small company. I want a central server hosting the database and then the silverlight client to run inside the network connecting to the server and updating the database with clients, etc.
I have made a working system using the intrinsic database in VS2013, but now I come to deploy it and am having problems, despite hours reading MSDN and following tutorials.
I create a deployment package on my development machine, which I then install on the server, but I then need to create a client only package, which points to the server? Does this mean I need to specify the central database as an external data source? Or does this switch happen automatically? Can I publish only the server, and install that on the server machine, (I have already installed the web server package) then publish a separate client package for installing the application on the clients? I need all the clients to update a single database, not all have their own local copies and local databases...

When you "create a client only package" the intrinsic database is running on the client, so nothing point to the server.
A external data source is always external regardless of the app type.
What type of a LightSwitch Application you've selected?
A 2-tier desktop application runs on an end-user Windows desktop. The
database and server components are deployed to the end-user computer.
A 3-tier desktop application runs on an end-user Windows desktop. The
database and server components are deployed to an Internet
Information Services (IIS) server or to Windows Azure.
A 3-tier Web application runs in an end-user web browser. The
database and server components are deployed to an Internet
Information Services (IIS) server or to Windows Azure.

Related

accessing ofbiz application that is installed on windows server virtually in azure

I have created windows server VM and installed ofbiz framework with Demo data. The framework is working fine when accessed through VM itself, but I need a way to access it outside (through local browsers).
You need to open ports (8080 and 8443) to access it from outside the azure VM. Here you go on how to do that- https://learn.microsoft.com/en-us/azure/virtual-machines/windows/classic/setup-endpoints?toc=%2Fazure%2Fvirtual-machines%2Fwindows%2Fclassic%2Ftoc.json
You can also use the Apache OFBiz Mailing list for such queries - https://ofbiz.apache.org/mailing-lists.html
HTH!

Hosting REST api in web server or application server

I would like to know if there is any difference in hosting REST web service APIs in a web server or application server, is there any reason one is preferred over the other?
So i think you are confused about what are application servers and web servers.
Application Server is the name of a machine/server which is running any application used by an organization and it depends of any other servers to run the application functionalities correctly, like Database Servers, Caching Servers and other kind of servers.
Web server is a software which puts an application online for being accessed by clients through the web.
An application server commonly has a web server running inside it, as part of a stack needed to run the application in the server, like libraries and other sofwares need to execute the application objective.
So you can run a REST api inside of an application server with help of the web server application.
Some examples of web servers are Apache, Nginx, LightHttpd, etc.

Connect Oracle MAF app to server database

I am using eclipse to develop an oracle MAF application. I set up the environment but i need now to connect my app to the oracle database on the server and i don't know how to start. Do i have to use the local sqlite database then sync with the server or connect directly to the server and how to do it?
thank you!
It's not possible to make a direct database connection MAF. You will have to expose your data in a web service and consume it in your mobile app.
One option you can consider is to expose the data in the database as a REST Service which you can invoke from a MAF application.
See this presentation on how to use OEPE to build a MAF application that invokes REST services: https://www.youtube.com/watch?v=pRdLSOVslQg
Hope this helps. Thanks for your interest in OEPE.
-Raghu
Here is the simple tutorial which describes that how can you make a REST web service in Oracle MAF, deploy it to web logic server using Jdeveloper and access it from your browser. I hope it'll help you:
http://sanjeev-technology.blogspot.in/2014/09/rest-service-on-weblogic-1034.html
Pervasync just released a new version (6.0.2) of its sync framework that supports synchronization of Oracle MAF SQLite databases with central Oracle, MySQL, SQL Server and PostgreSQL databases.
You can try this sample tutorial which having the step by step explanation.
To make it work, you need to use JDeveloper 12c (download it from here). It will contain WebLogic server as well.
In additional you need to have Android SDK for emulator (or) you can make use of Android device to deploy and run the application.
For Android Device:
You can deploy the application into machine and configure the mobile client app using virtual IP of that machine. So that it can be accessed from outside of the network.
For Emulator:
you can run the webservice and client in same machine by configuring the webservice IP as 127.0.0.1 this will route your client app into local machine (P.S: localhost does't works here)

Automate Application Installation with Powershell

I need to write a powershell script that would install my team's web application and all the web application's dependencies (ie: telerik, asp.net mvc3, third-party assemblies) with a single click of a button. Is this possible? Or does someone have to click "Next" to go through an installation wizard?
Sounds like a job for MSDeploy. This ships with PowerShell cmdlets (and a regular console executable.)
http://www.iis.net/download/webdeploy
Features
Seamless integration with IIS 7.0
Manager and Visual Studio 2010
interface for creating packages and
deploying them onto a machine, both
locally and remotely.
Seamless integration with the Web
Platform Installer to install
community web applications simply and
easily.
Web application packaging:
Ability to package a Web application
or an entire site, including the
associated databases.
Ability to package ACLs, COM, GAC and
registry settings.
Supports both live servers and zipped
packages as a source or destination.
Web application deployment:
Administrative privileges are not
required in order to deploy Web
applications.
Ability to add powerful parameters to
change text in files when they are
deployed (such as prompting to
replace a connection string when
deploying from QA to staging
environments).
Integration with the IIS 7.0 Web
Management Service (WMSVC) for remote
deployment by non-administrators.
Server administrators have granular
control over the operations that can
be performed and can delegate tasks
to non-administrators.
Web server migration and synchronization:
Ability to synchronize or migrate the
entire Web server, a Web site or
application. Synchronizes only the
data that has changed.
Ability to detect missing
dependencies during synchronization.
Automatically gathers content, IIS
configuration, SSL certificates and
ASP.NET configuration when you sync a
Web site.
In addition to the IIS Manager and Visual Studio 10, tasks can be performed using the command-line or public APIs.
-Oisn

How can I remotely deploy a rich client in .Net?

Currently we run our web applications on a thin client browser IE 6 and it is slow.
We are a non-profit organization. All our offices are linked via VPN.
Opera 10 browser allows one to convert one's PC into a server.
I am thinking of deploying our application and Opera 10 on every client, meaning that the every client would run a server which in turn would run our application.
Therefore, the clients would connect only to our database. This would speed things up.
However, I would need to deploy updates to our application from time to time.
How can I deploy a web application to the clients PC's remotely?
Our app is .Net.
You might want to take a look at click-once deployment which can handle auto-updating applications (I believe however, they should be .Net based)