1

I create new asp.net mvc 3 project. Copy there all controllers, classes and views from my asp.net mvc 2 project. Include all references

And now have error

Parser Error Message: Could not load type 'System.Web.Mvc.ViewPage'.

Source Error:

Line 1:  <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Abbono.Models.LogOnModel>" %>

2 Answers 2

1

If you want to convert your application from mvc 2 to mvc 3 follow instruction from here or you may get help from here

Sign up to request clarification or add additional context in comments.

Comments

0

@mola, message "Could not load type 'System.Web.Mvc.ViewPage'" says that your project doesn't see "System.Web.Mvc.dll" library.

Check in root web.config file next section:

<configuration>

  <system.web>

    <compilation debug="true" targetFramework="4.0">
      <assemblies>
        <add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      </assemblies>
    </compilation>

  </system.web>

</configuration>

Also verify that you have installed MVC 3 dll. You can check existance of file "System.Web.Mvc.dll" in directory "C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 3\Assemblies\"

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.