ASP.NET发布问题
IIS配置应该都配好了,报错如下:
Server Error in '/bbs ' 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 type 'System.Web.Handlers.ScriptModule ' from assembly 'Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 '. (C:\Inetpub\wwwroot\bbs\web.config line 68)
Source Error:
Line 66: </httpHandlers>
Line 67: <httpModules>
Line 68: <add name= "ScriptModule " type= "System.Web.Handlers.ScriptModule, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 "/>
Line 69: </httpModules>
Line 70: <caching>
Source File: C:\Inetpub\wwwroot\bbs\web.config Line: 68
--------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
已经查过相关错误别的同志给予的意见,就是说要把Microsoft.Web.Extensions.dll拷贝到BIN目录下,但是还是提示相同错误。
还有就是在错误提示中的Version=1.0.61025.0是指的版本好吗,因为本人不是学。NET的,现在只是想调用下。NET做好的BBS,望各位高手给予帮助。
[解决办法]
.NET Framework Version:2.0装了没有 ?
[解决办法]
在项目中重新添加一下Microsoft.Web.Extensions.dll的引用
可能是Microsoft.Web.Extensions.dll的版本与web.config中添加的版本不一致。
[解决办法]
把这段:
Line 68: <add name= "ScriptModule " type= "System.Web.Handlers.ScriptModule, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 "/>
Line 69:
删掉试试