本文介绍了在UWP中单击按钮时出现InvalidCast异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我有一个UWP应用程序,其中有一个按钮,其中有一些代码。它在OS build> = 14393上工作。 

I have one UWP app in which I have one button in which some code is there. It is working fie on OS build >= 14393 . 

但是在像10586,10240这样的构建上它崩溃了。当我检查日志时,只要点击按钮就会说InvalidCastException。 

But on builds like 10586, 10240 it is crashing. When I checking the logs, it is just saying InvalidCastException as soon as button is clicked. 

Dev Box是14393所以它在我设置的框上工作正常debug。 

Dev Box is 14393 so it is working fine on box on which I have set up and debug. 

所有版本都只发布。 

All builds are releases only. 

你能帮忙吗? 

Can you help? 

谢谢,

Gourav

推荐答案


这篇关于在UWP中单击按钮时出现InvalidCast异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 14:55