Cazanova 0 Denunciar post Postado Janeiro 30, 2009 Tenho um IIS 6 em um windows server 2003, nele estão instalados: - ASP.NET AJAX 1.0 Link - Versao do ASP NET 2.0.50727 O grande problema é que estou usando o ScriptManager em uma das minhas páginas e ta dando problema. ASPX.CS using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; using System.Collections.Generic; using Popweb.CmsCsharp.CMS; using Popweb.CmsCsharp.ADM; using System.Text.RegularExpressions; E NO ASPX <%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="../../app_include/master/CMS.Master" Inherits="Popweb.CmsCsharp.Web.cms.ContentEdit" %> <asp:ScriptManager EnablePartialRendering="false" runat="server" ID="smMaster"></asp:ScriptManager> E NO WEBCONFIG n="1.0"?> <configuration> <configSections> <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> </configSections> <connectionStrings> <add name="PopwebSQLServer" connectionString="Data Source=SVN\SQLEXPRESS;Initial Catalog=base;User Id=sa;Password=tempteste12E;" providerName="System.Data.SqlClient" /> </connectionStrings> <system.web> <customErrors mode="Off"/> <authentication mode="None"/> <httpRuntime maxRequestLength="111000"/> <compilation debug="true"/> <pages> <controls> <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> </controls> </pages> </system.web> <system.webServer> <validation validateIntegratedModeConfiguration="false"/> <modules> <add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> </modules> <handlers> <remove name="WebServiceHandlerFactory-ISAPI-2.0"/> <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> <add name="ScriptResource" verb="GET" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> </handlers> </system.webServer> </configuration> Já tentei colocar algumas coisas no meu Web.config que sugerem em http://www.asp.net/AJAX/Documentation/Live...ASPNETAJAX.aspx mas nao rolou. Queria saber se alguem sabe oq devo colocar no webconfig ou alguma DLL que devo colocar na pasta BIN. O erro que esta dando: Erro do Analisador Descrição: Erro ao analisar um recurso necessário para atender esta solicitação. Examine os detalhes específicos do erro de análise e modifique o arquivo de origem apropriadamente. Mensagem de Erro do Analisador: A classe base inclui o campo 'smMaster', mas seu tipo (System.Web.UI.ScriptManager) não é compatível com o tipo de controle (System.Web.UI.ScriptManager). Erro de Origem: Linha 102: <div class="info">(50 Arquivos relacionados)</div> Linha 103: </div> Linha 104: <asp:ScriptManager EnablePartialRendering="false" runat="server" ID="smMaster"></asp:ScriptManager> Linha 105: Linha 106: Arquivo de Origem: /cms/app_content/cms/ContentEdit.aspx Linha: 104 Informações sobre a Versão: Microsoft .NET Framework Versão:2.0.50727.3082; Versão do ASP.NET:2.0.50727.3082 Compartilhar este post Link para o post Compartilhar em outros sites
Cazanova 0 Denunciar post Postado Janeiro 30, 2009 Resolvido, pois inclui no webconfig o seguinte código: <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> Compartilhar este post Link para o post Compartilhar em outros sites