[英]Windows 8 application works on computer but not on windows tablet
I am having this weird problem where my Windows 8 application, coded in VB.NET, works perfectly fine on my computer but when I install it on the tablet it does not work. 我遇到了一个奇怪的问题,即用VB.NET编码的Windows 8应用程序在我的计算机上可以很好地工作,但是当我将其安装在平板电脑上时却无法正常工作。
Here is what I did in visual studio : Project -> Windows Store -> Create Application Packages. 这是我在visual studio中所做的 :项目-> Windows应用商店->创建应用程序包。
Here is what I did on my tablet : I transfered the files created to my tablet where I ran the powershell and installed the application successfully. 这是我在平板电脑上所做的事情 :我将创建的文件传输到了我运行Powershell并成功安装应用程序的平板电脑上。 I then tried to run it but only the white square with an "X" inside of it (default application icon) would shows up and then I am brought back to the start menu.
然后,我尝试运行它,但是只会显示其中带有“ X”的白色正方形(默认应用程序图标),然后将我带回到开始菜单。
The application seems to always be running as it is open in the task bar . 该应用程序似乎总是在运行,因为它已在任务栏中打开 。 However, it does not show in the task manager .
但是,它不会显示在任务管理器中 。
I then tried running the powershell to install my application on my computer and it works perfectly fine . 然后,我尝试运行Powershell 在计算机上安装我的应用程序 ,它运行正常 。
To make sure my tablet wasn't the problem I created an empty application and it worked fine on the tablet 为了确保我的平板电脑不是问题,我创建了一个空应用程序 ,并且在平板电脑上工作正常
I tried what was proposed here and it still doesn't work : http://answers.microsoft.com/en-us/windows/forum/windows8_1-windows_store/all-modern-apps-fail-to-start-after-windows-81/a80793c7-c214-43ec-9ca9-5c758f9ad840 我尝试了此处提出的建议,但仍然无法使用: http : //answers.microsoft.com/zh-cn/windows/forum/windows8_1-windows_store/all-modern-apps-fail-to-start-after-窗口-81 / a80793c7-c214-43ec-9ca9-5c758f9ad840
Any ideas to what could be causing this problem ? 有什么想法可能导致这个问题吗? I can't seem to find a fix to it
我似乎找不到解决方法
This is my windows tablet : Dell Venue 11 Pro (5130) 这是我的Windows平板电脑:Dell Venue 11 Pro(5130)
Additional information 附加信息
There is no code in the form_load event of the main page 主页的form_load事件中没有代码
There are no error message or exceptions.There is simply a redirect to the start menu as if the application was minimized 没有错误消息或异常,仅重定向到开始菜单,就像最小化了应用程序一样
I am unsure of what caused the problem. 我不确定是什么引起了问题。 Probably changes to some configs I did along the way and forgot about
可能更改了我在此过程中所做的一些配置,但忘记了
The solution to my specific problem was this : 解决我特定问题的方法是:
-Start a new project and include all files from the previous project. -启动一个新项目,并包含上一个项目中的所有文件。
-Create a new service reference. -创建新的服务参考。
-Give the permissions to the AppManifest as they were in the previous project -授予对AppManifest的权限,就像在上一个项目中一样
Everything now seems to work perfectly fine on the tablet. 现在,一切似乎在平板电脑上都可以正常工作。
If anyone ever goes through this I would recommand including the previous project piece by piece and testing if it works each time. 如果有人通过此程序,我会建议您逐个包括上一个项目,并测试它是否每次都有效。 If there really is a problem with one of the pages/class/etc then you will know which part of the program is causing the problem
如果页面/类/等之一确实存在问题,那么您将知道程序的哪一部分导致了问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.