邪门啦!!!!!!帮助看一下

shelless 2010-04-03 05:08:07
放本地IIS都没问题,上传到服务器就出问题了。不是知道了。错误信息如下,帮忙看一下是什么问题。

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: Invalid character in the given encoding. Line 4, position 27.

Source Error:

Line 2: <!--
Line 3: 注意: 除了手动编辑此文件以外,您还可以使用
Line 4: Web 管理工具来配置应用程序的设置。可以使�?Visual Studio 中的
Line 5: “网站�?>“Asp.Net 配置”选项�?
Line 6: 设置和注释的完整列表�?


Source File: d:\webhost\wuhanlc\web\web.config Line: 4

Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3082
...全文
101 14 打赏 收藏 转发到动态 举报
写回复
用AI写文章
14 条回复
切换为时间正序
请发表友善的回复…
发表回复
amandag 2010-04-03
  • 打赏
  • 举报
回复
有多余的程序集?
shelless 2010-04-03
  • 打赏
  • 举报
回复
总算能浏览了,没致命的问题了。谢谢。
lzsh0622 2010-04-03
  • 打赏
  • 举报
回复
[Quote=引用 10 楼 shelless 的回复:]
我建的站又不是AJAX站点。怎么用到AJAX的东西呢。想不通。
[/Quote]

试试:
引用中,去掉无用的程序集
using 中无用的命名空间
shelless 2010-04-03
  • 打赏
  • 举报
回复
非常感谢lzsh0622


不过还有问题。应该也是缺少程序集的问题。
shelless 2010-04-03
  • 打赏
  • 举报
回复
[Quote=引用 9 楼 lzsh0622 的回复:]

楼主用到了ajax,需要安装System.Web.Extensions.dll和System.Web.Extensions.Design.dll两个文件.


一般安装在C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025目录

在网站,直接把2个dll复制到你的web程序的bin目录下就行了……
[/Quote]

我建的站又不是AJAX站点。怎么用到AJAX的东西呢。想不通。

希望你说的能行吧,都快疯了。
lzsh0622 2010-04-03
  • 打赏
  • 举报
回复
楼主用到了ajax,需要安装System.Web.Extensions.dll和System.Web.Extensions.Design.dll两个文件.


一般安装在C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025目录

在网站,直接把2个dll复制到你的web程序的bin目录下就行了,这是应用程序级别的部署。
shelless 2010-04-03
  • 打赏
  • 举报
回复
[Quote=引用 5 楼 huangbo162522 的回复:]

一个是1.1的,一个是2.0的吧。
[/Quote]


什么意思,能否说详细点。
lzsh0622 2010-04-03
  • 打赏
  • 举报
回复
服务器没安装.net框架
lzsh0622 2010-04-03
  • 打赏
  • 举报
回复
System.Design, Version=2.0.0.0

没发现程序集,用到的 *.DLL 复制到 网站的 bin\
  • 打赏
  • 举报
回复
一个是1.1的,一个是2.0的吧。
shelless 2010-04-03
  • 打赏
  • 举报
回复
是不是服务器是的framework跟我本地不一样哦。


<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>就这的问题。
shelless 2010-04-03
  • 打赏
  • 举报
回复
解决了,是注释问题。但又出新问题了。

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=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. 系统找不到指定的文件。

Source Error:

Line 16: <assemblies>
Line 17: <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
Line 18: <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
Line 19: </assemblies>
Line 20: <buildProviders>


Source File: d:\webhost
\wuhanlc\web\web.config Line: 18

Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].


Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3082
xupeihuagudulei 2010-04-03
  • 打赏
  • 举报
回复
只能凭一些经验感觉下是哪里出错了
xupeihuagudulei 2010-04-03
  • 打赏
  • 举报
回复
这样的错误信息是看不出来的。

62,041

社区成员

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

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

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

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