Quantcast
Channel: Tools for Windows Store apps forum
Viewing all articles
Browse latest Browse all 1019

User Control error in Designer, not in Runtime

$
0
0

Hello

I'm working on a C++ Windows 8 app. I am not able to use the Visual Studio 2012 Designer anymore as it has big problems with user controls: It cannot instantiate them, although there is no problem during runtime  (the controls have default constructors).

Here is the actual error message, including the strack trace (remark: I translated some exception messages by myself as I use a German VS):

"Exception: An instance of "MyUserControl" cannot be created.

StackTrace

   at Microsoft.Expression.Platform.InstanceBuilders.InstanceBuilderOperations.InstantiateType(Type type, Boolean supportInternal)
   at Microsoft.Expression.Platform.InstanceBuilders.ClrObjectInstanceBuilder.InstantiateTargetType(IInstanceBuilderContext context, ViewNode viewNode)
   at Microsoft.Expression.Platform.InstanceBuilders.ClrObjectInstanceBuilder.Instantiate(IInstanceBuilderContext context, ViewNode viewNode)
   at Microsoft.Expression.WindowsXamlPlatform.InstanceBuilders.FrameworkElementInstanceBuilder.Instantiate(IInstanceBuilderContext context, ViewNode viewNode)
   at Microsoft.Expression.WindowsXamlPlatform.InstanceBuilders.UserControlInstanceBuilder.Instantiate(IInstanceBuilderContext context, ViewNode viewNode)
   at Microsoft.Expression.Platform.InstanceBuilders.ViewNodeManager.CreateInstance(IInstanceBuilder builder, ViewNode viewNode)

InnerException: Exception has been thrown by the target of an invocation.

    TargetInvocationException: Exception has been thrown by the target of an invocation.

    StackTrace

       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
       at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at Microsoft.Expression.Platform.InstanceBuilders.InstanceBuilderOperations.InstantiateType(Type type, Boolean supportInternal)

    InnerException: The text for this error code cannot be found.

        StackTrace

          at MyProject.MyUserControl..ctor()

        InnerException: None"

What to do with that?


Viewing all articles
Browse latest Browse all 1019

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>