System32下运行出现unable to find a version of the runtime to run this application.

Toonyxm 2011-04-19 05:16:19
用C#写了个屏幕保护.
Release之后运正常, 改名为screen.scr运行正常.
移动到C:\Windows\System32下运行提示unable to find a version of the runtime to run this application.
将后缀改回exe再次运行仍然提示unable to find a version of the runtime to run this application.
另外测试了exe和scr在c:\ c:\Windows下均能正常运行...

这是怎么个情况...有谁遇到过么...

OS: Win7 旗舰 x64
IDE:Microsoft Visual Studio 2010
...全文
5025 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
huting0211 2011-06-05
  • 打赏
  • 举报
回复
可能是你的机器上没有安装.NET Framework 2.0或者3.5,安装试试。
Toonyxm 2011-04-20
  • 打赏
  • 举报
回复
我在本地组策略里强制使用特定的屏幕保护程序指向非System32下的scr.
屏保可以正常在系统中启动了.
但是unable to find a version of the runtime to run this application.的问题还是没解决.


我把项目的.net 改到4.0 重新Release放到System32 后缀为exe时可以运行, 改成scr后依旧是上面的错误.

而原3.5的版本在其他机器的System32 下exe,scr均能正常运行.

尝试重装了.NET 4 无果...

难道是我的System32下面有什么奇怪的Dll影响程序运行?... = =|||
Toonyxm 2011-04-19
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 gomoku 的回复:]

试试找看看有没有一个screen.*.config文件没有拷贝过去?
[/Quote]
项目中没有.config文件... = =...
Toonyxm 2011-04-19
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 gomoku 的回复:]

试试找看看有没有一个screen.*.config文件没有拷贝过去?
[/Quote]
现在在外边...待会回去试下...
刚才说的结果都是直接拷主程序,没有拷config...
gomoku 2011-04-19
  • 打赏
  • 举报
回复
试试找看看有没有一个screen.*.config文件没有拷贝过去?

110,533

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