.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

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

Posted By:      Posted Date: September 17, 2010    Points: 0   Category :ASP.Net
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:How can I get it to work in .net 3.5? Compilation ErrorDescription: 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

View Complete Post

More Related Resource Links

How can I be sure that my entire project is up-to-date and free of errors in VS2010?


Seems like a stupid question, but I will go to Build > Build Solution many many times and the build will succeed many many times, then I will put in a minor syntax error and the build will fail, BUT the build will not fail because of the minor syntax error; it will fail because of an unresolved type that I put in about twenty compiles ago. And then I will fix the minor syntax eror, and the compiler will still complain about the unresolved type. Here is my code:

<%@ Register TagPrefix="FTB" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>
  <form runat="server">
  Hello World!!  

Pretty simple, really. I go to Buld > Build WebApplication1 and it runs OK. Now, if I put in a minor syntax error, such as substitute "forrrrrrrm" for "form" and then try to Build Solution, it complains not about the misspelled word, but about the FreeTextBox. And then if I correct the misspelled wird, it still complains about the FreeTextBox. Which leads me to believe that Building the Solution does not check absolutely 100% everything that needs to be checked. Is there a more thorough way of compiling a program that I need to use?

Think that there is actually errors in ajax toolkit for 2.0 framework...hmm


Im using VS2008, asp.net C# 2.0.


Recently i tryed to correct some stuff on my page and i had a friend to take a look at the stuff...


What i did was that i have Examples page with code examples. Then accordion panes for each code piece...And syntaxhighlighter for each code piece. The code that i presented is read from the txt files wich makes it easyer for me to put new examples on the site...

But the problem is now that two of my accordion panes are not working...and everything works in all other browsers this just happens in Internet Explorer. This is kind of weird and my friends explaination was that there is actually errors in the ajax toolkit dll.


Im using the latest version of ajax toolkit for framework 2.0 wich is 1.0.20229.

My friend said its actually amazing that the toolkit has been out there for that long and it has not been tested that well and that there i still errors in it.


You can test this by your self by doing the exact as i explain:


go here: http://www.simpa.dk/Examples.aspx?cookieCheck=true

click Csharp

and try to open the accordion that is from the bottom 2 or 1 they dont collapse...

but this works in all other browsers then Internet Explore

Errors building a C# project

I am putting this here because I am pretty sure this has to do with an incorrect setup and/or configuration. I am trying to build one of my first C# sample projectsusing Visual Studio 2008 Professional. I keep getting these errors: C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets : warning MSB3245: Could not resolve this reference. Could not locate the assembly "AppUtil". C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets : warning MSB3245: Could not resolve this reference. Could not locate the assembly "VimService2008.XmlSerializers". C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets : warning MSB3245: Could not resolve this reference. Could not locate the assembly "VimService2008". GetVMFiles.cs(8,7): error CS0246: The type or namespace name 'AppUtil' could not be found GetVMFiles.cs(9,7): error CS0246: The type or namespace name 'VimApi' could not be found GetVMFiles.cs(15,24): error CS0246: The type or namespace name 'AppUtil' could not be found GetVMFiles.cs(16,16): error CS0246: The type or namespace name 'VimService' could not be found GetVMFiles.cs(17,16): error CS0246: The type or namespace name 'ServiceContent' could not be found GetVMFiles.cs(143,42): error CS0246: The type or namespace name 'ManagedObjectReference' could not be found GetVMFiles.cs(159,38): error CS0246: The type o

