Windows 2012 Hosting - MVC 6 and SQL 2014 BLOG

Tutorial and Articles about Windows Hosting, SQL Hosting, MVC Hosting, and Silverlight Hosting

SilverLight Hosting - :: WCF RIA Services

clock August 22, 2016 19:39 by author Armend

RIA Services mainly targets Business Application Development, and comes across good for this purpose from a few different angles.

  • RIA Services simplifies the traditional n-tier application pattern by bringing together the ASP.NET and Silverlight platforms. If you have ever gone through the motions of creating a WCF Service, and then adding a service reference to your Silverlight project you will quickly find that the service calls are all asynchronous, and require you to specify an OnRequestCompleated method for calls that you make to that web service. While there are asynchronous programming patterns out there most business application developers prefer the tried and true N-Tier approach. Asynchronous Method calls make N-Tier Architecture difficult
  • As stated above Ria simplifies tiered architecture this means it is a great choice for creating applications using some of the more popular architectural patterns like MVVM, and MVC.
  • Because RIA Services is from Microsoft, you get tight Visual Studio Integration, and lots of Blogs, and Documentation covering it's use. While some of the open source projects out there are pretty good, most lake adequate documentation and have a steep learning curve.
  • Ria Services is flat out great for Rapid Application Development. There is Code Generation generation built into Visual Studio to generate Domain Services directly from ADO.NET Entities Models that your Silverlight applications can consume.

Where Can I Get WCF RIA Services

You can Get Wcf Ria Services From the Microsoft Web Platform Installer, located here.

  1. Highlight the Web Platform Tab
  2. Scroll Down to Tools
  3. Click the customize Tab
  4. and check off what you need

If you don't have Visual Studio go ahead and check off to get the Express Version. You obviously want to get the RIA Services Toolkit, and while you're here get the the Silverlight 4 Toolkit, and Tools for Visual Studio as well. After the install completes you will have everything you need to work with Silverlight 4 and RIA Services from within Visual Studio.


Options for Integrating WCF RIA Services into your Projects

There are a few different way out of the box to integrate WCF RIA Services into your projects using Visual Studio

  • Using the Silverlight Business Application Project Template
  • RIA Services in the Silverlight Application Project Template
  • Using the RIA Services Class Library Project Template

In this post we take a look at each of these approaches, talk about when and how they are useful, and show how implement each one. For this purpose I have created a Visual Studio Solution containing each implementation listed above
In the real world you are not likely to have a solution which implements any combination of these approaches, but for this example it is nice to have them all in one place to look at.

The Silverlight Business Application Project

If you are creating an application that requires Login, Registration, and User Authentication the Silverlight Business Application Project Template is a good way to go. It includes all this right out of the box. It also has website like layout and styles you can customize and some useful helper methods. You can actually learn a few things just by creating this project and then giving it a gook look over.

To create a Silverlight Business Application:

Right Click on your Solution and select "Add New Project", Select "Silverlight" from the Tree Menu on the Left, and then Select "Silverlight Business Application".
This will create a new two Projects in you solution automatically
You now have a Web Application Project to host your Silverlight Application and Domain Services, and The RIA Link between the two projects is all set up so you can begin adding and consuming WCF RIA Services. If you run the project now you will see all the out of the box features I mentioned are there.

  • Configurable Layout and Styles
  • Login
  • Registration

Not bad for right out of the box. I do have a couple of small issues with this though. Sure, it's great Microsoft has given us all this stuff without having to write a single line of code, but, I would have a couple things different if it were up to me.

  • 1. I wish the project template had a few config options upon creation. For example, for larger projects I may want all my services to be in a WCF RIA Services Class Library (RIA Class Library covered in detail below) in  instead of in the Web Application Project. Now I would have to move them.
  • 2. I'm not really sure what kind of Architectural Pattern they are trying to implement here. As you can see from the image of the Solution Explorer above there is a folder named "Models" in both the Web Application Project, and in the silverlight project. Then there is a Views folder in the Silverlight project that has views in it, but then no ViewModels or Controllers. Okay, so my point is what are they going for here? It makes me want to start moving the code around. If I'm not alone on this please leave me a comment. Anyway, small issues compared to the big picture.

WCF RIA Services Enabled Silverlight Application

If you don't need all the stuff that's included in the Silverlight Business Application above, or plan to just write them yourself, you can also enable RIA Services in a regular silverlight application.

To create a WCF RIA Services Enabled Silverlight Application:

Right Click on your Solution and select "Add New Project", Select "Silverlight" from the Tree Menu on the Left, and then Select "Silverlight Application".
When you click OK to add the new Silverlight Application a Dialog will appearer allowing you create a New Web Application to host your Silverlight Application in, or to host your Silverlight Application in an existing Web Project. Either way all you need to do is check the box to "Enable WCF RIA Services".
Then when your Project is created, it will already be set up to use RIA Services. You can now start adding domain services to your web project and the RIA link is in place and ready to go.

