Error: Unable to cast object of type 'System.Web.Configuration.ScriptingAuthenticationServiceSection'


Today, I decided to create a mobile version of my Karaoke application.

All went well. Followed this instructions on this page:

http://blogs.msdn.com/webdevtools/archive/2007/09/17/tip-trick-asp-net-mobile-development-with-visual-studio-2008.aspx

But then when I hit the default.aspx page of my site (mobile/default.aspx)...I received the following error:

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

The rest of the application works perfectly, just this default.aspx page is the problem. Played around with the web.config file but still no luck. I did notice I had multiple web.config files in my route directly. So I renamed them all, so I only had one web.config file...this didn't help.

This is only an issue when I publish my application to GoDaddy.com. All works perfectly on my local machine. I'm sure there's a setting I'm mssing or something. The system.web.mobile file I'm using is a 2.0.0.0 version and I'm running a 3.5 app, so maybe that's it? I added the following lines to my web.config and still an issue :(

assemblybinding section:






assembly section:





 

What did you think of this article?




Trackbacks
  • No trackbacks exist for this post.
Comments
  • No comments exist for this post.
Leave a comment

Submitted comments are subject to moderation before being displayed.

 Name (required)

 Email (will not be published) (required)

Your comment is 0 characters limited to 3000 characters.