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

[Solved] 'System.Web.Configuration.ScriptingProfileServiceSection' cast error

1 Answer 53 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Fabian
Top achievements
Rank 1
Fabian asked on 14 Oct 2009, 04:10 PM
Hi,

I made a usercontrol using AJAX in .NET.
In my VS environnement, it works fine but, when I try to use it on our webserver, I got this error message :

Impossible d'effectuer un cast d'un objet de type 'System.Web.Configuration.ScriptingProfileServiceSection' en type 'System.Web.Configuration.ScriptingProfileServiceSection'.


When I put the "System.Web.Configuration.ScriptingProfileServiceSection" and the "System.Web.Configuration.ScriptingAuthenticationServiceSection" in comment in my web.config file, my control works but, the AJAX refreshing didn't work.

So, it seems that the Ajax.NET need this references in the web.config file but, I don't know why it didn't work.

As I saw in other thread, I also try to remove the "xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0" reference but my control still doesn't work.

I hope someone can help me.

Thanks,

Fabian
PROMISYS

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 15 Oct 2009, 03:16 PM
Hello Fabian,

Please make sure you are using the right .NET build of Telerik.Web.UI.dll. If you are using ASP.NET 2.0 use the 2.0 build from the bin folder of your RadControls installation. If using ASP.NET 3.5 please use the file from the bin35 folder. The .NET version can be found by checking the version of the assembly - it is the last:
2009.2.826.20

Regards,
Albert,
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Fabian
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or