Click here to Skip to main content
15,906,626 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Iam getting this error

"The text associated with this error code could not be found.

Failed to create a '%1' from the text '%0'. [Line: 45 Position: 44]"
StackTrace of Exception is
at Windows.UI.Xaml.Application.LoadComponent(Object component, Uri resourceLocator, ComponentResourceLocation componentResourceLocation)
at OnlineVideos.Views.Details.InitializeComponent()
at OnlineVideos.Views.Details..ctor()
My code at line 45 is
<PivotItem x:Name="pvtitmChapters" Header="chapters"><br />
                    <Grid x:Name="chaptersGrid"><br />
                        <LART:ShowChapters x:Name="showChapterList"></LART:ShowChapters><br />
                    </Grid><br />
                </PivotItem>

code in ShowChapters and Details files is available at this One drive link
One drive Link
Posted
Updated 27-Dec-15 21:30pm
v5
Comments
Kornfeld Eliyahu Peter 28-Dec-15 2:10am    
You may value us and do a little work by copying the question here?
Mohan Rajesh Komatlapalli 28-Dec-15 3:57am    
I have Posted the Complete question , once check it out Mr.Peter.

1 solution

I think the problem is the way LART defined...
it should be
XML
xmlns:LART="clr-namespace:OnlineVideos.UserControls"

insteade of
XML
xmlns:LART="using:OnlineVideos.UserControls"

How to: Import a Namespace into XAML[^]
 
Share this answer
 
Comments
Mohan Rajesh Komatlapalli 28-Dec-15 4:12am    
If i modified as you said it is not even showing the Intellisense when i type in LART with angular braces showing all the errors in document.
iam working with windows phone 8.1 universal.
Kornfeld Eliyahu Peter 28-Dec-15 4:15am    
Intellisense is not a measurement for nothing...
Mohan Rajesh Komatlapalli 28-Dec-15 4:30am    
By skipping the Intellisense , If i type in the code as below
<pre lang="text"><lart:showdescription x:name="showdesc"></pre>
it is saying ShowDescription does not exist in namespace OnlineVideos.UserControls.
But it is there under that namespace.
Kornfeld Eliyahu Peter 28-Dec-15 4:31am    
Maybe you also need some reference between projects?
Mohan Rajesh Komatlapalli 28-Dec-15 4:35am    
All the namespaces and references are added correctly, both files are in same project.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900