Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Nov 08, 2012 02:31 PM by RameshRajendran
Nov 05, 2012 05:26 PM|LINK
working off the Getting Started with ASP.NET 4.5 Web Forms tutorial on this site.
I changed the name from WingTip Toys to my solutions name Template Builder.
The below error happens and i dont know why or how to fix it.
CS0426: The type name 'Models' does not exist in the type 'System.Web.UI.TemplateBuilder'
Source File: c:\Users\JPetersen\Documents\Visual Studio 2012\Projects\TemplateBuilder\TemplateBuilder\Site.Master
<ItemTemplate> Line 84: <b style="font-size: large; font-style: normal">
Line 85: <a href="/BottleCodeList.aspx?id<%#: Item.CompanyID %>"> <%#:Item.Name %></a>
Line 86: </b> Line 87: </ItemTemplate>
Nov 08, 2012 01:21 AM|LINK
In order to resolve your issue, please change it to .NET4.0 and see whether this issue exists or not.
If it works in .NET4.0 but does not work in .NET4.5, it is known as compatibility issue. If it’s a compatibility issue, Please email on netfx45compat at Microsoft dot com with following information.
If it doesn't work in .NET4.0, please share the corresponding code about the issue which can help us reproduce this issue.
Nov 08, 2012 02:18 PM|LINK
i was able to identify the cause of the error. I named my solution templateBuilder without knowing that .NET has a namespace with the same name. This was the cause of the problem. Thanks for you response though.
Nov 08, 2012 02:31 PM|LINK