Drunkard

添加Atlas的特征到现有ASP.NET 应用程序里

 

1)利用Visual Stduio.NET打开ASP.NET 应用程序

 

2)将Atlas运行时汇编集Microsoft.Web.Atlas.dll从安装处拷贝到应用程序的bin文件夹,默认的Microsoft.Web.Atlas.dll位置为

 

C:\Program Files\Microsoft ASP.NET\Atlas\v2.0.50727\Atlas

 

3)打开web.config配置Atlas默认的引用位置

 

4)拷贝如下的元素作为web.config<configuration>的子元素

 

 

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

 

拷贝如下内容作为<System.Web>的子元素

 

 

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

 

 

分类:

技术点:

相关文章:

  • 2018-03-22
  • 2021-09-24
  • 2021-12-26
  • 2021-09-13
  • 2021-12-05
  • 2021-12-26
  • 2021-12-10
  • 2021-07-31
猜你喜欢
  • 2021-10-17
  • 2021-11-14
  • 2021-12-26
  • 2021-12-06
  • 2021-12-12
  • 2021-06-16
  • 2021-08-26
相关资源
相似解决方案