Monday, March 26, 2012

Intellisense / Element unknown errors

So I did some searching around and didn't find any solution to my problem, so I figured I would go ahead and post it.

I think the problems are both related to one another.

#1 - Intellsense does not work - typing <atlas: doesn't have anything appear.

#2 - I have errors in my source view for <atlas:ScriptManager runat="server" /> that element ScriptManager is not a known element.

The problem seems to be that my files are stored on a remote IIS server and I'm connected via a mapped drive to that location. If I copy the web site to my local drive, then everything works great - put it to the server that error comes up.

It doesn't bother me that much, as I normally work in Source View so switching to design isn't the end of the world, but the lack of Intellisense for me is driving me nuts as I'm trying to learn Atlas and how it works.

Thanks to anyone who has any suggestions.

RichardYou can add the Microsoft.Web.Atlas.dll assembly to the Visual Studio toolbox on your local machine. That will make make the controls available to all projects. Seethis post for more information.

-- Karsten
Thanks for the reply. I actually ran across that post and added them to the toolbox. I see them in the tool box, I can drop and drag them to page - but the system still doesn't know what the tags mean.

I will try it again when I get back into the office today.

Richard

Intellisense bug - Fixed in AJAX RC?

Has the intellisense bug that existed in the AJAX Beta been fixed with the RC version? I am still getting the "Element 'ScriptManagerProxy' is not a known element." message in source view for Child Pages. I don't see this in master pages. However, if I rename the tagprefix to ajax rather than asp in the web.config and tsrt using that tag prefix in my web forms, the intellisense starts working properly. Any suggestions?

Should be fixed as described on Scott Guthrie's bloghttp://weblogs.asp.net/scottgu/archive/2006/12/15/visual-studio-2005-service-pack-1-sp1-released.aspx

IntelliSense doesnt always recongizes ASP AJAX.NET tags

I have installed the AJAX.NET Extensions. They work fine. I've also tried the Scott's To Do List (making modifications for testing).

The problem is, that sometimes the IntelliSense Sometimes!?!? does not recongizes asp Ajax tags. All AspAjax tags are underlined as if they were errors, and they appear in the error list. I can still compile and run the program without any problem. But the problem is that for example, any controls that I put inside a UpdatePanel are displayed as error, and I don't get any IntelliSense code Aids and auto Code Completion. This only "little" problem, is one hell of a BIG problem, because IntelliSense is an excellent productivity tool, and I don't want to loose it.

Any suggestions or ideas? Did anyone had the same problem?

Thank You

ckhro

Check out your web.config. The url below has some details on what should be included

http://codebetter.com/blogs/jay.kimble/archive/2006/05/19/144952.aspx

This article also references a problem if you have installed previous versions of Ajax.NET

http://weblogs.asp.net/scottgu/archive/2007/01/23/asp-net-ajax-1-0-released.aspx

HTH


I think i know what your problem is. I had something just like that.

I solved it by going to the html code and cutting out the update panel and putting it next to the closer of it so it removes all the bugs, it recognizes the objects then i moved the update panel code back where it was. after that the problem was gone.

As a second solution for new items I intend to put my objs first out side the of the update panel and then drag it in to update panel sometimes i relaized that it doesnt recognize items that gets created in the update panel.

And also if i add an id tag with runat server coding i had to do the first option where i cut out the update panel to make it recognize the new id.

Hope that will help.


"I solved it by going to the html code and cutting out the update panel and putting it next to the closer of it so it removes all the bugs, it recognizes the objects then i moved the update panel code back where it was. after that the problem was gone."

LOL. I do the same way when my IntelliSense doesn't come up. However, lately it comes back. Weird.

Anyway, this is a known issue.


Seehttp://weblogs.asp.net/scottgu/archive/2006/11/16/gotcha-lost-html-intellisense-within-asp-net-ajax-controls.aspx, and SP1 fixes this.


