WCF Hosting Choice with Elearning App

Posted on 2012-09-11
Medium Priority
Last Modified: 2012-09-19

I'm trying to figure out what is the most effective and easy to maintain means of hosting a WCF Service for my Elearning App.  

My App works like this.

1.  My app makes a javascript call to a javascript function called SCORM adapter that launches a lesson sending information about the user and his/her status to the function
2.  Every few seconds, the lesson sends back info on the student status to the SCORM adapter which sends it back to my app that enters that info in the database

Up to this point, I have been using a Web Service to handle the javascript calls from the SCORM adapter to my app and it has worked reasonably well - but I am limited in error trapping etc. and want to go to WCF.

The only calls that my WCF Service (I call it SCORM_Service) gets are from the lessons launched by mp app.  

I am looking at the variety of ways that WCF can be hosted and can't figure out which one I should be using.  Locally, I have created a separate project and hosted it locally at localhost/scorm/scormservice.svc and that seems to work - but not sure how to deploy it to the web.  

Am confused with the different hosting options (IIS7, console, separate windows service application)

Ideally, what I'd like to do is include the SCORM_Service in my Client App - since that is the only app that consumes this service and have it get published to the Web or get updated when I deploy my Client App.

Any help on how to do this greatly appreciated.

Question by:RBS
  • 2
  • 2
LVL 20

Expert Comment

by:Daniel Van Der Werken
ID: 38388062
You already know the various ways to host the WCF service, so I think since your desire is t have it included with the SCORM)Service in the Client App, then  you should have it run as a Windows service on systems running the Client App. That seems to make the most sense to me, but really, it's up to you.

Author Comment

ID: 38391258
Thanks Dan7Tel - yes - I'm trying to figure out how to get the WCF to run as a service on my Client App.
LVL 20

Accepted Solution

Daniel Van Der Werken earned 2000 total points
ID: 38396281
Simply create the service per these instructions:

you can create the installer and have the installation process part of  your overall application installation.

Author Closing Comment

ID: 38416338
Thanks Dan7el!


Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question