2009-03-06 13 views
1

2日前に正常に動作していたWebアプリケーションがあります。このウェブサイトを別のマシンに移動したときに、次の問題に直面した。私のWebページで

は、私がようにScriptManagerを宣言した:ScriptManagerを使用しているときの解析エラー

<asp:ScriptManager ID="scriptMgr" runat="server"> 
</asp:ScriptManager> 

そして、私は、Webページを訪問したときに、私はこのエラーを取得しています:

The base class includes the field 'scriptMgr', but its type (System.Web.UI.ScriptManager) is not compatible with the type of control (System.Web.UI.ScriptManager). 

し、別のWebページ上の

、I次のエラーが発生しています:

The base class includes the field 'upProgress', but its type (System.Web.UI.UpdateProgress) is not compatible with the type of control (System.Web.UI.UpdateProgress). 

私のWebアプリケーションはASP.NET 2.0上に構築されており、 rect(1.0.61025.0)バージョンのSystem.Web.Extensions.Dllは、アプリケーションのbinフォルダにあります。

web.configファイルでSystem.Web.Extensions.Dllのエントリは、次のとおりです。

<configSections> 
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" > 
    <section name="CSI.OLS.Library.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> 
</sectionGroup> 
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> 
    <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> 
    <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/> 
    <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> 
     <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere" /> 
     <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" /> 
     <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" /> 
    </sectionGroup> 
    </sectionGroup> 
</sectionGroup> 


エラーの両方がAJAX機能を使用してに関連しているようです。誰も私に教えてください、上記のエラーを引き起こす可能性がありますか?

答えて

0

ajaxアプリケーションを正しくサポートするには、asp.net 2.0で拡張機能のパッチが必要ですか?

http://www.asp.net/AJAX/downloads/

+0

私はすでにこのパッチをインストールしています。それでも、私は間違いに直面しています。 –

+0

web.configを投稿してください – BenB

+0

web.configエントリを追加しました。この問題を調べてください。 –

0

これは、.NET 3.5 VS .NET 2.0 AJAX 1.0 AJAXの問題のようです。 (IE、AJAXライブラリは.NET 3.5に直接含まれていました.AJAXライブラリの.NET 3.5バージョンを使用しようとしているようです。)

アプリケーションで同じ問題が発生しました。 thisこの問題を解決するための2つの提案で問題を参照してください。

1つの提案は、特定のバージョンプロパティを設定するために、System.Web.Extensions.dllアセンブリへのプロジェクトファイルの参照です。このアセンブリの1.0.61025.0バージョンを明示的に参照しているので、これは問題を解決すると思われます。

0

後半の答え:)が、私は私の製品で同様の問題を持っていた。これは、新しいバージョンが使用されるように組み立て、結合ので解決リダイレクトweb.configファイルに

<runtime> 
     <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> 
      <dependentAssembly> 
       <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/> 
       <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/></dependentAssembly> 
      <dependentAssembly> 
       <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/> 
       <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/></dependentAssembly> 
     </assemblyBinding> 
</runtime> 

を以下のように追加して、それを解決競合は

関連する問題