web.config

4 posts, 0 answers
  1. mastermehdi
    mastermehdi avatar
    39 posts
    Member since:
    Apr 2010

    Posted 28 Apr 2011 Link to this post

    hi

    I use Telerik.Web.UI.dll v2011.1.419.40

    and my web host use windows server 2003 + IIS6

    and I use RadScriptManager + RadChart in my web site 

    what is correct form of my web.config?

    <?xml version="1.0"?>
    <configuration>
      <system.web>
        <machineKey validationKey="4E034E7E4D3A8BD7B883864A59A1DCE0F0830BBB7A8EA155F5E3C43640F53EE78D1FD427F4C7A1FC88C273BD134A4A55F329EB552379EE45E74C5FA298CD270F"
          decryptionKey="6D0118305061DE29C50CC073F906B4861CEE55D1CB1EBBE31D04220359C6794C" validation="SHA1" decryption="AES" />
        <compilation debug="false" defaultLanguage="C#" targetFramework="4.0">
          <assemblies>
            <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
            <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
            <add assembly="System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
          </assemblies>
        </compilation>
        <httpRuntime maxRequestLength="1024" requestLengthDiskThreshold="64" requestValidationMode="2.0"/>
        <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
          <controls>
            <add tagPrefix="csm" namespace="customWebControls"/>
            <add tagPrefix="tlk" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>
          </controls>
        </pages>
        <httpModules>
          <add name="customErrorModule" type="customErrorModule"/>
        </httpModules>
        <httpHandlers>
        </httpHandlers>
      </system.web>
      <system.webServer>
        <validation validateIntegratedModeConfiguration="false"/>
        <modules>
          <add name="customErrorModule" type="customErrorModule"/>
        </modules>
        <handlers>
        </handlers>
      </system.webServer>
    </configuration>

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 28 Apr 2011 Link to this post

    Hello Mehdi,

    RadChart requires that you register an HTTP handler in the web config file to render the chart. To do this, click the Smart Tag Add RadChart HTTP Handler to Web.Config.

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. mastermehdi
    mastermehdi avatar
    39 posts
    Member since:
    Apr 2010

    Posted 28 Apr 2011 Link to this post

    hi shinu

    in my client I have windows 7 + IIS7

    and when I click the "Smart Tag Add RadChart HTTP Handler to Web.Config", register HTTP handler for windows 7 with IIS7 while I need to register for windows server 2003 + IIS6!

    please tell me what can I do?

  5. Bartholomeo Rocca
    Bartholomeo Rocca avatar
    247 posts
    Member since:
    May 2006

    Posted 02 May 2011 Link to this post

    Hello mastermehdi,

    Actually the smart tags registers the HttpHandler both for IIS6, and for IIS7.

    IIS6
    <system.web>
        ...
        <httpHandlers>
          ...
          <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false" />
        </httpHandlers>
        ...
    </system.web>

    IIS7
    <system.webServer>
        ...
        <handlers>
          ...
          <add name="ChartImage_axd" verb="*" preCondition="integratedMode" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" />
          ...
        </handlers>
        ...
    </system.webServer>


    Greetings,
    Bart.
Back to Top