本文介绍了在本地系统中托管的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在应用程序中使用wcf服务开发了一个Web应用程序.它工作正常.但是我的问题是,当我在iis(本地系统)中托管时,它显示错误,例如

``/WCFService''应用程序中的服务器错误.
配置错误
说明:在处理服务于此请求所需的配置文件期间发生错误.请查看下面的特定错误详细信息,并适当地修改您的配置文件.

解析器错误消息:无法加载文件或程序集"System.Web.Extensions,版本= 4.0.0.0,区域性=中性,PublicKeyToken = 31bf3856ad364e35"或其依赖项之一.系统找不到指定的文件.

源错误:

第22行:< compilation debug ="true">
第23行:<装配体>
第24行:< add assembly ="System.Web.Extensions,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = 31BF3856AD364E35"/>
第25行:< add assembly ="System.Data.Linq,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = B77A5C561934E089"/>
第26行:</assemblies>


源文件:c:\ inetpub \ wwwroot \ WCFService \ web.config行:24

程序集加载跟踪:以下信息有助于确定为什么无法加载程序集``System.Web.Extensions,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35''.

WRN:程序集绑定日志记录已关闭.
若要启用程序集绑定失败日志记录,请将注册表值[HKLM \ Software \ Microsoft \ Fusion!EnableLog](DWORD)设置为1.
注意:与程序集绑定失败日志记录相关的性能损失.
要关闭此功能,请删除注册表值[HKLM \ Software \ Microsoft \ Fusion!EnableLog].

我的web.config文件是::

< system.web>
<!-
将编译设置为debug ="true"以插入调试
符号插入已编译的页面.因为这个
影响性能,将此值仅设置为true
在开发过程中.
->
< compilation debug ="true">
<装配体>
< add assembly ="System.Web.Extensions,版本= 4.0.0.0,文化=中性,PublicKeyToken = 31BF3856AD364E35">
< add assembly ="System.Data.Linq,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = B77A5C561934E089">



请给我任何解决此错误的想法

谢谢,
swathi

Hi,

I developed one web application using wcf services in my application.It working fine.But my problem is,when i hosted in iis(my local system),it showing an error like,

Server Error in ''/WCFService'' 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=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'' or one of its dependencies. The system cannot find the file specified.

Source Error:

Line 22: <compilation debug="true">
Line 23: <assemblies>
Line 24: <add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
Line 25: <add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
Line 26: </assemblies>


Source File: c:\inetpub\wwwroot\WCFService\web.config Line: 24

Assembly Load Trace: The following information can be helpful to determine why the assembly ''System.Web.Extensions, Version=4.0.0.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].

My web.config file is::

<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true">
<assemblies>
<add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089">



please give me any idea to solve this error

thanks,
swathi

推荐答案



这篇关于在本地系统中托管的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 16:17
查看更多