i have sp1. :-P iguess i was following this post little different. i have a problem where the id doesnt get recognized by the backend coding. Thats why i do what i do in my prior post.

Steve Marx:

Seehttp://weblogs.asp.net/scottgu/archive/2006/11/16/gotcha-lost-html-intellisense-within-asp-net-ajax-controls.aspx, and SP1 fixes this.

This is an excellent workarround Steve! It solves the problem. The lack of Intellisense problem was only in content pages (that means, that they depend on a master page). If we have both the master and the content page open, the problem is fixed.

I haven't installed SP1 yet, but for now this works just fine.

Thanks a lot

Intellisense for ASP.NET AJAX?

Does VS 2005 supports to some degree intellisense for ajax ?

Thanks,

Hi,

My understanding is that more support for AJAX (and I believe Intellisense), is one of the major enhancements with SP1 for VS 2005. I haven't done the DL or install just yet, but I've heard that better AJAX support is the main justification for doing the SP install. I've also heard that it is a very long process, so make sure you have the time set aside to do the DL and install, and make sure to read the readme file. Keep in mind that MS AJAX is still not fully supported by MS or by most hosting companies. It's not a technology to bet the farm on - yet. BRN..


Hi Brian,

Thanks a lot. I just installed SP1 but i dont see much difference yet. When you said it takes long time to install SP1, how much would that be? Here is what happened. I was installing SP1 and after the instalation completed, it started installing again automatically. I did this about 3 times and after 3 hours of installing i had to cancel it because i thought something must be wrong with the instalation. Is it just an instalation bug which is why the instalation started over automatically or it takes really long time to install?

Thanks,


here is something i found:

http://support.microsoft.com/kb/928957

" Visual Studio 2005 SP1 tries to install multiple times:

loadTOCNode(3, 'moreinformation');The service pack will run multiple times if you have multiple Visual Studio products installed on your computer. Do not start the installation more than once."

I have 2003 and 2005 installed only.. cant understand what they are talking about but it seems like i am having the same issue.. My machine have 3 user accounts. Maybe this is the problem?


Hi,

I still haven't done the install myself. I did see the note about multiple auto installs, and I think they might refer to anything that uses the VS 2005 core (which might include things like SQL Sever 2005, SQL Server Express, VWD Express maybe other stuff as well - I didn't see a list). Hope that the cancel didn't mess you up. I did something similar a while back - when it looked like the install was hanging - and it caused problems. Sometimes these upgrade are a real pain. Often you have to sit there, or pop back to check on things to see if it's at a place where it needs user input; there's not always a lot of guidence on which choice to make at that point, and no way to back track if it seems to be headed in the wrong direction.

I have multiple accounts on my computers too. I doubt if it's doing multiple installs (one for each account), I think its probably shared functionality between various MS apps on a given computer. BTW, were you logged in to an Admin account for the computer you were using when you did the install? I was planning to do that, rather than a domain account (even with admin authorizations), on my dev computer.

As to how long it takes, I only heard qualitative reports that it's a "very long install" even for fast systems. A slow processor, low memory, or small or fragmented HD will make it even longer. As a rule, I do some house cleaning before a major install.

If you think things got messed up with your system, search in these forums (and MSDN), on system restore posts.

If the install went through, I'd expect a lot more AJAX support. If you don't see that, maybe that's due to the cancel (don't know what happens in a cancel - I'd search MSDN). Another new item in the SP is that the 2003 style Web App Project add-in for 2005 is now part of 2005 (you need to remove the add in before the install, if you added it prior). So, you should see an option to create Web App Projects or a Website in the standard interface. Some one posted me a link to a list of the new features for the SP, I'll try to find that. Another thing to keep in mind is how much customization VS 2005 allows. Depending on the edition, there's a slew of stuff you might have installed, and numerous options for just about every aspect of the toolset. If you don't see some functionallity, it may be that you didn't have that part included in the original install, or you optioned to hide it at some point. There's so much there, that I'm sure there are elements that I didn't know existed.

