将asp.net文件部署到iis服务器后出现配置错误
我在生产服务器中部署代码时遇到以下错误。代码在开发中运行良好将asp.net文件部署到iis服务器后出现配置错误,asp.net,visual-studio-2008,iis,deployment,Asp.net,Visual Studio 2008,Iis,Deployment,我在生产服务器中部署代码时遇到以下错误。代码在开发中运行良好 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 appro
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. (E:\QA\form\web.config line 103)
Source Error:
Line 101: </httpHandlers>
Line 102: <httpModules>
Line 103: <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
Line 104: </httpModules>
Line 105: </system.web>
Source File: E:\QA\form\web.config Line: 103
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
我知道这是因为:
服务器上未安装.NET 3.5 SP1。代码取决于.NET3.5运行时,但我的服务器只有.NET2.0。我至少需要ASP.NETAJAX1.0下载,它应该与.NET2.0一起运行
但不幸的是,我无法在我的生产服务器中安装任何这些。我们是否有其他解决方案?否。如果无法在生产服务器上安装应用程序所需的依赖项,则必须1从应用程序中删除生产环境中不存在的依赖项,即以其他方式执行操作;或者2不部署在该环境中。但是,您无法安装最新版本的框架似乎很奇怪。此外,在开发到某个框架级别之前,您可能应该尝试更好地理解生产环境的限制