如何解决“%1 不是有效的 Win32 应用程序"? [英] How do I resolve "%1 is not a valid Win32 application"?

查看:57
本文介绍了如何解决“%1 不是有效的 Win32 应用程序"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

环境:
Windows Server 2003 R2 企业版 64 位,SP2
应该安装了 .NET 框架(2.0 SP2、3.0 SP2、3.5 SP1)

Environment:
Windows Server 2003 R2 Enterprise 64bit, SP2
.NET framework is supposedly installed (2.0 SP2, 3.0 SP2, 3.5 SP1)

我说应该"是因为它们在添加/删除程序下被列为已安装.我不确定它是否正确安装,因为ASP.NET"选项卡没有添加到 IIS 中的任何站点.

I say "supposedly" because they are listed as installed under Add/Remove programs. I'm not sure it's properly installed, because the "ASP.NET" tab isn't added to any of the sites in IIS.

在 IIS Web 服务扩展部分,我有ASP.NET v2.0.50727"(允许)和ASP.NET v2.0.50727(32 位)"(禁止).

In the IIS Web Service Extensions section, I have both "ASP.NET v2.0.50727" (Allowed), and "ASP.NET v2.0.50727 (32-bit)" (Prohibited).

相关网站已启用脚本执行.

The site in question has script-execute enabled.

问题:

我创建了一个超级简单的 ASP.NET/C# 网站:Default.aspx 带有标签 id="Label1",以及一个代码隐藏:Label1.text = "Hello World"; 而我得到的错误是:

I created a super-simple ASP.NET/C# website: Default.aspx with a label id="Label1", and a code-behind with: Label1.text = "Hello World"; and the error I'm getting is:

%1 不是有效的 Win32 应用程序.

%1 is not a valid Win32 application.

推荐答案

你试过跑步吗:

aspnet_regiis -i

从命令行?

这篇关于如何解决“%1 不是有效的 Win32 应用程序"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