C# 类型为';的未处理异常;System.BadImageFormatExpection';发生在filename.exe中
我收到一个错误 “System.BadImageFormatExpection”类型的未处理异常 发生在filename.exe中 其他信息:无法加载文件或程序集的System.Data,版本=4.0.0.0, 文化=中性,PublicKeyToken=b77a5c561934e089'或其依赖项之一。该模块是 应包含程序集清单 错误指向名为Program.cs的文件C# 类型为';的未处理异常;System.BadImageFormatExpection';发生在filename.exe中,c#,winforms,visual-studio-2010,ms-access-2003,C#,Winforms,Visual Studio 2010,Ms Access 2003,我收到一个错误 “System.BadImageFormatExpection”类型的未处理异常 发生在filename.exe中 其他信息:无法加载文件或程序集的System.Data,版本=4.0.0.0, 文化=中性,PublicKeyToken=b77a5c561934e089'或其依赖项之一。该模块是 应包含程序集清单 错误指向名为Program.cs的文件 using System; using System.Collections.Generic; using System.Lin
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace MALHRManagementSystem
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new FrmLogin()); // error pointing at this line
}
}
使用系统;
使用System.Collections.Generic;
使用System.Linq;
使用System.Windows.Forms;
名称空间管理系统
{
静态类程序
{
///
///应用程序的主要入口点。
///
[状态线程]
静态void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new FrmLogin());//指向此行时出错
}
}
}
我已将MS Access 2003文件存储在Windows 7 PC(64位)中。我正试图从我的笔记本电脑vista home(32位)上测试运行我的应用程序。我的笔记本电脑上有Visual Studio 2010,C#。我将平台目标设置为x86。我已经映射了网络驱动器
谁能帮帮我吗
提前感谢所有能在这里帮助我的人
但是,如果我不被允许在这里问这个问题,请告诉我 您似乎没有安装.Net 4 framework。我现在将安装.Net 4 framework,完成此操作并再次测试后,我将再次更新。我在大约1小时的时间内再次更新。thanks@Slugster-应用程序似乎正在运行。当.NET4Framework安装开始时,它要求修复原始框架或安装新框架。我选择了修理。我禁用防火墙和互联网安全软件。不管怎样,我很欣慰我已经度过了这个难关。谢谢你的帮助。