Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4270760
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T07:21:00+00:00 2026-05-21T07:21:00+00:00

I started with the Silverlight Business Application Template I will call this MyApp and

  • 0
  • I started with the Silverlight Business Application Template
    • I will call this MyApp and MyApp.Web
  • I added a new SL application project.
  • and added a ria link to the existing web project.
    • I will call this Loader

This new SL app is the entry point of my solution, and basically loads the mainpage from the other xap file. Checks for updates, etc.

  • I removed the App.xaml and App.xs files from MyApp
  • Because Loader is now the Application
    • I copied the relevant code from MyApp – App.cs to Loader – App.cs
    • I added the relevant code from MyApp – App.xaml to Loader – App.xaml
    • Mostly this is the WebContext stuff.

The problem is that the RIA Services generated code for Loader is not the same code as the code for MyApp

The generated code for MyApp contains the following namespaces:

  • MyApp
  • MyApp.Web
  • MyApp.Web.Models
  • MyApp.Web.Services

The generated code for Loader contains the namespace:

  • Loader

The following line of code in Loader – App.cs throws InvalidOperationException.

WebContext.Current.Authentication.LoadUser(this.Application_UserLoaded, null);

The error msg for the exception is:

The DomainContextType is null or invalid and there are no contexts generated from AuthenticationBase<T>

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T07:21:01+00:00Added an answer on May 21, 2026 at 7:21 am

    I’ve had this same problem (with a similar setup) today. After looking around a little bit, I found this post on the silverlight forums which has the answer (look in the bottom for the solution, since there were some API changes in RIA Services).

    Long story short, the issue is that your WebContext can’t find the DomainContext (in this case an AuthenticationContext) that handles LoadUser in your case. to solve this problem you’ll need to add the following to your App.xaml:

    <Application.ApplicationLifetimeObjects>
        <dmnsvc:WebContext>
            <dmnsvc:WebContext.Authentication>
                <appsvc:FormsAuthentication>
                    <appsvc:FormsAuthentication.DomainContext>
                        <!--Your AuthenticationContext here-->
                    </appsvc:FormsAuthentication.DomainContext>
                </appsvc:FormsAuthentication>
            </dmnsvc:WebContext.Authentication>
        </dmnsvc:WebContext>
    </Application.ApplicationLifetimeObjects>
    

    Hope this helps 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I started a Silverlight 4 RIA Services application with the Navigation Application template, instead
Starting with the most simple case. If I press File->new project->silverlight business application it
I've started out with the Silverlight 4 Navigation Application template (RIA Services enabled). (As
i started off with a new silverlight 4 project in a seperate solution while
I have an asp.net MVC project hosting a silverlight application. I just started rebuilding
I am just getting started with Silverlight and have recently added a Silverlight project
Some background information: I am creating a Silverlight WCF RIA Services Project. I started
I started developing an application in Silverlight that was dealing with downloading the HTML
I have Silverlight Application. Getting started with Linq I find out I have to
I started reading the Pro Business Applications with Silverlight 4 and I'm having the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.