Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 917423
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T18:12:33+00:00 2026-05-15T18:12:33+00:00

I have an older asp.net mvc solution (s#arp framework) whith two projects one for

  • 0

I have an older asp.net mvc solution (s#arp framework) whith two projects one for web and one for controller. I have changed the dll to the latest versions (2.0) for System.Web.MVC and Microsoft.Web.MVC. I have also adjusted my Web.Config:

<add assembly="System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

Is this (in theory) all I have to do?

The solution builds fine but I get this error:

Attempted to access an element as a type incompatible with the array.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArrayTypeMismatchException: Attempted to access an element as a type incompatible with the array.

Source Error:

Line 32:
Line 33: ViewEngines.Engines.Clear();
Line 34: ViewEngines.Engines.Add(new AreaViewEngine());
Line 35:
Line 36: ModelBinders.Binders.DefaultBinder = new SharpModelBinder();

This might not be related to the mvc switch but the s#arp framework. Any ideas? Thanks.

Best wishes,

Christian

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T18:12:34+00:00Added an answer on May 15, 2026 at 6:12 pm

    This issue is related to S#arp Architecture. You’ll need to get the MVC2 version of S#arp here: http://github.com/codai/Sharp-Architecture/downloads. The first item on the list is what you want, including the VS2010 template. (Note the typo in the description that says ASP.NET 2, should be ASP.NET MVC 2)

    Hope that helps.

    P.S. If you’re curious about the cause of the exception itself, check out this brief article: http://dotnetperls.com/arraytypemismatchexception. I suspect (without looking at S#arp 1 and MVC2 source) that the SharpModelBinder (the MVC1 version) is now incompatible with the MVC2 implementation of the MVC DefaultBinder, and this isn’t caught at compile-time because SharpModelBinder inherits from DefaultBinder and the compiler thinks all is well. It’s only at runtime that the acual incompatability is detected.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is my scenario. I have an ASP.NET MVC solution with 3 projects. Data,
I have a ASP.NET MVC solution with three projects: SquarkMVC SquarkBLL SquarkDAL The SquarkDAL
I have an older ASP.NET MVC application that uses classic web forms views. As
I have a web application built in asp.net mvc using forms authentication. I am
I've created an ASP.NET MVC 3 solution. It consists of three separate projects. I'm
I have a Web Service for my ASP.NET MVC 3 app which creates a
I have several ASP.NET MVC 3 Web applications that have a lot of common
I have an ASP.NET MVC Web Application that interacts with a SQL Server 2008
I have created the route as described in http://www.asp.net/mvc/tutorials/older-versions/deployment/using-asp-net-mvc-with-different-versions-of-iis-vb ; however, my site still
I have an ASP.NET MVC web application that makes REST style web service calls

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.