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

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

10 Answers 482 Views
Window
This is a migrated thread and some comments may be shown as answers.
Stephen
Top achievements
Rank 2
Stephen asked on 05 Dec 2008, 10:50 PM

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


After upgrading from Q2 to Q3 following the instructions on the website (basically removing the version component from the telerik controls in the web.config and dropping the new DLLs in my bin directory I get this error message. I'm really hoping the upgrade will resolve my dialog problem (dialogs fail which is not surprising since I'm taking 404s on my calls into Dialoghandler.aspx and i"m hoping hte new DialogHandler.axd will work better).

Any clues to help me move forward on this?

10 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 08 Dec 2008, 02:48 PM
Hi Stephen,

Try restarting your Visual Studio first. Often when upgrading, VS keeps a cached older version, that could cause such problem.
If the problem still persists, please open a support ticket and send us your application so we can check it - we will do our best to help.


All the best,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Stephen
Top achievements
Rank 2
answered on 19 Dec 2008, 06:41 PM
This is sort of strange but I "think" that the cause of the problem was this line
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
in my web.config. Once I removed the xmlns attribute it helped. Now I can't be positive because I changed a bunch of stuff but I went back and undid a lot and I think this is what was giving me a problem. Don't have time to go and try it again but I thoght I'd put this out here in case anyone else gets this problem and can't fix it.



0
Lukas
Top achievements
Rank 2
answered on 05 May 2009, 02:49 PM
I can approve this.

I had the same issue with 'System.Web.Configuration.ScriptingProfileServiceSection'

After I deleted ' xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0" 'from '<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">' in my web.config, my applications runs fine again and I haven't found any problems so far.

0
Fiko
Telerik team
answered on 06 May 2009, 03:45 PM
Hello Stephen,

Could you please also check what is the exact version of the Telerik.Web.UI.dll file (for the .NET Framework (2.0 or 3.5)) that is present in your project?

Best wishes,
Fiko
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches. Send for approval
0
Kyle
Top achievements
Rank 1
answered on 08 May 2009, 05:35 PM
Im experiencing the same issue however I do not have the 'xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"' in my config to remove and make the magic happen.

Please advise.

Thanks
Kyle
0
Kyle
Top achievements
Rank 1
answered on 08 May 2009, 05:51 PM
After looking at the 3.5 config sample included in the RadControlsExample solution, I noticed that my project(MVC) did not contain the following config section. To be honest, I've never even seen this used in my 7+ of .Net development...learn something everyday.

</system.web>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
0
Johannes H
Top achievements
Rank 1
answered on 08 Jul 2009, 06:09 AM
Update:

I deleted my work and started with a new clean try - success!

Kind Regards,

Johannes

old problem:

Same problem here, tried to update the solution to Q2 2009 release.

Getting the:

System.Web.Configuration.ScriptingProfileServiceSection


error!


0
Sebastian
Telerik team
answered on 22 Jan 2010, 01:16 PM
Hello guys,

I think that the information provided in this thread in the ASP.NET forums will help you address the exception in question.

Best regards,
Sebastian
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.
0
Bruce Matichuk
Top achievements
Rank 1
answered on 02 Mar 2010, 08:32 PM
I also had the same issue and removing xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0" from the <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"> tag solved the problem for me as well.

Thanks for posting your fix!

0
David Berman
Top achievements
Rank 2
answered on 03 Sep 2010, 01:28 AM
This worked for me too, thank you.  I'm developing on Vista 64 bit with IIS.

D.
Tags
Window
Asked by
Stephen
Top achievements
Rank 2
Answers by
Georgi Tunev
Telerik team
Stephen
Top achievements
Rank 2
Lukas
Top achievements
Rank 2
Fiko
Telerik team
Kyle
Top achievements
Rank 1
Johannes H
Top achievements
Rank 1
Sebastian
Telerik team
Bruce Matichuk
Top achievements
Rank 1
David Berman
Top achievements
Rank 2
Share this question
or