Monday, March 26, 2012

Atlas use in current asp.net app

I am sure that this question has been asked and answered before. I watched some webcasts regarding Atlas and I want to use this in our current intranet. I have downloaded and installed the June CTP along with the toolkit. I have also read about adding Atlas to an existing ASP.Net application, however when I follow those rules and copy this into my web.config file, I get all sorts of errors:

Copy these elements as children of the<configuration> element:

 <configSections> <sectionGroup name="microsoft.web" type="Microsoft.Web.Configuration.MicrosoftWebSectionGroup"> <section name="converters" type="Microsoft.Web.Configuration.ConvertersSection"/> </sectionGroup> </configSections> <microsoft.web> <converters> <add type="Microsoft.Web.Script.Serialization.Converters.DataSetConverter"/> <add type="Microsoft.Web.Script.Serialization.Converters.DataRowConverter"/> <add type="Microsoft.Web.Script.Serialization.Converters.DataTableConverter"/> </converters> </microsoft.web>

Copy (or integrate) these elements as children of the<system.web> element:

 <pages> <controls> <add namespace="Microsoft.Web.UI" assembly="Microsoft.Web.Atlas" tagPrefix="atlas"/> <add namespace="Microsoft.Web.UI.Controls" assembly="Microsoft.Web.Atlas" tagPrefix="atlas"/> </controls> </pages> <!-- ASMX is mapped to a new handler so that proxy javascripts can also be served. --> <httpHandlers> <remove verb="*" path="*.asmx"/> <add verb="*" path="*.asmx" type="Microsoft.Web.Services.ScriptHandlerFactory" validate="false"/> </httpHandlers> <httpModules> <add name="ScriptModule" type="Microsoft.Web.Services.ScriptModule"/> </httpModules>
I added the microsoft.web.atlas.dll into the bin directory. All I want to do is find out what I need to do to start using Atlas
Thanks for the information

guyinkalamazoo:

I have also read about adding Atlas to an existing ASP.Net application, however when I follow those rules and copy this into my web.config file, I get all sorts of errors:

All I want to do is find out what I need to do to start using Atlas

Follow the docsWink What errors?


I get this error: "Could not find schema information"

<

configurationxmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
I don't have that in my website. Can you give more information on why that schema is included?

hello.

that's the schema used by asp.net 2.0 config files. unfortunatelly, most guys really don't use that since it's a show stopper (using the namespace shuts down intellisense on the file...)


I use altlas in a non-atlas project. All I had to do was on the pages that I wanted Atlas on, I inserted:

<%@.RegisterAssembly="Microsoft.Web.Atlas"Namespace="Microsoft.Web.UI"TagPrefix="Atlas" %>

<%@.RegisterAssembly="Microsoft.AtlasControlExtender"Namespace="Microsoft.AtlasControlExtender"TagPrefix="Atlas" %>

<%@.RegisterAssembly="AtlasControlToolkit"Namespace="AtlasControlToolkit"TagPrefix="Atlas" %>

This allowed me to use atlas after adding just a reference to those 3 assemblies.

I hope this helps.


By the way, I didn't have to do ANYHTING to my web.config file after inserting those 3 registers.

No comments:

Post a Comment