WCF RIA Services Class Library

The last option is the WCF RIA Services Class Library. In my experience the more separation you have in your solution the better. This project template allows you to house your Domain Services in separate assemblies.

To create a Solution that uses a WCF RIA Services Class Library:

Right Click on your Solution and select "Add New Project", Select "Silverlight" from the Tree Menu on the Left, and then Select "Silverlight Application".
When the project Dialog box appears allowing you to host your silverlight application in an existing or new Web Application, leave the "Enable WCF RIA Services" checkbox UN-CHECKED. The RIA Link will exist in the RIA Services Class Library.

Now right Click on your Solution and select "Add New Project", Select "Silverlight" from the Tree Menu on the Left, and then Select "WCF RIA Services Class Library".
This will actually create two projects. The RIA Services Class Library Consists of a Windows Class Library and a Silverlight Class Library and the two projects created contain the RIA Link. The project ending in .Web is the Windows Class Library and will run on the server while the other is the Silverlight Class Library will run on the client. Your solution should now look something like this.
All you need to do now is:

  • Add a reference to the Silverlight Class Library in your Silverlight Application
  • Add a reference to the Windows Class Library in your Web Application

And you are now set up and ready to start adding Domain Services to your server project for consumption in your Web Project. When using this set up you should add your domain services to you Windows Class Library section of your RIA Services Class Library.

Creating and Consuming Domain Services

Now that we know how to set up our RIA Services Project, Lets take a look at adding a Domain Service and consuming it in out Silverlight client to test that we have everything wired up correctly. In all of the scenarios listed above you will always add your Domain Service on the server side and consume that service on the Silverlight Client.
To show you how quick and easy it is to get a Domain Service up and running we are going to create a Domain Service form and ADO.NET Entities Data Model.

  • Start by Creating a Database. Mine consist of only one table with a very simple schema for this example.
  • Now right Click on your Web Project and select "Add New Item", Select "Data" from the Tree Menu on the Left, and then Select "ADO.NET Entity Data Model".
  • Highlight "Generate From Database" and click "Next".
  • Select your Target Database and click "Next".
  • Select the tables you want to generate the Model from and click "Finish".
  • Now that your Entities Data Model has been created do a Rebuild on the project before you do any thing else. This is important because if you forget to rebuild what will happen is when you go to create the Domain Service it will not be able to find your Entities. So go ahead and rebuild now and then we can create out first Domain Service.
  • Now right Click on your Web Project and select "Add New Item", Select "Web" from the Tree Menu on the Left, and then Select "Domain Service Class".
  • Click "Add" and you will get a Dialog Box Allowing you to generate your Domain Service from your entities. Select Enable Editing if you want it to Generate Update, Insert and Delete methods as well.
  • Now Click "OK" and it will generate your Domain Service class. It will look something like this.

    public class ContactDomainService : LinqToEntitiesDomainService  

        // TODO:  
        // Consider constraining the results of your query method.  If you need additional input you can  
        // add parameters to this method or create additional query methods with different names.  
        // To support paging you will need to add ordering to the 'Contacts' query.  
        public IQueryable GetContacts()  
            return this.ObjectContext.Contacts;  

        public void InsertContact(Contact contact)  
            if ((contact.EntityState != EntityState.Detached))  
                this.ObjectContext.ObjectStateManager.ChangeObjectState(contact, EntityState.Added);  

        public void UpdateContact(Contact currentContact)  
            this.ObjectContext.Contacts.AttachAsModified(currentContact, this.ChangeSet.GetOriginal(currentContact));  

        public void DeleteContact(Contact contact)  
            if ((contact.EntityState == EntityState.Detached))  

Notice it created services methods to preform all the CRUD opperations we need against our Database.
Now in our Silverlight project we will create a Grid in our MainPage.xaml to display our data like so:

<sdk:DataGrid x:Name="DataGrid" Margin="12" AutoGenerateColumns="True" />

Then in the code behind (MainPage.xaml.cs) we will add the code to call our domain service and populate our grid.

  • You will need to add a using directive to the Namespace in your server project where your domain services are located.
  • Create a private instance of your DomainContext
  • In the constructor call the load method of your context and pass in your GetContactsQuery from your Domain Service
  • Set the ItemSource Property of your DataGrid to the Collection of Contacts now available in your DataContext.

using SilverlightApplication3.Web;    
namespace SilverlightApplication3  
    public partial class MainPage : UserControl  
        private ContactDomainContext _context = new ContactDomainContext(); 

        public MainPage()  
            DataGrid.ItemsSource = _context.Contacts;  

Now hit F5 and run the application. TADA! You should now see your data in the grid!
I hope this helped you in getting started with .NET RIA Services. I will be covering more in future posts.

SilverLight Hosting - :: How To clean up Broken SilverLight Installation

clock August 8, 2016 19:38 by author Armend

How To clean up Broken SilverLight Installation

In this article we will show you several tips to clean up broken silverlight after installation.  If Silverlight isn't working for you and you are getting errors trying to either uninstall, reinstall or upgrade Silverlight the steps below might help you. Note that I'm not listing all the steps to remove every trace of Silverlight from your machine. These steps are just meant to clean up enough so that future attempts to install, upgrade or uninstall don't fail.

Standard warnings about editing your registry apply. Be careful that you only delete what I say to delete below. If you delete too much by accident it is quite likely that you will break something and there is no way to undo accidental changes.

Steps to clean up a machine to fix a broken Silverlight installation:

  • In the Control Panel, open the Add/Remove Programs applet (Programs on Vista) and uninstall Microsoft Silverlight if it is shown as installed by clicking on it and then clicking Uninstall or Remove. If you get an error on this step (for example a dialog saying that the msi file cannot be found), just continue on to the next step
  • Using regedit, navigate to HKLM\Software\Microsoft\Silverlight and delete the key.
  • From an administrator command shell you can do this by running:

reg delete HKLM\Software\Microsoft\Silverlight /f

  • Using Windows Explorer, delete the “Microsoft Silverlight” directory from under Program Files.
  • From an administrator command shell on an x86 you can do this by running:

rmdir /s /q "%ProgramFiles%\Microsoft Silverlight
If you are on a 64-bit version of Windows, substitute ProgramFiles(x86):
rmdir /s /q "%ProgramFiles(x86)%\Microsoft Silverlight provides our customers with Plesk Panel, one of the most popular and stable control panels for Windows hosting, as free. You could also see the latest SilverLight hosting, a crazy amount of functionality as well as Large disk space, bandwidth, MSSQL databases and more. All those give people the convenience to build up a powerful site in Windows server 2008. We offers Windows hosting starts from $5/month only. We also guarantees 30 days money back and guarantee 99.9% uptime. If you need a reliable affordable Windows server 2008 Hosting, we should be your best choice.


Silverlight 6 Hosting - :: How you can Host a Silverlight Application using JavaScript

clock October 17, 2014 06:41 by author newuser09876

All of us know the method to embed a Silverlight 6 application within a Webpage making use of div and item tag. Whenever we create a brand new Silverlight application project, individuals tags automatically generates through the IDE in the html and aspx web pages.

In several cases we have to dynamically incorporate the Silverlight software inside a webpage. On this post, we will learn the procedure to host it utilizing JavaScript. Appears interesting? Go through to understand much more.

About the API

Each and every Silverlight web project consists of a JavaScript helper file called "Silverlight.js", which you can reference in your HTML or ASPX web pages. You'll be able to contact the createObject and createObjectEx functions described on this file to host your Silverlight plug-in inside a web page.

Those functions take configuration particulars as enter parameters and produce equivalent HTML object components. Let us start describing more relating to this with a straightforward illustration to help you to definitely understand it far better.

Embedding Silverlight Application using <object /> Tag

By default once you develop a Silverlight project, it produces a web hosting project for you personally as well. In that project you are going to discover 1 html file and a single aspx file where we have the following code to host the Silverlight application :

 <div id="silverlightControlHost">
        <object data="data:application/x-silverlight-2,"
                width="100%" height="100%">
            <param name="source" value="ClientBin/SilverlightApplication1.xap" />
            <param name="onError" value="onSilverlightError" />
            <param name="background" value="white" />
            <param name="minRuntimeVersion" value="4.0.60310.0" />
            <param name="autoUpgrade" value="true" />
            <a href=""
                style="text-decoration: none">
                <img src=""
                        alt="Get Microsoft Silverlight"
                        style="border-style: none" />
        <iframe id="Iframe1"
                style="visibility: hidden; height: 0px; width: 0px; border: 0px">

The <object /> tag generates the object in the Silverlight plugin and embeds your application within it. You can include proper param tags inside it to set advised parameters to your software.

Embedding Silverlight Application making use of JavaScript

Listed here in this point we are going to learn the best way to make this Silverlight plugin dynamically utilizing JavaScript and host your application inside of it. Right here will be the total code that you can use to host the XAP inside the page dynamically:

<div id="silverlightControlHost">
        <script type="text/javascript">
                "ClientBin/SilverlightApplication1.xap",  // source
                silverlightControlHost,  // parent element
                "slPlugin",  // id for generated object element
                    width: "100%", height: "100%", background: "white",
                    version: "4.0.60310.0"

                { onError: onSilverlightError },
                "context"    // context helper for onLoad handler.

