Solved

created asp mvc project with framework 4.0 changed to 3.5 and now get errors

Posted on 2010-09-16
1
471 Views
Last Modified: 2013-11-08
I created a small mvc site using framwork 4.0.  I found my hosting company uses 3.5.  I changed my project and compiled and there were no errors.  Now when I run, I get this error on all pages:

 Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0246: The type or namespace name 'dynamic' could not be found (are you missing a using directive or an assembly reference?)

Source Error:

Line 134:    
Line 135:    [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
Line 136:    public class views_page_home_aspx : System.Web.Mvc.ViewPage<dynamic>, System.Web.SessionState.IRequiresSessionState, System.Web.IHttpHandler {
Line 137:        
Line 138:        private static bool @__initialized;

Source File: c:\Users\user1\AppData\Local\Temp\Temporary ASP.NET Files\root\b4d3bd5e\2b9dd07c\App_Web_home.aspx.78bb4944.oap7wvh_.0.cs    Line: 136

0
Comment
Question by:jackjohnson44
1 Comment
 
LVL 14

Accepted Solution

by:
existenz2 earned 500 total points
ID: 33699048
The dynamic keyword is not supported in .NET 3.5, only in .NET 4.0. You seem to be using it in home.aspx
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now