Out-of-browser specific settings do not affect in-browser applications

大兔子大兔子 提交于 2019-12-23 10:07:26

问题


I've a couple of scenarios in my WP8 where I'm getting this exception message : "Out-of-browser specific settings do not affect in-browser applications." Both of these scenarios have async calls. I want to know in general when do I get such an exception, so that I understand what to look for whenever I get them. Is that possible to know or I need to describe my particular scenario?


回答1:


Unfortunately, this is a pretty generic message meaning you did something wrong with your XAML. If you're dynamically creating controls, review your code in detail to make sure you're doing it properly. For instance, as in my case, when assigning names to dynamically built controls, make sure each time you assign a different name if the same code is building multiple controls.




回答2:


I am the guy who upvoted your question as I had a similar problem. The solution was so simple I could hardly believe it when I found out. Syntax error in my XAML. I declared FontSize="20px" instead of FontSize="20". Duh.




回答3:


Check your xaml.

I had this error when I inserted DataTemplate inside a DataTemplate.

     <DataTemplate x:Key="ExerciseNamesTemplate">
       <DataTemplate>
         <TextBlock Text="{Binding Name}"/>
       </DataTemplate>
    </DataTemplate>

Hope it helps



来源:https://stackoverflow.com/questions/17408758/out-of-browser-specific-settings-do-not-affect-in-browser-applications

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!