Answered by:
Visual Studio Editor doesn't recognize .net html elements/controls

Question
-
I am using Visual Studio 2010 on a window 7 and Server 2008 and I am editing html pages that are not part of a solution or project. For over a year I have had the same problem when I load a .html page for editing the whole page has squiggly lines and errors. There are two specific errors.
unrecognized tag prefix or device filter 'vslawNet' //this is a custom namespace class I can deal with this error.
unrecognized tag prefix or device filter 'asp' this is the one that is all over the page not a single .NET control is immune.Because these pages are not part of a Visual Studio Solution we use the following page declarations. <%@ Page Language="C#" Debug="false" Src="~/components/service/viewSubscriptions.cs" autoeventwireup="True" Inherits="vslAdmin.ViewSubscriptions" %>
This particular page uses a code behind as indicated by the Src attribute of the Page element. There are no errors in the code behind; but intellisense doesn't work at all.
The pages have been in production for many years (12) and were original created in Visual Studio 6 and have been edited in various versions of Visual Studio with no problem until now. In fact the previous version 2008 (I think) was the version I used to fix all the bad html. So it seems ridiculous that this version of Visual Studio would suddenly not recognize .net controls. I have looked at the editor options until I am blue in the face with nothing pointing to the problem. Understand that intellisense doesn't work either and it used to in the earlier versions of Visual Studio (.net not 6). I am not a big fan of intellisense; but at times it is handy to have when I forget a property method signature. Of course when I turn off validation; by deselecting show errors then I don't even see the normal html errors. I read somewhere that the build configuration might be the culprit; but the setting they referred to does not apply to Web pages.
Is there a add-on that is supposed to be installed? Which seems a little stupid since .NET is the main platform; but I need to ask the question. I would like to convert the web site to a Visual Studio solution (assuming that will solve the problem); but I don't have the resources for a project of that magnitude. I have three web sites with hundreds of complex pages and I am the only .NET developer in the company so you see the problem.
I have tried using Visual Studio Express and while it doesn't have the validation errors it also doesn't provide intellisense for asp elements or code behind objects.
Thanks in advance for any answer you may provide.
Pamela Reinskou
- Moved by Samson Sun - MSFT Thursday, January 9, 2014 5:23 AM the error forum
Tuesday, January 7, 2014 6:34 PM
Answers
-
Might ask them over here.
http://forums.asp.net/1213.aspx/1?Visual+Studio+and+Visual+Web+Developer+Express
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows]
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.Thursday, January 9, 2014 10:40 AM
All replies
-
Hi,
The forum supports VS Setup and Installation. I think your issue isn't related to the forum.
I will move the thread to "Where is the forum for...".
Let other people help you move your thread to the related forum.
Regards.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.Thursday, January 9, 2014 5:22 AM -
Might ask them over here.
http://forums.asp.net/1213.aspx/1?Visual+Studio+and+Visual+Web+Developer+Express
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows]
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.Thursday, January 9, 2014 10:40 AM -
Moving a question into another forum does not constitute an answer.
Pamela Reinskou
Thursday, January 9, 2014 5:16 PM -
Moving a question into another forum does not constitute an answer.
Pamela Reinskou
What forum did it get moved to? I checked all the emails and cannot find it.Pamela Reinskou
Thursday, January 9, 2014 5:28 PM -
Your question is now in "Where is" Forum
Based on reading your question I'd ask them over here.
http://forums.asp.net/1213.aspx/1?Visual+Studio+and+Visual+Web+Developer+Express
You'll have to re-ask over there because we have no means to move it.
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows]
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.Friday, January 10, 2014 1:36 AM