如何解决IIS 7中托管的.Net 2.0 Framework中的配置错误? [英] How Do I Solve The Configuration Error In .Net 2.0 Framework Hosted In IIS 7?

查看:135
本文介绍了如何解决IIS 7中托管的.Net 2.0 Framework中的配置错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在IIS 6中托管的.Net 1.1框架中发布了类似的配置错误问题。



该问题,我已将.Net版本更改为2.0它解决了。



在这个我的.Net已经是2.0版本,Web应用程序在IIS 7中运行。



当我点击应用程序中的某些链接时,我收到以下错误。









'/'应用程序中的服务器错误。

------------------------ -------------------------------------------------- ------



配置错误

描述:处理为此请求提供服务所需的配置文件时发生错误。请查看下面的具体错误详细信息并相应地修改配置文件。



分析器错误消息:无法加载文件或程序集'System.Web.Extensions,Version = 3.5.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35'或其中一个它的依赖关系。该系统找不到指定的文件。 (D:\ WebProjects \ JSCWeb \web.config第91行)



来源错误:





服务器上发生应用程序错误。此应用程序的当前自定义错误设置可防止远程查看应用程序错误的详细信息(出于安全原因)。但是,可以在本地服务器上运行的浏览器查看它。





源文件:D:\ WebProjects \ JSCWeb\web.config行:91





----------------- -------------------------------------------------- -------------

版本信息:Microsoft .NET Framework版本:2.0.50727.4253; ASP.NET版本:2.0.50727.4257







有人可以帮我这个。



提前致谢。

I have posted a similar configuration error question in .Net 1.1 framework hosted in IIS 6.

for that issue,i have changed the .Net version to 2.0 and it got solved.

In this my .Net is already 2.0 version and web application runs in IIS 7.

when i click on some links in the application,i get the following error.




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

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Could not load file or assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. (D:\WebProjects\JSCWeb\web.config line 91)

Source Error:


An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.


Source File: D:\WebProjects\JSCWeb\web.config Line: 91


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.4253; ASP.NET Version:2.0.50727.4257



Can someone help me with this.

Thanks in advance.

推荐答案

好的 - 这可能非常简单。

第一:关闭错误报告时,您将看不到完整错误。点击此处了解更多信息:

ASP.NET中的自定义错误 [ ^ ]



看来您的代码是.Net3.5(至少),但您的应用程序池正在运行2.0。



您可以在这里找到如何安装3.5并在3.5(或IIS7上的4.0)上运行您的应用程序池:

为ASP.NET应用程序部署和SQL Server 2008集成配置IIS 7 [ ^ ]



希望有帮助^ _ ^
Ok - this could be super simple.
First: you won't see the full error with error reporting turned off. Find out more here:
Custom Errors in ASP.NET[^]

It appears that your code is .Net3.5 (at least) but your app pool is running 2.0.

You can find out how to install 3.5 and run your app pool in 3.5 (or 4.0 on IIS7) here:
Configuring IIS 7 for ASP.NET Applications Deployment and SQL Server 2008 Integration[^]

Hope that helps ^_^


这篇关于如何解决IIS 7中托管的.Net 2.0 Framework中的配置错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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