The reviews of the SP I saw seemed to depend on if the person was using AJAX, if so they tended to like the upgrade, if not they didn't see much else new. BRN..


Hi,

Did the SP1 install to VS 2005 Standard on my system tonight. The process went smoothly, and took a little more than 1/2 hour. The only user input needed was when it asked to install (yes, well into the install process, and to accept the EULA). Several "Please wait while..." windows came up, but they took care of themselves. Af the end is said "... was successfully installed on..." then it had another "please wait..." that lasted about a minute.

When I was sure it was done, I opened up VS and took a look at the About in the Help menu item. I noticed a new MS Web Application Projects listing, and the SP1 (kb926601), listing.

Openning an AJAX CTP enabled folder I had started earlier, and adding an AJAX control to a new webform, I could see that it has some intellisense now - hit a space inside of the controls source and the dropdown list appears. Not having done any real AJAX stuff yet, my experimenting was limited; but it's there.

My system is pretty simple, with just VB, VWD, the stuff I mentioned and a data modeling custom tool that's in CTP. Standard Edition, so no team services or DB projects. In all it was an easy upgrade. BTW, I did notice one thing in the install instructions, they do say you can cancel the install, but don't say in what state that will leave your system. My guess is that it will try to return to the pre-SP1 install state. Take a look at your About VS 2005, and see what's listed there, that should give you a good idea of where you are now. BRN..


Yep, i saw the same line - SP1 (kb926601), so i think i have succesfully installed although i dont see any difference so far.

Hi,

Yeah, there's nothing that jumps out and says this is all new stuff - it's an SP, not a new release. As I haven't even looked at a lot of the functionality that's in VS 2005, there couldbe changes to it that I wouldn't even notice. From my perspective, the addition of the Web Application Project type, and the increased support for MS AJAX are the only things I'm looking at right now.

Don't know if you've noticed, that on this asp.net site, they mention that MS AJAX is slated for general (fully supported) release this month. Wonder if there will be more (though minor), VS 2005 SPs as more more MS AJAX controls move from Codeplex/CTP to MS supported functionality? BRN..

Intellisense in AJAX script ?

HI all the readers

Is there any way to get intellisense when writing AJAX script in javascript?

for example

Sys.WebForms. will list BeginRequestEventArgs, PageRequestManager...etc

or only way is to look up reference or memorize it~

Thanks all

Visual Studio "Orcas" will support this but until then there is no intellisense (with Visual Studio anyways)

Intellisense in AJAX RC1

I've had this problem is I moved to AJAX Beta 1 but my intellisense is broke and it's driving me crazy. When is this supposed to be fixed?

Hi,

there's an intellisense tip inthis blog entry by Scott Guthrie.


VS2005 SP1 fixes this problem.

http://msdn.microsoft.com/vstudio/support/vs2005sp1/default.aspx


Hello autoflyer,

autoflyer:

VS2005 SP1 fixes this problem.

http://msdn.microsoft.com/vstudio/support/vs2005sp1/default.aspx

is this Problem fixed in youre installation?

I've installed both vs2005sp1 and AJAX RC1 but the intellisense works only with the opened masterpage or change the tagprefix away from "asp". I also cleaned up my [ReflectedSchemas] folder like Scott says inthis Blog.


Hi,

I use VS2005 Pro and the intellisense problem I experienced with AJAX tags in content pages is indeed fixed with SP1 for me. I have applied SP1 to 2 machines at work both of which no longer exhibit the intellisense problem.

intellisense in vwd for atlas

hi, is there a way to get intellisense to come up for atlas related developement in vwd?
i am trying to write declarative markup and it'd help if intellisense kicks in.
mp
Hello, Is there Intellisense f?r Atlas in the Standard(and higher) versions of Visual Studio?.

hello guys.

though i don't work at MS, i'd guess that intellisense will only be here when orcas is released (btw this is what i'm hopping for!)