Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Guest
#1 Posted : Thursday, March 3, 2011 6:03:04 PM(UTC)
Guest
Rank: Guest

Groups: Guest
Joined: 3/17/2009(UTC)
Posts: 1,084

I get a popup error dialog with a cs0234 compile error saying it can't find the referenced assemblies when trying to add a strongly typed view with one of the AddView t4 templates like Create.tt in a mvc 3 project. I'm using studio 2010 with sp1 beta on windows 7.

I've figured out that if uninstal the t4 editor it goes back to working. I've also editted the create.tt file to fully qualify the assembly and that seems to get it working too.

e.g.

<#@ assembly name="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.ComponentModel.DataAnnotations.dll" #>
<#@ assembly name="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Core.dll" #>
<#@ assembly name="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.Entity.dll" #>
<#@ assembly name="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.Linq.dll" #>



[tangible]
The Resolution is to install the ASP.NET MVC Tools Update: http://weblogs.asp.net/s...-mvc-3-tools-update.aspx

Edited by user Friday, May 6, 2011 12:43:33 PM(UTC)  | Reason: Not specified

Gummo
#2 Posted : Saturday, April 9, 2011 5:59:53 PM(UTC)
Guest
Rank: Guest

Groups: Guest
Joined: 3/17/2009(UTC)
Posts: 1,084

I'm new to T4 Editor. I also had the same error. Uninstalling eliminated the error, but now I need to try and reinstall. I just hope I don't have to uninstall/ reinstall everytime I want to make a template change... or just do it without the help of T4 Editor... ugh.
tangible
#3 Posted : Thursday, April 14, 2011 8:40:55 PM(UTC)
Guest
Rank: Guest

Groups: Guest
Joined: 3/17/2009(UTC)
Posts: 1,084

When i do this i get the error CS0234 that says that the namespace DataAnnotations does not exist in System.ComponentModel and that most likely your project is missing a Reference.

I assume that is the issue you refer to? I need to work with MS to check why they get this error, then. Please confirm.
tangible
#4 Posted : Friday, April 15, 2011 5:32:21 PM(UTC)
Guest
Rank: Guest

Groups: Guest
Joined: 3/17/2009(UTC)
Posts: 1,084

This is resolved by the ASP.NET MVC Update posted 12.04.2011 by Microsoft. Please update
Guest
#5 Posted : Thursday, May 5, 2011 11:18:41 AM(UTC)
Guest
Rank: Guest

Groups: Guest
Joined: 3/17/2009(UTC)
Posts: 1,084

Hello. What MVC update would this be? I have the latest release and still I get this error. It´s so much harder to code now without the T4-intellisense :(
tangible
#6 Posted : Friday, May 6, 2011 12:42:06 PM(UTC)
Guest
Rank: Guest

Groups: Guest
Joined: 3/17/2009(UTC)
Posts: 1,084

The ASP.NET MVC Tools Update can be found here:
http://weblogs.asp.net/shijuvarghese/archive/2011/04/13/asp-net-mvc-3-tools-update.aspx

Edited by user Friday, May 6, 2011 12:42:53 PM(UTC)  | Reason: Not specified

Soulfiremage
#7 Posted : Tuesday, December 19, 2017 7:22:56 PM(UTC)
Soulfiremage
Rank: Newbie

Groups: Member
Joined: 12/19/2017(UTC)
Posts: 3
United Kingdom
Location: Midlands

You guys still have this rather awful problem!!! In MVC 5 in Visual Studio 2017. Why?
Users browsing this topic
Guest (3)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF | YAF © 2003-2020, Yet Another Forum.NET
This page was generated in 0.314 seconds.

Authorization on the site

For an authorized user opens up new possibilities

Login

Password