| Using a Ria Services Class library to collect | | | | Hope this post can help you. Need Silverlight 4 hosting? |
| DomainServices and DomainContexts in a solution is a | | | | You can visit |
| good practice because everyone know the value of | | | | What is so SPECIAL on Silverlight 4 Hosting?We |
| having classes separated in projects instead of having | | | | know that finding a cheap, reliable web host is not a |
| them in the web project. | | | | simple task so we've put all the information you need |
| To workaround to this problem you may simply write | | | | in one place to help you make your decision. At |
| by hand this class and put it in the client side part of | | | | ASPHostDirectory, we pride ourselves in our |
| the Ria Services library project. The code can be | | | | commitment to our customers and want to make sure |
| copied by an AuthenticationDomainContext generated | | | | they have all the details they need before making that |
| in the web project but it is very simple and we show | | | | big decision. |
| you the code here:public sealed partial class | | | | We will work tirelessly to provide a refreshing and |
| RiaContext : System.Windows.Ria.RiaContextBase | | | | friendly level of customer service. We believe in |
| { | | | | creativity, innovation, and a competitive spirit in all that |
| #region Extensibility Method Definitions | | | | we do. We are sound, honest company who feels |
| partial void OnCreated(); | | | | that business is more than just the bottom line. We |
| #endregion | | | | consider every business opportunity a chance to |
| public RiaContext() | | | | engage and interact with our customers and our |
| { | | | | community. Neither our clients nor our employees are a |
| this.OnCreated(); | | | | commodity. They are part of our family. |
| } | | | | The followings are the top 10 reasons you should trust |
| public new static RiaContext Current | | | | your online business and hosting needs to us: |
| { | | | | - FREE domain for Life -ASPHostDirectory gives you |
| get | | | | your own free domain name for life with our |
| { | | | | Professional Hosting Plan and 3 free domains with any |
| return | | | | of Reseller Hosting Plan! There's no need to panic |
| rent)); | | | | about renewing your domain as ASPHostDirectory will |
| } | | | | automatically do this for you to ensure you never lose |
| } | | | | the all important identity of your site |
| public new User User | | | | - 99,9% Uptime Guarantee - ASPHostDirectory |
| { | | | | promises it's customers 99.9% network uptime! We |
| get | | | | are so concerned about uptime that we set up our |
| { | | | | own company to monitor people's uptime for them |
| return ((User)(base.User)); | | | | called ASPHostDirectory Uptime |
| } | | | | - 24/7-based Support - We never fall asleep and we |
| } | | | | run a service that is opening 24/7 a year. Even |
| } | | | | everyone is on holiday during Easter or Christmast |
| With this class you can configure the Authentication | | | | New Year, we are always behind our desk serving |
| Domain Context as you did with the generated class. | | | | our customers |
| So you have to add it to the App.config, in the | | | | - Customer Tailored Support - if you compare our |
| ApplicationLifetimeObjects tag and then add a kind of | | | | hosting plans to others you will see that we are |
| authentication like the WindowsAuthentication and | | | | offering a much better deal in every aspect; |
| FormsAuthentication. | | | | performance, disk quotas, bandwidth allocation, |
| The second drawback is that if you run the project | | | | databases, security, control panel features, e-mail |
| this way and then you call the Login() method (or any | | | | services, real-time stats, and service |
| other method) of the RiaContext you will get an error: | | | | - Money Back Guarantee - ASPHostDirectory offers |
| The DomainContextType is null or invalid and there are | | | | a ‘no questions asked' money back guarantee with |
| no contexts generated from AuthenticationBase | | | | all our plans for any cancellations made within the first |
| This probably come from the fact that the RiaContext | | | | 30 days of ordering. Our cancellation policy is very |
| is not correctly initializated so when the class search | | | | simple - if you cancel your account within 30 days of |
| for a valid domaincontext to handle the Login call it fails | | | | first signing up we will provide you with a full refund |
| because it does not find it. The tip to correct this | | | | - Experts in Silverlight Hosting - Given the scale of our |
| behavior is to specify the DomainContext property in | | | | environment, we have recruited and developed some |
| the Authentication you have choosed. Here is how to | | | | of the best talent in the hosting technology that you |
| change the App.xaml file: | | | | are using. Our team is strong because of the |
| | | | | experience and talents of the individuals who make up |
| | | | | ASPHostDirectory |
| | | | | - Daily Backup Service - We realise that your website |
| | | | | is very important to your business and hence, we |
| | | | | never ever forget to create a daily backup. Your |
| | | | | database and website are backup every night into a |
| | | | | permanent remote tape drive to ensure that they are |
| | | | | always safe and secure. The backup is always ready |
| | | | | and available anytime you need it |
| As you can see you have simply to give an instance | | | | - Easy Site Administration - With our powerful control |
| of the generated Authentication Domain context class | | | | panel, you can always administer most of your site |
| to the FormsAuthentication (or Windows | | | | features easily without even needing to contact for |
| Authentication as well). The RiaContext need to have | | | | our Support Team. Additionally, you can also install |
| this instance to make the calls to the BL methods in | | | | more than 100 FREE applications directly via our |
| the Domain Service. | | | | Control Panel in 1 minute! |