This is a migrated thread and some comments may be shown as answers.

web.config

3 Answers 50 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
mastermehdi
Top achievements
Rank 2
mastermehdi asked on 28 Apr 2011, 09:21 AM

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>

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 28 Apr 2011, 09:52 AM
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.
0
mastermehdi
Top achievements
Rank 2
answered on 28 Apr 2011, 12:49 PM

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?

0
Bartholomeo Rocca
Top achievements
Rank 1
answered on 02 May 2011, 01:52 PM
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.
Tags
General Discussions
Asked by
mastermehdi
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 1
mastermehdi
Top achievements
Rank 2
Bartholomeo Rocca
Top achievements
Rank 1
Share this question
or