我在使用 Visual Studio 2008 用 C# 编写的 Windows 窗体应用程序上遇到以下错误。奇怪的是,它在我的家用 PC 上运行没有任何问题,尽管在大学计算机上进行测试时我得到了错误。
System.IO.FileLoadException was unhandled
Message="Could not load file or assembly 'ZedGraph, Version=5.0.9.41461, Culture=neutral, PublicKeyToken=02a83cbd123fcd60' or one of its dependencies. Access is denied."
Source="CycleReader"
FileName="ZedGraph, Version=5.0.9.41461, Culture=neutral, PublicKeyToken=02a83cbd123fcd60"
FusionLog=""
StackTrace:
at CycleReader.CycleChart..ctor()
at CycleReader.CycleReader..ctor() in F:\CycleReader\CycleReader\CycleReader.cs:line 57
at CycleReader.Program.Main() in F:\CycleReader\CycleReader\Program.cs:line 18
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException: System.UnauthorizedAccessException
Message="Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))"
InnerException: