Wednesday, March 28, 2012

Updateing from ATLAS to AJAX.NET?

Hey!

I have built a stie that uses a early version of ATLAS where a webservice was created and then by using java i could do callbacks and let the java change my page.

Now i want to update to AJAX.NET and AJAX control toolkit.

I have followed the fallowing steps:

    Download AJAX.NET Beta 1 and Ajax control toolkit.Executed the AJAX.NET setup where i choosed removeExecuted the AJAX.NET setup and choosed installUnpacked and executed the Ajax control toolkitRemoved the references in my projectFollowed the steps in the AJAX.NET migration doc witch involved some web.config editing and moved the scriptmanager in my masterpage from <HEAD> to form(runat="server").Included the Ajax control toolkit dll as a reference, the AJAX.net referens is not longer needed becource its placed in the GAC.

This simes to work fine, i havent tested the AJAX yet but the intellisens finds the toolkit/Ajax.net controls.

But there is some problems

    web.config have a schema(orginal) to fallow and it simes like this dosent know of the AJAX.NET syntax? i get alot of informations(over 100) about this, ex name do not exist. When i look in the exampel web.config from AJAX.NET there is no schema stated? should i remove my to?There was stated in the migration doc that the content of a searten tag should be moved to another. The contetn was 3 dataconverters. After moving this dataconverters tahy are not working any more(cant compile)??
Maby anyone here can help me?


I have now tested AJAX and its not working at all?

hello.

you should update to beta 2.

btw, can you tell us the errors you're having? migrating from the ctp to the current release envolves some work...


Sorry its Beta 2 i am using.

I will post the errors i get when the dataconvertersa active in the web.config as soon as i can(do not have the project here at work).

i have tryed to upload my site to the webhotel where it have worked before but it cant be displayed? instead i get an error(i have not show error i public turned on in then web.config so i dont know the error message right now but i will look in to it).

My Thought is that the webhotel needs to install AJAX.NET BETA 2 becource the dll is located in the GAC now instead of a simple reference?


Hey!

I have now examen my site some more.

I startated a new Ajax web project with Ajax control toolkit and changed my sites web.config according to this new Ajax test project but this didn′t help anything? My web.config looks like this:


"1.0"?> "microsoft.web" type="Microsoft.Web.Configuration.MicrosoftWebSectionGroup, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> "scripting" type="Microsoft.Web.Configuration.ScriptingSectionGroup, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> "webServices" type="Microsoft.Web.Configuration.ScriptingWebServicesSectionGroup, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"> "jsonSerialization" type="Microsoft.Web.Configuration.ScriptingJsonSerializationSection, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" /> "profileService" type="Microsoft.Web.Configuration.ScriptingProfileServiceSection, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" /> "authenticationService" type="Microsoft.Web.Configuration.ScriptingAuthenticationServiceSection, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" />for the Atlas framework. -->"Microsoft.Web.Script.Serialization.Converters.DataSetConverter"/>"Microsoft.Web.Script.Serialization.Converters.DataRowConverter"/>"Microsoft.Web.Script.Serialization.Converters.DataTableConverter"/> --> "connectionString" connectionString="DRIVER={MySQL ODBC 3.51 Driver};SERVER=193.13.255.212;DATABASE=test;USER=test;PASSWORD=test;OPTION=3"/> "mainTheme"> "asp"namespace="Microsoft.Web.UI" assembly="Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> "asp"namespace="Microsoft.Web.UI.Controls" assembly="Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>namespace="AjaxControlToolkit" assembly="AjaxControlToolkit" tagPrefix="ajaxToolkit"/> "System.Web.UI.WebControls.CompareValidator" mappedTagType="Microsoft.Web.UI.Compatibility.CompareValidator, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> "System.Web.UI.WebControls.CustomValidator" mappedTagType="Microsoft.Web.UI.Compatibility.CustomValidator, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> "System.Web.UI.WebControls.RangeValidator" mappedTagType="Microsoft.Web.UI.Compatibility.RangeValidator, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> "System.Web.UI.WebControls.RegularExpressionValidator" mappedTagType="Microsoft.Web.UI.Compatibility.RegularExpressionValidator, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> "System.Web.UI.WebControls.RequiredFieldValidator" mappedTagType="Microsoft.Web.UI.Compatibility.RequiredFieldValidator, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> "System.Web.UI.WebControls.ValidationSummary" mappedTagType="Microsoft.Web.UI.Compatibility.ValidationSummary, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>"true" to insert debugging symbols into the compiled page. Becausethis affects performance,set this value totrue only during development. --> "true"> "System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> "System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> "System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> "System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> "System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> "System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> "System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> "System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> "System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> "Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>is mapped to anew handler so that proxy javascripts can also be served. --> "*" path="*.asmx"/> "*" path="*.asmx" validate="false" type="Microsoft.Web.Script.Services.ScriptHandlerFactory, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> "WebResourceCompression" type="Microsoft.Web.Handlers.WebResourceCompressionModule, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> "ScriptModule" type="Microsoft.Web.UI.ScriptModule, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> "Windows"/> "40"/> "iso-8859-1" requestEncoding="iso-8859-1" responseEncoding="iso-8859-1" culture="sv-SE" uiCulture="sv-SE"> "test@.test.se "> "smtp.axentus.net" password="test" userName="test" defaultCredentials="false"/> "false"/> "ScriptModule" preCondition="integratedMode" type="Microsoft.Web.UI.ScriptModule, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> "WebServiceHandlerFactory-ISAPI-2.0"/> "ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="Microsoft.Web.Script.Services.ScriptHandlerFactory, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>


I have also looked in the java consol in Firefox to see whats happening when pressing the "Quote" button and apperently it cant find my webservice(dataservice.asmx)? This webservices is stated in the scriptmanager ?

 <asp:ScriptManager runat="server" EnablePartialRendering="true" ID="smScriptHandler"> <services> <asp:ServiceReference Path="dataService.asmx" /> </services> </asp:ScriptManager>

I have also looked at theuploding problem. When the site is uploaded and I tryes to visit it, it shows an error. The error are as fallows:

Server Error in '/' Application.Configuration ErrorDescription: 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 'Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.Source Error:Line 81: <add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>Line 82: <add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>Line 83: <add assembly="Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>Line 84: </assemblies>Line 85: </compilation>Source File: g:\webusers\31330-zni\bradspel.net\web.config Line: 83Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.Web.Extensions, Version=1.0.61025.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].

It simes like the webhotel will have to install AJAX.NET BETA 2 if i understud this error right?

Best regards

No comments:

Post a Comment