急!!用Visual Studio 2008 开发项目,运行后总是显示“系统找不到指定的文件。”是怎么回事?

liuxiaorui1234 2009-04-06 09:10:49
用Visual Studio 2008 开发项目,运行后总是显示“系统找不到指定的文件。”以下是现实的错误代码:请各位高手帮忙,我是新手,所以请说的详细一些啊,谢谢。


Server Error in '/WebSite5' Application.
--------------------------------------------------------------------------------

系统找不到指定的文件。 (Exception from HRESULT: 0x80070002)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: 系统找不到指定的文件。 (Exception from HRESULT: 0x80070002)

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[FileNotFoundException: 系统找不到指定的文件。 (Exception from HRESULT: 0x80070002)]

[FileNotFoundException: Could not load file or assembly 'System.EnterpriseServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. 系统找不到指定的文件。]
System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +43
System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +127
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +142
System.Reflection.Assembly.Load(String assemblyString) +28
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46

[ConfigurationErrorsException: Could not load file or assembly 'System.EnterpriseServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. 系统找不到指定的文件。]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +613
System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +57
System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178
System.Web.Compilation.WebDirectoryBatchCompiler..ctor(VirtualDirectory vdir) +163
System.Web.Compilation.BuildManager.BatchCompileWebDirectoryInternal(VirtualDirectory vdir, Boolean ignoreErrors) +53
System.Web.Compilation.BuildManager.BatchCompileWebDirectory(VirtualDirectory vdir, VirtualPath virtualDir, Boolean ignoreErrors) +175
System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) +83
System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +261
System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +101
System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +126
System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +62
System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +33
System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +40
System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +160
System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +93
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
...全文
1642 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
SallyAngela 2012-09-01
  • 打赏
  • 举报
回复
重新安装下或者重新生成打开项目
EdwardXZ 2012-08-31
  • 打赏
  • 举报
回复
我也遇到了同样的问题,提示有52个莫名其妙的错误,如下:
1>.\Debug\迪特斯特拉算法.cpp(15) : error C2143: 语法错误 : 缺少“)”(在“;”的前面)
1>.\Debug\迪特斯特拉算法.cpp(15) : error C2143: 语法错误 : 缺少“]”(在“)”的前面)
1>.\Debug\迪特斯特拉算法.cpp(15) : error C2143: 语法错误 : 缺少“;”(在“)”的前面)
1>.\Debug\迪特斯特拉算法.cpp(15) : error C2059: 语法错误 : “)”
1>.\Debug\迪特斯特拉算法.cpp(15) : error C2059: 语法错误 : “]”
1>.\Debug\迪特斯特拉算法.cpp(15) : error C2143: 语法错误 : 缺少“)”(在“;”的前面)
1>.\Debug\迪特斯特拉算法.cpp(15) : error C2238: 意外的标记位于“;”之前
1>.\Debug\迪特斯特拉算法.cpp(15) : error C2059: 语法错误 : “]”
1>.\Debug\迪特斯特拉算法.cpp(15) : error C2238: 意外的标记位于“;”之前
1>.\Debug\迪特斯特拉算法.cpp(17) : error C2143: 语法错误 : 缺少“)”(在“;”的前面)
1>.\Debug\迪特斯特拉算法.cpp(17) : error C2143: 语法错误 : 缺少“]”(在“)”的前面)
1>.\Debug\迪特斯特拉算法.cpp(17) : error C2143: 语法错误 : 缺少“;”(在“)”的前面)
1>.\Debug\迪特斯特拉算法.cpp(17) : error C2059: 语法错误 : “)”
1>.\Debug\迪特斯特拉算法.cpp(17) : error C2059: 语法错误 : “]”
1>.\Debug\迪特斯特拉算法.cpp(17) : error C2238: 意外的标记位于“;”之前
1>.\Debug\迪特斯特拉算法.cpp(30) : error C2109: 下标要求数组或指针类型

不过编写了一个程序仅用于输出一句话,仍然出现同样的错误,所以还得看看大家能不能帮忙解决。
CSHUALOP 2012-08-31
  • 打赏
  • 举报
回复
应该是软件安装的问题把
耗子哭死猫 2012-08-31
  • 打赏
  • 举报
回复
1.在项目的引用中、你把报错的类都加载全了没。
2.点击你的类库或者Web应用,选择显示所有文件、刷新。看看加载进来没有,
IS-NULL 2012-08-31
  • 打赏
  • 举报
回复
Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

2008是.net 3.5的吧?


chen_ya_ping 2009-10-07
  • 打赏
  • 举报
回复
你的那个文件存在吗?楼主,还是那个文件被隐藏了,或者没有权限读。
veritasfx 2009-10-07
  • 打赏
  • 举报
回复
很低级的方法,但最有效:在其他目录下找到你要的文件直接拷贝过去就可以了。
liuxiaorui1234 2009-06-14
  • 打赏
  • 举报
回复
感谢楼上那位朋友,可是我用上面的方法试过,还是没有解决,不知哪位大侠还知道其他方法吗?
孟子E章 2009-05-21
  • 打赏
  • 举报
回复
http://www.3snews.net/html/32/7832-16995.html
qq2013 2009-04-08
  • 打赏
  • 举报
回复
帮你 ding
liuxiaorui1234 2009-04-08
  • 打赏
  • 举报
回复
没有人知道吗????

62,267

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

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