History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-43604
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Sergey Coox
Reporter: Brian Scott
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ReSharper

"Cannot resolve symbol" highlighting for UserControls and Ajax Toolkit controls

Created: 19 Jun 07 02:09   Updated: 29 Jun 07 11:37
Component/s: None
Fix Version/s: 3.0.1, 3.0.2
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. Zip Archive RSRP-43604 Example.zip (4 kb)
2. Zip Archive Updated RSRP-43604 Example.zip (6 kb)


Build: 465


 Description  « Hide
Occurs in Asp.Net WebSites in the code files for aspx pages. Not sure if the same thing occurs in WebProject code behinds.

UserControl Example:
A Web Form named (and in folder) Members\Welcome.aspx is created.

A UserControl named (and in folder) UserControls\SearchRequirements.ascx is placed on the page and given the id 'requirementsSearch'.

Intellisense popup after dot on all references to the instance shows "No suggestions".
Any property or method of the user control instance 'requirementsSearch' will be highlighted as an invalid symbol.

The instance itself is not highlighted as an error but the tooltip shows that ReSharper is not recognizing it correctly.
The tooltip text is "(field) ASP.usercontrols_searchrequirements_ascx Members_Welcome_requirementsSearch"

Ajax Toolkit Control Example:
A Web Form named (and in folder) Members\Welcome.aspx is created.

An UpdatePanel is placed on the page and given the id 'searchResults'.

Intellisense popup after dot on all references to the instance shows "No suggestions".
Any property or method of the update panel instance 'searchResults' will be highlighted as an invalid symbol.

The instance itself is not highlighted as an error but the tooltip shows that ReSharper is not recognizing it correctly.
The tooltip text is "(field) __ReSharper_TagPrefix_ASP.UpdatePanel Members_Welcome_searchResults"

At first I thought the problem was only with the Ajax Toolkit controls and the UserControls that were not recognized were doing so because they have Ajax Toolkit controls on them. I think I have found some instances where that may not be true, but I will need to investigate more. I see the errors with both UserControls and Ajax Toolkit Controls on the same page.



 All   Comments   Work Log   Change History      Sort Order:
Brian Scott - 19 Jun 07 02:12
Also, the projects build and run successfully.

Sergey Coox - 21 Jun 07 13:25
Brian, I cannot reproduce the problem. At my side it works ok.

Could you send me the whole solution, please?


Brian Scott - 21 Jun 07 17:39
Due to the nature of the application and the client I am working for I can't send the actual solution. I will create a mock one this evening set up the same way and see if it happens. If so I'll send it along.
Thanks

Brian Scott - 28 Jun 07 15:47
Here is a sample web site demonstrating the problem we are seeing at the client location. The code behind for Test.aspx contains the code examples and comments.

It's apparent after creating this test that ReSharper is having trouble with controls that are declared in sub-folders of the pages they are used on, reguardless of web.config declarations of the controls as I had previously thought.


Sergey Coox - 28 Jun 07 16:16
Brian, thanks a lot for the solution. I've just tested it against 3.0.1 bugfix update - everything is ok.
You are welcome to download it from http://www.jetbrains.net/confluence/display/ReSharper/Download

Brian Scott - 28 Jun 07 22:37
Not sure if I should add this to the closed issue or not.

I have found a couple other instances where ReSharper is not reconizing Asp.net controls. I have updated the previously uploaded website to demonstrate. The errors occur in the folder named "SubFolder". ReSharper is not recognizing user controls declared in a sibling folder. For example, the aspx files in ~/SubFolder/ have the incorrect error highlighting for controls residing in ~/Controls/.

There is also an issue with recognizing master pages declared in a parent folder. ~/SubFolder/SubFolderMasterContentTest.aspx has incorrect error highlighting for the master page ~/TestMaster.master declared in the root folder.

Attached: Updated RSRP-43604 Example.zip


Sergey Coox - 29 Jun 07 11:21
Brian, thanks a lot for the example. I've discovered the problem and fixed it.