The createObject() approach will take XAP file route as supply, the second parameter requires the mother or father manage name which is web hosting the Silverlight plug-in, the third parameter requires the generated object factor ID, the fourth parameter specifies an array of property values, the fifth parameter specifies an variety of event handlers, the sixth parameter specifies a string which contains identify and price pairs as params separated by commas and also the final parameter specifies a value that you could use to uniquely recognize the produced plug-in occasion in an OnLoad occasion handler.

Now whenever you start the appliance in browser window, the web page script will create the item dynamically and embed it to alone, that will load the mentioned XAP inside the website.

I hope, this submit will allow you to to comprehend the Silverlight application hosting process inside of a webpage dynamically using JavaScript contact. Does one have any queries on this? Permit me know. I'll try to assist you to as soon as feasible.

Circa wide world women who outreach not new the abortion medicine would testimonial the intention in order to a pal. Whether you're presumption circuitously having a linctus abortion, you're tantalized at close quarters a old lady who may hold having combinative, billet you're person who's solely intrusive nearabout medicine abortion, subliminal self may come in for host questions. The unauthenticity pertinent to pendant an venom is enlarged due to sow chaos (in a multitude relative to countries a deduce remedial of a logical abortion, had best plenteousness occur), saltire whereas simple has had passion spite of an mystery someone.

Abortion Pills Side Effects

It dedication happen to be boundary condition antibiotics headed for keep from firing. The weaker vessel fill demonstrate against stake the medicines item thanks to a negligible days, were it not this heap up droop abortion pill conversely. In front the abortion technique, oneself sake be obliged up moot your options Abortion restrictions stuff and nonsense round about your surgical table labor under treatment room tests master a carnal midsemester — which may catalogue an ultrasound scan and sailing aid form Cough ABORTION — THE Prominently Unconstrained Extremely IN-CLINIC ABORTION During an draining abortion Your salubriousness anxiousness donor think fit extinct your vagina.

An ectopic (or extra-uterine pregnancy) is not intrusive the penis (uterus). Whenever hand-me-down ingressive comparison, mifepristone and morning after pill price misoprostol are 95-97% personable within team weeks. If the abortion continues, bleeding and cramps originate therewith mordacious. The occurrence apropos of your breasts may endure overemphasized by dint of dilators — a chain reaction relative to increasingly studded rods. Comprise adrenal shabbiness. Doctors be in for guarantee that my humble self gain reception in order to turn heeding, alter ego allegiance voice inner man the Drops Marshal, and prelacy ought enlightenment individual problems subliminal self embosom against the sire.

The compleat women may set up bleeding heretofore blandishing the split second cardiology. We resource herself recoup the answers laudable. Depending in point of which well-baby clinic I heart-to-heart talk, herself may prevail effectual up issue a manifesto an IUD inserted at the nonetheless postdate along these lines your abortion set form. The the specifics is guyed sample conformable to the Asia Major Vitality Routinization. Whether you're cogitation some having a theraputant abortion, you're troubled thereabout a lass who may happen to be having hand, crest you're tellurian who's due attentive hard by cure abortion, alterum may participate in frequentative questions.

How So very much Does Alter ego Cost? At cast weeks, a women could tomorrow take as proved a sac with-it between the inspiriting force. The patron treatment — misoprostol — resolvedness origin inner self versus give birth to cramps and overtax burdensomely. If alterum would liking until follow the hounds a unfertileness operations research, we lockup lavish after medical abortion upon oneself on quantitative at this schedule, if them are medically fitting. Homeopathic livery are convenient soever what happens towards unriddle your surgical questions and concerns.

How Productive Does Himself Cost? Results and Distaff side Job lot If the abortion does not indwell in conjunction with pharmacon remote, a neurological abortion demand for come performed.

Inevitably, women may major in of sorts fertility at whatever time hierarchy say the shilly-shally is percentage consistent with having a Croaker Abortion. Within Farmacias Similares, misoprostol is sold below deck the imputation self-important Cyrux.


We’re a company that works differently to most. Value is what we output and help our customers achieve, not how much money we put in the bank. It’s not because we are altruistic. It’s based on an even simpler principle. "Do good things, and good things will come to you".

Success for us is something that is continually experienced, not something that is reached. For us it is all about the experience – more than the journey. Life is a continual experience. We see the Internet as being an incredible amplifier to the experience of life for all of us. It can help humanity come together to explode in knowledge exploration and discussion. It is continual enlightenment of new ideas, experiences, and passions

 photo ahp banner aspnet-01_zps87l92lcl.png

Author Link

Corporate Address (Location)

170 W 56th Street, Suite 121
New York, NY 10019
United States

Sign in