2009-03-06 34 views
1

İki gün önce iyi çalışan bir web uygulamasına sahibim. Bu web sitesini başka bir makineye taşıdığımda, aşağıdaki problemle karşılaşıyorum. Benim web sayfasında

, ben ScriptManager ilan ettiler:ScriptManager kullanırken Ayrışma Hatası

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

Ve web sayfasını ziyaret ettiğinizde, bu hatayı alıyorum:

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). 

Ve başka web sayfasında

, ben Şu hatayı alıyorum:

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 uygulamam ASP.NET 2.0 üzerine kurulmuştur ve ayrıca System.Web.Extensions.Dll rect (1.0.61025.0) sürümü, uygulamanın bin klasöründe bulunur. web.config'de System.Web.Extensions.dll için

Giriş şunlardır:

<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> 


hata hem AJAX özelliğini kullanarak ilişkili gibi görünüyor. Birisi bana anlatabilir, yukarıda belirtilen hataya ne neden olabilir?

cevap

0

ajax uygulamalarını doğru olarak desteklemek için asp.net 2.0'ın bir uzantı yamasına ihtiyaç duymuyor mu?

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

+0

Bu düzeltme ekini zaten yükledim. Yine de hatayla karşılaşıyorum. –

+0

sonra web.config gönderin – BenB

+0

Web.config girdisini ekledim, Lütfen bu konuya bakın. –

0

Bu .NET 3.5 vs .NET 2.0 AJAX 1.0 AJAX sorunu gibi görünüyor. (IE, AJAX kitaplığı doğrudan .NET 3.5'e dahil edildi ve AJAX kitaplıklarının .NET 3.5 sürümünü kullanmaya çalıştığınız anlaşılıyor.)

Aynı problemle bir uygulamada karşılaştım ve bulundu this, bu sorunu çözmek için iki öneriyle ilgili referans.

Bir öneri Gerçek için Özgül Sürüm özelliğini ayarlamak için System.Web.Extensions.dll meclise proje dosyasının referans bulunmaktadır. Bu derlemenin 1.0.61025.0 sürümüne açıkça başvurduğunuzdan, bunun sorunu çözeceğinden şüpheleniyorum.

0

geç bir cevap :) ancak ürünüm da benzer bir problem vardı ve

<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> 

web.config için aşağıdaki ekleyerek çözmüş Bu meclis yeni sürümü kullanılacak şekilde bu nedenle bağlayıcı çözme yönlendirmeleri çakışma

İlgili konular