Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Silverlight 4 Out of Browser failing on navigation service

Avatar of wint100
wint100Flag for United Kingdom of Great Britain and Northern Ireland asked on
Microsoft Development
2 Comments1 Solution1819 ViewsLast Modified:
I have my SL4 in-browser app all working, and most of the OOB part works well, including Ria and WCF services.

The problem I get is when I try to navigate from code behind, an exception is thrown:

   at System.Windows.Navigation.PageResourceContentLoader.EndLoad(IAsyncResult asyncResult)
   at System.Windows.Navigation.NavigationService.ContentLoader_BeginLoad_Callback(IAsyncResult result)
Caused by: [Arg_TargetInvocationException]
Arguments:
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=4.0.50524.0&File=mscorlib.dll&Key=Arg_TargetInvocationException

   at System.Windows.Navigation.PageResourceContentLoader.EndLoad(IAsyncResult asyncResult)
   at System.Windows.Navigation.NavigationService.ContentLoader_BeginLoad_Callback(IAsyncResult result)




The code is shown below, is this usable for OOB?
if (app.selectedReport == "Annual")
                    {
                        this.NavigationService.Navigate(new Uri("/AnnualEnergy", UriKind.Relative));
                    }
                    if (app.selectedReport == "Monthly")
                    {
                        this.NavigationService.Navigate(new Uri("/MonthlyEnergy", UriKind.Relative));
                    }
                    if (app.selectedReport == "Weekly")
                    {
                        this.NavigationService.Navigate(new Uri("/WeeklyEnergy", UriKind.Relative));
                    }
                    if (app.selectedReport == "Daily")
                    {
                        this.NavigationService.Navigate(new Uri("/DailyEnergy", UriKind.Relative));
                    }
                    if (app.selectedReport == "MIC")
                    {
                        this.NavigationService.Navigate(new Uri("/MaximumImportCapacity", UriKind.Relative));
                    }
                    if (app.selectedReport == "Estimate")
                    {
                        this.NavigationService.Navigate(new Uri("/ElecBillEstimate", UriKind.Relative));
                    }
ASKER CERTIFIED SOLUTION
Avatar of wint100
wint100Flag of United Kingdom of Great Britain and Northern Ireland image

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answers