asp.net - 无法加载文件或程序集“System.Web.Extensions,版本=1.0.61025.0错误”

标签 asp.net system.web.extensions

我已经检查过这个网站的解决方案,但我没有找到可以帮助我的东西。 我的主机在他们的服务器上禁用了自定义错误,所以现在我可以看到真正的错误。

我的网站在旧主机中运行完美,但现在我搬到了新主机

请注意:旧主机NetVison主机上的VPS>

所以我不再向他付款,现在我正在同一NetVision主机上作为共享主机.

因此,我将所有文件移至根文件夹,并在Web.config中配置 SQL 详细信息

由于某种原因我无法加载该网站。 我总是遇到错误。 请帮助我!

我得到的错误:

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

配置错误

解析器错误消息:

Could not load file or assembly 'System.Web.Extensions,
Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of
its dependencies. The system cannot find the file specified.

来源错误:

Line 49:            <assemblies>
Line 50:                <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
Line 51:                <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>*
Line 52:            </assemblies>
Line 53:        </compilation>

源文件:

\filer\Sites\NV355601\www.picit.co.il\www\web.config 行:51

我的 Web.Config:

<?xml version="1.0"?>
<configuration>
<appSettings>
    <add key="SiteAddress" value="http://www.picit.co.il/" />
    <add key="SSLSiteAddress" value="https://bonsite-secure.co.il/picit/" />

    <add key="EMAIL_HOST" value="mail.barak.net.il"/>
    <add key="EMAIL_CONTACT_NAME" value="PicIt"/>
    <add key="EMAIL_USER" value="bonsite-barak.net.il"/>
    <add key="EMAIL_PASS" value="013013"/>
    <add key="MASTER_USERNAME" value="bonsite"/>
    <add key="MASTER_PASSWORD" value="master123#"/>

    <add key="FCKeditor:UserFilesPath" value="~/Up/Main/"/>
    <add key="FCKeditor:BasePath" value="~/Controls/FCKeditor/"/>
</appSettings>
<connectionStrings>
    <add name="Con" connectionString="Data Source=127.0.0.1;Initial Catalog=db;user=usr;password=pwd;" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
    <globalization culture="he-IL" uiCulture="he-IL"/>
    <sessionState mode="InProc"/>
    <customErrors mode="Off"/>
    <identity impersonate="true"/>
    <authentication mode="Windows"/>
    <httpRuntime maxRequestLength="22000"
minFreeThreads="16"
executionTimeout="500"
useFullyQualifiedRedirectUrl="false"
minLocalRequestFreeThreads="4"
appRequestQueueLimit="1000" />
    <pages theme="Front">
        <namespaces>
            <add namespace="Website"/>
        </namespaces>
        <controls>
            <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.UI" tagPrefix="asp"/>
            <add tagPrefix="Upload" namespace="Brettle.Web.NeatUpload" assembly="Brettle.Web.NeatUpload"/>
            <add tagPrefix="fck" namespace="FredCK.FCKeditorV2" assembly="FredCK.FCKeditorV2"/>
            <add tagPrefix="swf" tagName="movie" src="~/Controls/swf.ascx"/>
            <add tagPrefix="Btn" tagName="Friend" src="~/Controls/btn_friend.ascx"/>
            <add assembly="Bound" namespace="CustomControls" tagPrefix="asp"/>
            <add assembly="skmValidators" namespace="skmValidators" tagPrefix="Vld"/>

            <add tagPrefix="CC" tagName="Upload" src="~/Controls/upload.ascx"/>
        </controls>
    </pages>
    <compilation debug="true">
        <assemblies>
            <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
            <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        </assemblies>
    </compilation>
    <httpModules>
        <add name="UploadHttpModule" type="Brettle.Web.NeatUpload.UploadHttpModule, Brettle.Web.NeatUpload"/>
        <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    </httpModules>
    <httpHandlers>
        <remove verb="*" path="*.asmx"/>
        <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
        <add verb="GET" path="ScriptResource.axd" type="Microsoft.Web.Handlers.ScriptResourceHandler" validate="false"/>
    </httpHandlers>
</system.web>
<system.webServer>
    <modules>
        <add name="UploadHttpModule" type="Brettle.Web.NeatUpload.UploadHttpModule, Brettle.Web.NeatUpload" preCondition="managedHandler"/>
        <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="managedHandler"/>
    </modules>
    <handlers>
        <add name="ScriptResource.axd_GET" path="ScriptResource.axd" verb="GET" type="Microsoft.Web.Handlers.ScriptResourceHandler" preCondition="integratedMode,runtimeVersionv2.0"/>
        <add name="ScriptResource.axd_GET,HEAD" path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="integratedMode,runtimeVersionv2.0"/>
        <add name="*.asmx_*" path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="integratedMode,runtimeVersionv2.0"/>
    </handlers>
    <validation validateIntegratedModeConfiguration="false"/>
</system.webServer>
</configuration>

感谢大家的帮助!

最佳答案

Microsoft Download Center安装Ajax扩展1.0

由于未安装,我大部分时间都遇到此错误。

关于asp.net - 无法加载文件或程序集“System.Web.Extensions,版本=1.0.61025.0错误”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7723489/

相关文章:

asp.net - 如何在 .aspx 页面中编写元标记?

c# - 为什么我不能在控制台应用程序中引用 System.Web.Extensions?

c# - 从字符串中获取枚举字段

javascript - GeoChart Google 可视化未在 ASP.NET 中显示某些国家/地区

asp.net - GridView 中 (ASP.NET) ButtonField 的 JQuery 选择器

c# - 加载后面的代码后加载javascript代码