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

Error

1 Answer 50 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Clark
Top achievements
Rank 1
Clark asked on 10 Mar 2011, 10:50 PM
I have a big problem that so far I have not seen an answer for. I have a web app using the RAD DateTime Picker and the RADGrid, they work fine on my local machine and on our test server but when I deploy it to the live server I get this error:

"

Unable to cast object of type 'System.Web.Configuration.ScriptingProfileServiceSection' to type 'System.Web.Configuration.ScriptingProfileServiceSection'.

".

I have researched this error and found no solution to it yet. I know that some of the sites on this server are using an older version of Telerik controls so I don't know if this is an issue or not, but our test server is doing the same thing and it runs on there. HEre is my web.config file.

<?xml version="1.0"?>
<configuration>
  <appSettings />
  <connectionStrings />
  <system.web>
    <compilation debug="true">
      <assemblies>
        <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
      </assemblies>
    </compilation>
    <!--
            The <authentication> section enables configuration
            of the security authentication mode used by
            ASP.NET to identify an incoming user.
        -->
    <authentication mode="Windows" />
    <!--
            The <customErrors> section enables configuration
            of what to do if/when an unhandled error occurs
            during the execution of a request. Specifically,
            it enables developers to configure html error pages
            to be displayed in place of a error stack trace.
 
        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
        -->
    <httpHandlers>
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
    </httpHandlers>
  </system.web>
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <handlers>
      <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
    </handlers>
  </system.webServer>
</configuration>

I need a solution on this asap otherwise I cannot continue using your controls.

Thanks!

1 Answer, 1 is accepted

Sort by
0
Mira
Telerik team
answered on 14 Mar 2011, 04:21 PM
Hello Clark,

Please follow the suggestions from the Unable to cast object of type 'System.Web.Configuration.ScriptingProfileServiceSection' forum thread and let me know whether they help.

Regards,
Mira
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
General Discussions
Asked by
Clark
Top achievements
Rank 1
Answers by
Mira
Telerik team
Share this question
or