ASP.NET Ajax client-side framework failed to load = No Ribbon :( JS errors on Default and at Central

Looking for suggestions to why my ribbon crashed, and I'm unable to edit or add pages to my SharePoint 2010 Site.  Machine is Win7 Ultimate, IE8, SP2010 beta, VS2010 RC. All 64 Bit.  Was working fine.  Tried repair on the frameworks, after googling.  Cannot find the Geneva bits.  Removed Norton completely to sucessfully go back a couple of restore points and removed KB980182.  Clicked throught the SP configuration manager and all went well.  Definitely logged on as administrator.  IIS settings look good.  Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; InfoPath.3; .NET4.0C; .NET4.0E)Timestamp: Sun, 4 Apr 2010 22:21:30 UTC Message: Invalid characterLine: 1Char: 1Code: 0URI: http://starman/ScriptResource.axd?d=Zq0NPA5_FNMrMkj2gVMBkGEJYiejAr4xkOPFxcm9WpzwRnp65ubolTfztiSaY8z2QKXyoZQvaI_7A65C7OJf0Eii_VL61Hoi5B23lMNvWC01&t=ffffffffec2d9970 Message: Invalid characterLine: 1Char: 1Code: 0URI: http://starman/ScriptResource.axd?d=Zq0NPA5_FNMrMkj2gVMBkGEJYiejAr4xkOPFxcm9WpzwRnp65ubolTfztiSaY8z2u8yiDywNtvdUdmHr93TbWc4U0SHQq0pQ3M2FA3FoezpYhgSt6jFnafzRYmCIg8LW0&t=ffffffffec2d9970 Message: ASP.NET Ajax client-side framework failed t

Framework Errors - During Many Install Attempts

2.0 SP1 is installed.  However, something is broke.  Trying to install the 3.5 SP1 update or VS2008 SP1, I receive the below errors:[08/26/08,19:44:40] Microsoft .NET Framework 2.0a: [2] Error: Installation failed for component Microsoft .NET Framework 2.0a. MSI returned error code 1603[08/26/08,19:45:48] WapUI: [2] DepCheck indicates Microsoft .NET Framework 2.0a is not installed.[08/26/08,20:04:10] Microsoft .NET Framework 2.0a: [2] Error: Installation failed for component Microsoft .NET Framework 2.0a. MSI returned error code 1603[08/26/08,20:05:14] WapUI: [2] DepCheck indicates Microsoft .NET Framework 2.0a is not installed.[08/27/08,09:56:12] Microsoft .NET Framework 2.0a: [2] Error: Installation failed for component Microsoft .NET Framework 2.0a. MSI returned error code 1603[08/27/08,09:57:32] WapUI: [2] DepCheck indicates Microsoft .NET Framework 2.0a is not installed.[08/27/08,12:16:44] Microsoft .NET Framework 3.0 SP2 x86: [2] Error: Installation failed for component Microsoft .NET Framework 3.0 SP2 x86. MSI returned error code 1603[08/27/08,15:56:17] Microsoft .NET Framework 2.0a: [2] Error: Install package not found: ASPNET.msp[08/27/08,15:56:17] Microsoft .NET Framework 2.0a: [2] Error: No valid install package found for component Microsoft .NET Framework 2.0a[08/27/08,15:56:18] setup.exe: [2] ISetupComponent::Pre/Post/Install() failed in ISetupManager::InternalInst

How to open project in VS2008 which was created in VS2010?

How to open project in VS2008 which was created in VS2010?

Framework 1.1 Application errors when run over network




I recently picked up a project for a client that is stuck on the 1.1 framework. The application in itself is fairly straight forward. A few datagrids and pic boxes to display data from an mdb file.


When run from the host machine it works a treat and has no problems whatsoever, but when it is run from a network folder it crashes as soon as it tries to connect to the mdb file. This is running on a dev machine to match the clients so is sat on the 1.1 framework. When I run it on my machine which has all frameworks it works fine.


So does anyone know what I have to do to make this work as it's proving to be a show stopper with the client. And before you ask, they won't move frameworks, I tried getting them to do that and they said no.


Just to add as well, I have very good error trapping throughout the app and it doesn't return anything. All message returned are blank which is making it an even bigger pain in the asre. Considering it's such a simple app.





Any negative impact to Sharepoint and Project Server if IP for backend database server is changed.


If IP address of the backend database server will be changed for sharepoint 2007 and project server 2007, will it impact any way  both the servers.

IIS 7 .Net 1.1 Framework project error


I have a Framework 1.1 site that i'm moving from a server running Windows 2003 IIS 6 to Windows 2008 R2 with IIS 7. I'm getting weird errors in IE it says Internet Explorer cannot display the webpage. Chrome displays This webpage has a redirect loop. The webpage has resulted in too many redirects. It displays the .htm files fine but won't display any .aspx files. I installed the .net Framework on the server so I don't think that is the issue, unless I'm missing a step.

Thanks in advance.

.MDF file's Security permision is get changed after creation of Setup project - it become read only


To All


I have generated a windows application. I have used .MDF file. The project is working fine but when I have attached setup project to it and installed it.

The security permissions of .mdf file get changed and become read only not able to write/update.(When Setup project copying the .MDF file that time the permission of the .MDF file is get changed and become read only)

I am able to change the permission of .MDF file manually then after working fine.

But is not correct way of deployment So please guide me what should I do now so I can read, write and update properly. What code should i use/ technique should i use so I can do so.


I am using :

Visual Studio 2008,

C#.net 9,

dot net framwork 3.5 sp1

MDF FILE of Microsoft Sql server 2008 Express RC2

Cannot drag an Entity Framework Data Source (created in a separate solution) onto WPF Design Surface


I receive the error Cannot add the control to the design surface or bind to the contol because the type Pec.CustomerEntity.Carrier, Pec.CustomerEntity,Version=, Culture=neutral, PublicKeyToken=null cannot be resolved.  Please try to build the project or add necessary assembly references  (I have rebuilt and it still doesn't work)   -  when I try to drag the data source onto the window. 

If I create an entity framework project within the wpf application solution and create a data source and reference to it, it works fine when I drag the data source onto the window.  I only get the error when I create a reference to an EF project .dll created outside of the wpf project.  I am using Visual Basic 2010.    I have also tried adding the project to the wpf solution and it still gives me the error. 

Random errors with the clr.dll 4.0.30319.1 after update to .NET Framework 4.0



After updating to .NET Framework 4.0 we have got some random crashes in our production environmnent.

We get a error in clr.dll but having problem to finding the root error. Do you have some tips and tricks?

The event logg looks like this:


Event Type: Error

Event Source: .NET Runtime 4.0 Error Reporting

Event Category: None

Event ID: 1000

Date: 10/8/2010

Time: 12:45:08 AM

User: N/A

Computer: [The Computer]


Faulting application [TheApplication.exe], version, stamp 4c934361, faulting module clr.dll, version 4.0.30319.1, stamp 4ba1d9ef, debug? 0, fault address 0x00003e54.


For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.


0000: 41 00 70 00 70 00 6c 00   A.p.p.l.

0008: 69 00 63 00 61 00 74 00   i.c.a.t.

0010: 69 00 6f 00 6e 00 20 00   i.o.n. .

0018: 46 00 61 00 69 00 6c 00   F.a.i.l.

0020: 75 00 72 00 65 00 20 00   u.r.e

How to use Login Control in already created Web Site Project ?



actually i have already created my web site project.Now i want to use login control in my project.So can you please guide me how i can use it in my existing project? 

SmartDevice project with Ado.Net Entity Framework



Can i use Ado.Net Entity Framework in SmartDeviceProject in Vs2008?

I tried but dint get luck.

Migrating .Net 2.0 Framework Web service project to .Net 3.5 Project & impact on Proxy




We are upgrading .Net 2.0 Framework Web service project to .Net 3.5 Project. We are not changing any methods.

 Will there be any change in the proxy because of this Framework Upgrade.

My requirement is to all the existing clients consuming this webservice should not have any impact due to this framework upgrade.


PVASN Murthy

.Net Framework Errors


I always get this error with all applications that need net framework 4. "To run this application you must install one of the following versions of the .NET Framework: v4.0.30319"


I ran a the net framework verification tool and I got this error:


I also can't find net framework in Turn Windows features on or off section of add/remove programs. I'm not sure if I need to give any other info but if I do just reply and I will asap.



Visual Studio 2008 Framework 3.5 Project Referencing DLL built in Visual Studio 2010 Framwork 4


I am trying to add a DLL file that was compiled in Visual Studio 2010 with Framework 4 to my project that is in Visual Studio 2008(Framework 3.5), but I am getting a warning after I have added the reference that says "The referenced component 'dll name' could not be found." What is causing VS2008 give this warning? I can not compile the code as this DLL is a required component. Thank you.



ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend