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

Key: RSRP-18041
Type: Bug Bug
Status: Open Open
Priority: Critical Critical
Assignee: Sergey Coox
Reporter: Erwin Derksen
Votes: 1
Watchers: 0
Operations

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

Incorrect message "Cannot resolve symbol 'Bind'"

Created: 06 Aug 06 00:23   Updated: 21 Apr 08 19:07
Component/s: Language - ASP.NET
Fix Version/s: 3.1.1
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. File ManageEmployee.aspx (8 kb)
2. File ManageEmployee.aspx.cs (2 kb)
3. File ManageEmployee.aspx.designer.cs (0.6 kb)

Image Attachments:

1. bind error.PNG
(201 kb)

Build: 218
Fixed in build: 573
Old URL: http://www.intellij.net/tracker/resharper/viewSCR?publicId=18041


 Description  « Hide
Version: VS2005, ASP.NET 2.0
Possibly related topics:
  • #18004- Incorrect message "Cannot resolve symbol 'Container'"
  • #18040- Incorrect message "Cannot resolve symbol 'meta'"

An example is the following textbox declaration, but my aspx files are scattered with these kind of incorrect errors:

<asp:TextBox MaxLength="50" ID="TbxLastName" runat="server" Text='<%# Bind("LastName") %>' meta:resourcekey="tbLastNameResource1"></asp:TextBox>

Note: using Eval does not give an error message:
<asp:Label ID="Lbl8" runat="server" Text='<%# Eval("MobileNumber") %>' meta:resourcekey="Label1Resource10"></asp:Label>



 All   Comments   Work Log   Change History      Sort Order:
Erwin Derksen - 08 Aug 06 21:22
Re: #18041- Incorrect message "Cannot resolve symbol 'Bind'"
The error on Bind is reproducable, but only in 1 file!

I emptied the cache (that is, I really emptied the temp directory) and the problem remains.

I was trying to assemble a small example for you, but could not. so I send you the file and it's code behind, in where it occurs. Though some references will be missing at your site, I hope it will be enough for you to reproduce it.


Sergey Coox - 08 Aug 06 21:22
Re: #18041- Incorrect message "Cannot resolve symbol 'Bind'"
Another issue here is the usage of quotes. The first usage uses single
quotes to surround the expression and double quotes to surround the property
name. The 2nd usage does that in a reversed way and gives me an additional
message "Cannot resolve symbol 'serName'", with the u in black and the rest
of the string (serName) in red. I'll make a separate issue for that in your
tracker.

Erwin

Example:
<div class="line">

<asp:Label ID="LblEmailIit" Text="E-mail" AssociatedControlID="TbxEmailIit"
meta:resourcekey="LblEmailEit" runat="server" />

<asp:TextBox MaxLength="50" ID="TbxEmailIit" Text='<%# Bind("Email") %>'
runat="server" />

<asp:RequiredFieldValidator ID="Rfv3Iit" ControlToValidate="TbxEmailIit"
ValidationGroup="ValidateEmployee" Display="Dynamic"
meta:resourcekey="RequiredFieldValidator3Resource1" runat="server" />

<asp:RegularExpressionValidator ID="RevEmailIit"
ControlToValidate="TbxEmailIit" ValidationGroup="ValidateEmployee"
Display="Dynamic" meta:resourcekey="regEmailResource1"
ValidationExpression="\w+([-+.']\w+)@\w+([-.]\w+)\.\w+([-.]\w+)*"
runat="server" />

</div>

<div class="line">

<asp:Label ID="LblUserNameIit" Text="User name"
AssociatedControlID="TbxUserName" meta:resourcekey="lbUserNameResource1"
runat="server" />

<asp:TextBox MaxLength="50" ID="TbxUserName" Text="<%# Bind('UserName') %>"
runat="server" meta:resourcekey="TbxUsernameResource1" />

<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"
ControlToValidate="TbxUserName" Display="Dynamic"
meta:resourcekey="RequiredFieldValidator3Resource1" />

</div>


Jafin - 12 Oct 07 06:00
Getting message:

Cannot resolve symbol 'Container' on R# 3.0.359

Similar to above description of Container object in asp.net aspx page.


Sergey Coox - 04 Dec 07 17:03
Is the problem still reproducible in 3.1 RC2?

Erwin Derksen - 04 Dec 07 19:33
Most to all problems I had regarding aspx parsing are gone. So you can close this one.

Daniel Cai - 14 Apr 08 20:57
I am still getting a bunch of "Cannot resolve symbol " errors with the above attached files. Also I am getting the same error in my project with the following code in a telerik grid.

<asp:Label Text='<%# (bool)Eval("IsExpired") ? "Yes" : "" %>' runat="server"></asp:Label>
<asp:Label Text='<%# Eval("Amount") %>' runat="server"></asp:Label>

FYI, I am using ReSharper v3.1 build 3.1.584.3


Sergey Coox - 21 Apr 08 19:07
Daniel, it's ok in ReSharper 4.0.I'm not sure, whether the fix is ported to 3, but I would recommend upgradnig to the most recent 3.1 nightly build (if you don't like 4.0 nightlies) for they contain several critical fixes comparing the 3.1 release